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

Re: [EnergyPlus_Support] EnergyPlus Macros Doubt




Yes, you can use the EnergyPlus macros to do that.  You would embed the
macros in a single IMF file.  Then with a batch command file or other
process, merge a short list of definitions for those macros at the
beginning of the file, one each for each variant....1120 total. Here's an
example with missing data ( . . .):

Definitions:

##set1 Location = "PORTO_ALEGRE_BRA"
##set1 Window = "SINGLECLEAR"
##set1 Orientation = "0"

In the location in the IMF where you want the data to wind up, you'd have:

##if [ Orientation EQS 0 ]
    0.0000000E+00,             !- North Axis {deg}
##else if [ Orientation EQS 45 ]
    45.0000000E+00,             !- North Axis {deg}
##elseif [ Orientation EQS ... one else if for each of the others ]
 ... all the other orientation data
##endif

##if [ Location EQS PORTO_ALEGRE_BRA ]

Location,
  PORTO_ALEGRE_BRA Design_Conditions,     !- Location Name
  -30.00000     ,     !- Latitude {N+ S-}
  -51.18000     ,     !- Longitude {W- E+}
  -3.000000     ,     !- Time Zone Relative to GMT {GMT+/-}
   3.000000     ;     !- Elevation {m}
... through the remainder of your information for that location

##elseif [ Location EQS SAO_PAULO_BRA ]
... data for Sao Paulo
##elseif [ Location EQS RIO_DE_JANEIRO_BRA ]
... data for Rio
##elseif [ ... through all the other locations]
... dat for other locations
##endif

##if [ Window EQS SINGLECLEAR ]
MATERIAL:WINDOWGLASS,
    1 - Clear 4mm,           !- Name
! Calculated from supplied properties using equations for uncoated glass
    SpectralAverage,         !- Optical Data Type
    ,                        !- Name of Window Glass Spectral Data Set
    2.9720000E-03 ,          !- Thickness {m}
    0.8425000     ,          !- Solar Transmittance at Normal Incidence
    7.4530000E-02 ,          !- Solar Reflectance at Normal Incidence:
Front
...
##elseif [ Window EQS DOUBLECLEAR ]
...
##endif


Then your batch file have for loops to write the three header lines and
merge that with the base IMF.
(I'd use batch to do it all--create the files, run them, get summary data,
and store them.)




                                                                                                           
                      "Fábyo Luiz                                                                          
                      Pereira"                 To:       EnergyPlus_Support@xxxxxxxxxxxxxxx                
                      <fluizp@xxxxxxxxx        cc:                                                         
                      >                        Subject:  [EnergyPlus_Support] EnergyPlus Macros Doubt      
                                                                                                           
                      08/18/2004 01:39                                                                     
                      PM                                                                                   
                      Please respond to                                                                    
                      EnergyPlus_Suppor                                                                    
                      t                                                                                    
                                                                                                           
                                                                                                           




   I was looking the EnergyPlus Macros documentation and have a doubt: can
I
make a macro that automatizes a simulation serie? I mean: I'm doing a serie
of
simulations that objectivates evaluate the window glass influence in a
building, but I'm also changing the north orientation and the location
(with
design days and ground temperatures) of the building, like this:

- North orientation: 0; 45; 90; 135; 180; 225; 270; 315 (8 orientations on
total).
- Location: 20 brazilian cities.
- Window glass: 7 kinds.


   This way I have 56 simulations on each city, that totalizes 1120
simulations
for all 20 cities. To make things easy, I wanna make an automatization like
a
classic "do loop". I've already done and compilate in Q-Basic one routine
that
do that, but I'm working with the .idf files and "peaces" of the .idf that
are
called and inserted in the .idf file to make the final.idf, that runs in
the
EPlaunch.exe.

   For example: I have an .idf file ready to run, but it has no "North
Axis",
"Location", "Ground Temperatures" and "Material:Windowglass" (I just cutted
then off the file). When I open the "automatic.exe" is asked to me what
cities,
glasses and orientations I wanna simulate. After choose these parameters I
execute the "automatic.exe" and a serie of .bat files are called and insert
the
following lines on the .idf file to make it complete and run the
"EPlaunch.exe":

--------------------------------------------------------------------------------


North Orientation:

    90.0000000E+00,             !- North Axis {deg}

--------------------------------------------------------------------------------


Location:

