[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [EnergyPlus_Support] Scripts
It is not necessary to save the files manually. The imf macro system is
designed to do exactly what you want. You can run thousands of parametric runs
all from a single imf input file. Remember that the epmidf output file is
saved for future reference, and it shows the final resulting input for
EnergyPlus after all macro processing is completed. The key is to use an
output file naming scheme that prevents the outputs from overwriting each
other.
One option for doing this is to use the Group capability in EP-Launch (see the
Getting Started document). Make your master input file a *.imf file (which can
then have ##includes of other idf or imf files). With the EP-Launch group
simulations, there is an optional counter for running the same file multiple
times. A file called "COUNTER.INC" is written prior to each simulation which
sets a macro variable called "Counter". The imf input file can then have ##IF
blocks that set other variables based on the current value of counter[].
Another option is to write your own batch files which call runeplus.bat.
Again, the approch to use is to have the batch file write a short file such as
"parameters.inc" (can be any extension you like) with ##set1 statements in it
to set the desired parameters for a single run. Then in the master imf file
##include parameters.inc at the top of the file. Then the rest of the file can
have ##IF block that are controlled by the variables which were set in
parameters.inc.
I know this is rather confusing at first, but it turns out to be quite simple
and powerful once you get past the initial learning curve.
Mike
On 12 Feb 2006 at 9:11, Clarice Bleil de Souza wrote:
> Hi everybody,
>
> I'm trying to find a way to do lots of runs in E+ automatically. I need to
> do a single parametric sensitivity analysis and therefore I need to vary one
> parameter at a time, save the file, run it and check the results.
>
> I had a look at the macros but I'm not sure if they are apropriate as it
> seems to me that each file needs to be specified anyway and saves should be
> done manually. I thought I could use the ##def to define all my variables in
> some files and then use the ##if and/or ##include to substitute each one in
> the "basic" .idf file but I couldn't find a way to save the file each time
> before running so that I have a collection of input files - each of them with
> only one different variable.
>
> I've opened a macro example and saw that a macro comand should be included
> inside the .idf file so that it calls the correspondent .imf file. I think I
> cannot use this because I want to use the same .idf file many times, just
> changing one of the variables each time and by doing this I'd need to save the
> files manually if I decide to use a macro command.
>
> I wanted to check with you but it seems to me that I can only do a
> parametric sensitivity analysis if I write a script to manipulate .idf text
> files, am I right? In this case has anybody faced sth similar in the past and
> can give me some tips about which tool would be the most apropriate one?
>
> Thanks in advance for the help.
>
> Best regards,
>
> Clarice
>
> P.S. Thanks a lot for the replies about Linux Windows conversion, I'll check
> the cluster on Monday and see what is installed there.
>
>
> ---------------------------------
> Yahoo! Search
> Dê uma espiadinha e saiba tudo sobre o Big Brother Brasil.
>
> [Non-text portions of this message have been removed]
>
>
>
> 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.
>
> EnergyPlus Documentation is searchable. Open EPlusMainMenu.idf and press the
> "search" button.
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
========================================================
Michael J. Witte, GARD Analytics, Inc.
EnergyPlus Testing and Support
EnergyPlus-Support@xxxxxxxx
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.
EnergyPlus Documentation is searchable. Open EPlusMainMenu.idf and press the "search" button.
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/