[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system




You may make a template into a macro format, but the template itself is not a macro.  After the template is expanded, the expIDF can be converted into an IMF and many INP files.  You can then use macros to joint them  together again.  In that format you can replace equipment and class/object directly without going back to template again.
That was the reason why I asked you what sort of macro file you had in mind.  I do not have a working .IMF file, because that was done using version 3.0.  The version converter does not work well with embedded macro format.  I can manually up date that file.
The detailed explanation of the EPlus macro set is in the AuxiliaryPrograms.pdf under "Input macro".
It is similar to the conditional compilation of a standard computer programming.  
For example in C, you may use  ##include <stdio.h> to include a header file.
  ##define  NL   printf ("\n");  to insert a newline on the display.
In EPlus.  .inp is a text file for lines to be included or copied into the .IDF file or .IMF file.  You can use this simply cut the .IDF into sections, so that you need not  worry about changing the wrong sections, and print more than you need.
If you start to use all the functionality of the macro, then you will see some like the example I gave you.  One line can be expanded into an object with the unique name and data.  All the common fields will be repeated.
In the zone sizing object, only the zone name is unique.  Therefore I define one Zone sizing macro with a variable name to be substituted, e.g.,  nnZone.
.idf is the normal IDF file.  .inp is the text INPUT file which may have macros or just IDF lines.  Every time, you add:
    ##include  filename.inp 

	Hi Dr. Li

Thank you very much for replay.

Why do you think that we are talking about different macros ?
I'm refering the EP Macro program whcich use macro commands (same with your example) to produce regular lines of E+ (at least, I understand so).

I examined your .imf file, and noted that instead of all input fields for ZoneSizing object there are only 15 macro lines (for each zone).
When you say .inf file do you refer the same example file just changing the .imf to .inp (which I tried but nothing was different) or you refer at any other file format ?

is out there any other document which explain the EP Macro function and commands more in details rather than E + documents ?

thanks in advance...

Dashamir



--- On Mon, 4/4/11, YuanLu Li <yli006@xxxxxxxxxxx> wrote:
> 
> From: YuanLu Li <yli006@xxxxxxxxxxx>
> Subject: RE: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
> To: "Linda Lawrie" <energyplus_support@xxxxxxxxxxxxxxx>
> Date: Monday, April 4, 2011, 11:22 AM
> 
>  
I think we are talking about different macro's.  
> 
> The attached file shows how a 55 zne file can be reduce to that, with all the details in the .inp file.
> Note that for zone sizing object, all I have is a list of zone names.  The zone macro will expand that to all the zone sizing object with different names.
> 
> Typing ZoneSizing [ Zone1 ]   will change the line with  mmZone  to  Zone 1 and generate the compele listing in the epmIDF file.
=============================
##def  ZoneSizing [ mmZone ]
  Sizing:Zone,
    mmZone,          !- Zone Name
    14.,                     !- Zone Cooling Design Supply Air Temperature {C}
    50.,                     !- Zone Heating Design Supply Air Temperature {C}
    0.009,                   !- Zone Cooling Design Supply Air Humidity Ratio {kg-H2O/kg-air}
    0.004,                   !- Zone Heating Design Supply Air Humidity Ratio {kg-H2O/kg-air}
    flow/person,             !- Outdoor Air Method
    0.00944,                 !- Outdoor Air Flow per Person {m3/s}
    0.0,                     !- Outdoor Air Flow per Zone Floor Area {m3/s-m2}
    0.0,                     !- Outdoor Air Flow per Zone {m3/s}
    0.0,                     !- Zone Sizing Factor
    DesignDay,               !- Cooling Design Air Flow Method
    0,                       !- Cooling Design Air Flow Rate {m3/s}
    ,                        !- Cooling Minimum Air Flow per Zone Floor Area {m3/s-m2}
    ,                        !- Cooling Minimum Air Flow {m3/s}
    ,                        !- Cooling Minimum Air Flow Fraction
    DesignDay,               !- Heating Design Air Flow Method
    0,                       !- Heating Design Air Flow Rate {m3/s}
    ,                        !- Heating Maximum Air Flow per Zone Floor Area {m3/s-m2}
    ,                        !- Heating Maximum Air Flow {m3/s}
    ;                        !- Heating Maximum Air Flow Fraction
> ##EndDef
!- =============================
This is in the INP file.  Instead of 15 of these, you only have 15 macro lines in the .imf file.
> This can be applied to the building walls, etc. as well.  The X1, X2, y1,y2, z1,z2 macro names are extered in the macro definition in the correct order with the given six number as the two diagonal vertices.
> A line, say, MExternalWall [ 0, 0, 0, 15,0,3 ]  can be expanded to a full wall object on the x-axis 15m  long 3m high, with one corner at the origin.  The rules of entry is hidden in the macro itself.  All you need to remember is always the lower conner and the diagonally opposite upper corner, vied from outside of the zone.
> ===================
When you simulate this .imf file, you will get a .epmidf file, which can be rename to idf file.  You can expand the imf using the preprossor or by running a simulation.
> You can apply this   technique to a expIDF file after simulating a template file.  You can switch and edit the .inp for the section need to be changed for different projects.   
>  Dr. Li   
> 
> 
> 
> To: EnergyPlus_Support@xxxxxxxxxxxxxxx
> From: dashamirmarini@xxxxxxxxx
> Date: Mon, 4 Apr 2011 09:12:27 -0700
> Subject: Re: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
> 
>  
	Hello Mr Baharvand,
> 
> Thank you very much for replay.
> 
> I'm trying to model a Water to Water Template HVAC system with EP Macro and for me it is not the problem to understand network and node connection. The problem stands, how can be used EP Macro comand to model a Template HVAC system ?
> 
> thanks again for replay
> 
> Regards,
> Dashamir
> --- On Mon, 4/4/11, Ehsan Baharvand <ebaharvand@xxxxxxxxx> wrote:
>> 
>> From: Ehsan Baharvand <ebaharvand@xxxxxxxxx>
>> Subject: Re: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
>> To: EnergyPlus_Support@xxxxxxxxxxxxxxx
>> Date: Monday, April 4, 2011, 7:58 AM
>> 
>>  
>> 
>> 
>> Hi,

I looked to this problem several weekens ago. The example files below helped me a lot.
You can look to the SVG file to understand the network and connections. Good luck.

Kind regards,
Ehsan

Example Files Link to Objects - shows the first three example files (if that many exist) that have a particular object.
>> From the second spreadsheet:
>> HeatPump:WaterToWater:EquationFit:Cooling 1 GSHPSimple-GLHE.idf
>> HeatPump:WaterToWater:EquationFit:Heating 1 GSHPSimple-GLHE.idf
>> HeatPump:WaterToWater:ParameterEstimation:Cooling 2 GSHP-GLHE.idf PlateHeatExchanger.idf
>> HeatPump:WaterToWater:ParameterEstimation:Heating 2 GSHP-GLHE.idf PlateHeatExchanger.idf
>> From: dashamir marini <dashamirmarini@xxxxxxxxx>
>> To: Linda Lawrie <energyplus_support@xxxxxxxxxxxxxxx>; EnergyPlus_Support@xxxxxxxxxxxxxxx
>> Sent: Mon, April 4, 2011 3:17:08 PM
>> Subject: RE: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
>> 
>>  
	Hi   Li,
>> 
>> Till now I have not get any replay.
>> I'm trying to understand how does that work, but nothing is explained clearly at E + plus documents (at least for me).
>> 
>> In attachment there is the imf file, which is not more than an example of Water to Water Heat Pump system  idf file converted in  imf file.
>> 
>> I would greatly appreciate any help, advice or discussions..
>> 
>> thanks in advance ...
>> 
>> Dashamir
>> 
>> 
>> --- On Sun, 4/3/11, YuanLu Li <yli006@xxxxxxxxxxx> wrote:
>>> 
>>> From: YuanLu Li <yli006@xxxxxxxxxxx>
>>> Subject: RE: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
>>> To: "Linda Lawrie" <energyplus_support@xxxxxxxxxxxxxxx>
>>> Date: Sunday, April 3, 2011, 1:50 PM
>>> 
>>>  
 Did you get any reply to your question?
>>>  
>>> Would you like to share your IMF file for discussion?
>>> 
>>> 
>>> 
>>> 
>>>  Dr. Li  
>>> 
>>> 
>>>  
>>> To: EnergyPlus_Support@xxxxxxxxxxxxxxx
>>> From: dashamirmarini@xxxxxxxxx
>>> Date: Tue, 29 Mar 2011 10:21:37 -0700
>>> Subject: [EnergyPlus_Support] Using EP Macro to Model Template Water to Water Heat Pump system
>>> 
>>>  
	Hi all,
>>> 
>>> I'm trying to use EP-Macro Program to model a Template Water to Water HVAC system.
>>> Does any body have modeled such one or symilar system with EP- Macro Program ?
>>> 
>>> thanks in advance .....
>>> 
>>> Dashamir
>>> 




__._,_.___

Primary EnergyPlus support is found at:
<http://energyplus.helpserve.com>http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
<http://www.energyplus.gov>http://www.energyplus.gov

The group web site is:
<http://groups.yahoo.com/group/EnergyPlus_Support/>http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.


<http://geo.yahoo.com/serv?s=97476590/grpId=3387488/grpspId=1705007389/msgId=19836/stime=1302630976>

Your email settings: Individual Email|Traditional
<http://groups.yahoo.com/group/EnergyPlus_Support/join;_ylc=X3oDMTJmdXVtNzNsBF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMDI2MzA5NzY->Change settings via the Web (Yahoo! ID required)
Change settings via email: <mailto:EnergyPlus_Support-digest@xxxxxxxxxxxxxxx?subject=Email Delivery: Digest>Switch delivery to Daily Digest | Switch to Fully Featured
<http://groups.yahoo.com/group/EnergyPlus_Support;_ylc=X3oDMTJkNnBqZmtzBF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzAyNjMwOTc2>Visit Your Group  | <http://docs.yahoo.com/info/terms/> Yahoo! Groups Terms of Use  | <mailto:EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> Unsubscribe

__,_._,___


=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 7.0.0.21, Virus/Spyware Database: 6.17290)
<http://www.pctools.com/?cclick=EmailFooterClean_51>http://www.pctools.com
=======