Location,
  PORTO_ALEGRE_BRA Design_Conditions,     !- Location Name
  -30.00000     ,     !- Latitude {N+ S-}
  -51.18000     ,     !- Longitude {W- E+}
  -3.000000     ,     !- Time Zone Relative to GMT {GMT+/-}
   3.000000     ;     !- Elevation {m}

! Using Design Conditions from "World Climate Design Data 2001 ASHRAE
Handbook"

! PORTO_ALEGRE_BRA Cooling (DB=>MWB) 1%, MaxDB=  33.50 MWB=  24.00
DesignDay,
     PORTO_ALEGRE_BRA Cooling 1% Conditions DB=>MWB 12,     !- Name
   33.50000     ,     !- Max Dry-Bulb {C}
   9.500000     ,     !- Daily Temp Range {C}
   24.00000     ,     !- Wet-Bulb at Max {C}
   101289.0     ,     !- Barometric Pressure {N/M**2}
  3.0000000E+00 ,     !- Wind Speed {M/Sec}
  290.00000E+00 ,     !- Wind Direction {Degrees N=0, S=180}
   1.000000     ,     !- Clearness {0.0 to 1.1}
           0 ,     !- Rain {0-no,1-yes}
           0 ,     !- Snow on ground {0-no,1-yes}
          21 ,     !- Day of Month
          12 ,     !- Month
   SummerDesignDay,      !- Day Type
           0 ;   !- Daylight Savings Time Indicator


!-   ===========  ALL OBJECTS IN CLASS: GROUNDTEMPERATURES ===========

GroundTemperatures,
    24.7,                      !- January Ground Temperature {C}
    24.4,                      !- February Ground Temperature {C}
    23.1,                      !- March Ground Temperature {C}
    19.5,                      !- April Ground Temperature {C}
    16.5,                      !- May Ground Temperature {C}
    14.4,                      !- June Ground Temperature {C}
    14.3,                      !- July Ground Temperature {C}
    15.2,                      !- August Ground Temperature {C}
    16.9,                      !- September Ground Temperature {C}
    19.1,                      !- October Ground Temperature {C}
    21.4,                      !- November Ground Temperature {C}
    23.3;                      !- December Ground Temperature {C}

--------------------------------------------------------------------------------


Windowglass:

MATERIAL:WINDOWGLASS,
    1 - Clear 4mm,           !- Name
! Calculated from supplied properties using equations for uncoated glass
    SpectralAverage,         !- Optical Data Type
    ,                        !- Name of Window Glass Spectral Data Set
    2.9720000E-03 ,          !- Thickness {m}
    0.8425000     ,          !- Solar Transmittance at Normal Incidence
    7.4530000E-02 ,          !- Solar Reflectance at Normal Incidence:
Front
Side
    7.4780000E-02 ,          !- Solar Reflectance at Normal Incidence: Back
Side
    0.9033000     ,          !- Visible Transmittance at Normal Incidence
    8.0680000E-02 ,          !- Visible Reflectance at Normal Incidence:
Front
Side
    8.0720000E-02 ,          !- Visible Reflectance at Normal Incidence:
Back
Side
    0.0000000E+00 ,          !- IR Transmittance at Normal Incidence
    0.8379000     ,          !- IR Hemispherical Emissivity: Front Side
    0.8379000     ,          !- IR Hemispherical Emissivity: Back Side
    0.9000000     ;          !- Conductivity {W/m-K}


=====
________________________________________________________
Engº Fábyo Luiz Pereira
UFRGS - Laboratório de Vapor e Refrigeração
Rua Sarmento Leite, 425 - Sala 203 - Centro - 90050-170
Fone / Fax: +55 51 3316-3167 / 3316-3355
www.mecanica.ufrgs.br/lafrig
Porto Alegre - RS - BRASIL





_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!
http://br.acesso.yahoo.com/


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

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

Attachments are not allowed -- please post any files to the appropriate
folder in the Files area of the Support Web Site.


                                                             
                    Yahoo! Groups Sponsor                    
                                                             
                                                             
                                                             
                        ADVERTISEMENT                        
                                                             
                                                             
                                                             
                                                             
                                                             



Yahoo! Groups Links
      To visit your group on the web, go to:
      http://groups.yahoo.com/group/EnergyPlus_Support/

      To unsubscribe from this group, send an email to:
      EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

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

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

Attachments are not allowed -- please post any files to the appropriate folder in the Files area of the Support Web Site.
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/EnergyPlus_Support/

<*> To unsubscribe from this group, send an email to:
    EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/