[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [EnergyPlus_Support] Need Help For Making IDF Files Dynamic
Look into the EP Macros. They allow for some programming logic, and calculations, unfortunately they have no looping mechanism however.
Here's a snippet that should be a good hint:
##set1 Infiltration[] Medium ! Light, Medium, Heavy, Spec
##if #[Infiltration[] EQSU SPEC]
ZoneInfiltration:DesignFlowRate,
PERI-INFILTRATION, !- Name
AllPerimeterZones, !- Zone or ZoneList Name
INFIL_QUARTER_ON_SCH, !- Schedule Name
Flow/ExteriorArea, !- Design Flow Rate Calculation Method
, !- Design Flow Rate {m3/s}
, !- Flow per Zone Floor Area {m3/s-m2}
0.0003, !- Flow per Exterior Surface Area {m3/s-m2}
, !- Air Changes per Hour {1/hr}
1.0000, !- Constant Term Coefficient
0.0000, !- Temperature Term Coefficient
0.0000, !- Velocity Term Coefficient
0.0000; !- Velocity Squared Term Coefficient
##elseif #[Infiltration[] EQSU LIGHT]
ZoneInfiltration:DesignFlowRate,
PERI-INFILTRATION, !- Name
AllPerimeterZones, !- Zone or ZoneList Name
INFIL_QUARTER_ON_SCH, !- Schedule Name
Flow/ExteriorArea, !- Design Flow Rate Calculation Method
, !- Design Flow Rate {m3/s}
, !- Flow per Zone Floor Area {m3/s-m2}
0.00051, !- Flow per Exterior Surface Area {m3/s-m2}
, !- Air Changes per Hour {1/hr}
1.0000, !- Constant Term Coefficient
0.0000, !- Temperature Term Coefficient
0.0000, !- Velocity Term Coefficient
0.0000; !- Velocity Squared Term Coefficient
##elseif #[Infiltration[] EQSU MEDIUM]
ZoneInfiltration:DesignFlowRate,
PERI-INFILTRATION, !- Name
AllPerimeterZones, !- Zone or ZoneList Name
INFIL_QUARTER_ON_SCH, !- Schedule Name
Flow/ExteriorArea, !- Design Flow Rate Calculation Method
, !- Design Flow Rate {m3/s}
, !- Flow per Zone Floor Area {m3/s-m2}
0.00152, !- Flow per Exterior Surface Area {m3/s-m2}
, !- Air Changes per Hour {1/hr}
1.0000, !- Constant Term Coefficient
0.0000, !- Temperature Term Coefficient
0.0000, !- Velocity Term Coefficient
0.0000; !- Velocity Squared Term Coefficient
##elseif #[Infiltration[] EQSU HEAVY]
ZoneInfiltration:DesignFlowRate,
PERI-INFILTRATION, !- Name
AllPerimeterZones, !- Zone or ZoneList Name
INFIL_QUARTER_ON_SCH, !- Schedule Name
Flow/ExteriorArea, !- Design Flow Rate Calculation Method
, !- Design Flow Rate {m3/s}
, !- Flow per Zone Floor Area {m3/s-m2}
0.003, !- Flow per Exterior Surface Area {m3/s-m2}
, !- Air Changes per Hour {1/hr}
1.0000, !- Constant Term Coefficient
0.0000, !- Temperature Term Coefficient
0.0000, !- Velocity Term Coefficient
0.0000; !- Velocity Squared Term Coefficient
##endif
##set1 ROOFMAT[] 0
##if #[ROOFMAT[] EQS 0]
Material,
Roof Membrane, !- Name
VeryRough, !- Roughness
0.0095, !- Thickness {m}
0.1600, !- Conductivity {W/m-K}
1121.2900, !- Density {kg/m3}
1460.0000, !- Specific Heat {J/kg-K}
0.9000, !- Thermal Absorptance
0.6000, !- Solar Absorptance
0.2000; !- Visible Absorptance
##elseif #[ROOFMAT[] EQS 1]
Material,
Roof Membrane, !- Name
VeryRough, !- Roughness
0.0095, !- Thickness {m}
0.1600, !- Conductivity {W/m-K}
1121.2900, !- Density {kg/m3}
1460.0000, !- Specific Heat {J/kg-K}
0.8700, !- Thermal Absorptance
0.1000, !- Solar Absorptance
0.2000; !- Visible Absorptance
##endif
On Mon, Mar 10, 2014 at 6:34 AM, Jean Marais <<mailto:jeannieboef@xxxxxxxxx>jeannieboef@xxxxxxxxx> wrote:
>
> Or do you want the values to change during the runtime for one simulation?
>
>
> 2014-03-10 14:26 GMT+01:00 Jason Glazer <<mailto:jglazer@xxxxxxxx>jglazer@xxxxxxxx>:
>>
I would suggest that if all the information is changing that you use the Parametrics objects to change the name of the material, for example, if you left both of those Material objects in your file, you can change the reference by including:
>>
>> Parametric:SetValueForRun,
>> $roofDeck,
>> Aluminum_Roof_L0,
>> MetalDeck_Insulated_L0;
>>
>> Construction,
>> ROOF-1, !- Name
>> =$roofDeck, !- Outside Layer
>> BR01, !- Layer 2
>> IN46, !- Layer 3
>> WD01; !- Layer 4
>>
>> Obviously, you would need to modify the Construction object to match your project.
>>
>> The InputOutputReference section titled "Parametric Objects" describes the features more.
>>
>> Jason
>>
>>
>> On 3/9/2014 2:49 PM, Muhammad Saqib Mumtaz wrote:
>>> Dear All,
>>> I need your help in making my IDF files dynamic. For example, if I am changing the complete material information of roof, it means all parameter associated with that will be changed. I tried to use Parametrics objects but still do not know how to change the complete information. For example, in one of the IDF files, I have the following information.
>>>
>>> Alternative 1:
>>> Material,
>>> Aluminum_Roof_L0, !- Name
>>> Rough, !- Roughness
>>> 0.01000, !- Thickness {m}
>>> 230.00000, !- Conductivity {W/m-K}
>>> 2700.00000, !- Density {kg/m3}
>>> 880.00000, !- Specific Heat {J/kg-K}
>>> 0.90000, !- Thermal Absorptance
>>> 1.00000, !- Solar Absorptance
>>> 0.20000; !- Visible Absorptance
>>> Alternative 2:
>>> Material,
>>> MetalDeck_Insulated_L0, !- Name
>>> Rough, !- Roughness
>>> 0.02500, !- Thickness {m}
>>> 0.34309, !- Conductivity {W/m-K}
>>> 550.00000, !- Density {kg/m3}
>>> 2301.00000, !- Specific Heat {J/kg-K}
>>> 0.89000, !- Thermal Absorptance
>>> 0.50000, !- Solar Absorptance
>>> 0.24706; !- Visible Absorptance
>>>
>>> I want to change this type of information. Please help me.
>>> Thanks & Regards,
>>> Muhammad Saqib
>>
>> --
Jason Glazer, P.E., GARD Analytics, 90.1 ECB chair
Admin for <a href="http://onebuilding.org" target="_blank">onebuilding.org</a> building performance mailing lists
>>
>
>
__._,_.___
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=31496/stime=1394580132>
<https://groups.yahoo.com/group/EnergyPlus_Support;_ylc=X3oDMTJldDJ1bzB1BF9TAzk3MzU5NzE0BGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM5NDU4MDEzMg-->Visit Your Group
* <https://groups.yahoo.com/group/EnergyPlus_Support/members;_ylc=X3oDMTJmbGZ2dW5pBF9TAzk3MzU5NzE0BGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEzOTQ1ODAxMzI-?o=6>New Members 13
<https://groups.yahoo.com/;_ylc=X3oDMTJkZm1lN3JsBF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzk0NTgwMTMy><http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png>
? <https://info.yahoo.com/privacy/us/yahoo/groups/details.html>Privacy ? <mailto:EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>Unsubscribe ? <https://info.yahoo.com/legal/us/yahoo/utos/terms/>Terms of Use
__,_._,___