[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [EnergyPlus_Support] Changing the batch file "RunEPlus.bat"
Linda & Rohini
Thanks for your opinions. I would like to keep my installation
independent of EnergyPlus installed directory (instead of copying
MyInterface.exe to E+ directory) and I think I can't copy EnergyPlus
files into my installation and distribute it.
Can EnergyPlus developing group provide us with little more details
about how EnergyPlus.exe deals with parameters provided in the batch
file? Some explanations might be:
1. EnergyPlus.exe considers that Energy+.idd should always be installed
in the same location as EnergyPlus.exe. It is not possible to explicitly
tell EnergyPlus.exe that the file is located elsewhere. Am I right?
What other things like "this" EnergyPlus.exe Assumes? If so, where can I
find it?
Sorry about lots of questions.
Thanks in advance. Best Regards
Monjur
-----Original Message-----
From: Rohini Brahme [mailto:rohini@xxxxxxx]
Sent: 04 November 2002 18:49
To: Monjur M Mourshed
Subject: Re: [EnergyPlus_Support] Changing the batch file "RunEPlus.bat"
I had at one point used the batch file outside the energy plus folder. I
got it working by having the RunReadESO.bat, the EnergyPlus.exe,
Energy+.idd, ReadVarESO, Energy+.ini in the same directory that had the
runeplus batch file.
Following are the changes that I made to the runeplus batch file:
set program_path=
set program_name=EnergyPlus.exe
set input_path=..\input
set output_path=..\output
set post_proc=
set weather_path=WeatherData
input, output, and weatherdata were the new directories that I had
created
for my files.
Hope this helps.
Rohini
--On Monday, November 04, 2002 4:56 PM +0000 Monjur M Mourshed
<monjur@xxxxxxxxx> wrote:
>
> *
> * Clean Clean DocumentEmail MicrosoftInternetExplorer4
>
> Hello
>
>
>
> I want to keep the batch file (“RunEPlus”) out of
EnergyPlus
> Installation directory. Say, my application interface’s (with
> EnergyPlus) installation directory is C:\MyInterface\ - I have changed
> certain parameters of the batch file, but still doesn’t work. I
> guess, the problem is at the bottom end of the file (my version). Can
> anybody tell me what’s happening?
>
>
>
> Here’s the changed version of RunEPlus.bat (My changes are in
Bold
> typeface):
>
>
>
> @echo off
>
> if Not "%1" == "" goto :NoErr
>
> echo usage: %0 InputFileName (req) WeatherFileName (opt)
>
> goto :done
>
>
>
> :NoErr
>
> echo ===== %0 (Run EnergyPlus) %1 %2 ===== Start =====
>
> set program_path=C:\EnergyPlus
>
> set program_name=EnergyPlus.exe
>
> set input_path=%program_path%\ExampleFiles
>
> set output_path=%program_path%\ExampleFiles
>
> set post_proc=%program_path%\PostProcess
>
> set weather_path=%program_path%\WeatherData
>
>
>
> IF "%output_path%" == "" goto :nopath
>
> IF EXIST %output_path%\%1.eso ERASE %output_path%\%1.eso
>
> IF EXIST %output_path%\%1.csv ERASE %output_path%\%1.csv
>
> IF EXIST %output_path%\%1.rdd ERASE %output_path%\%1.rdd
>
> IF EXIST %output_path%\%1.eio ERASE %output_path%\%1.eio
>
> IF EXIST %output_path%\%1.dbg ERASE %output_path%\%1.dbg
>
> IF EXIST %output_path%\%1.dxf ERASE %output_path%\%1.dxf
>
> IF EXIST %output_path%\%1.3dl ERASE %output_path%\%1.3dl
>
> IF EXIST %output_path%\%1.sln ERASE %output_path%\%1.sln
>
> IF EXIST %output_path%\%1.err ERASE %output_path%\%1.err
>
> IF EXIST %output_path%\%1.siz ERASE %output_path%\%1.siz
>
> IF EXIST %output_path%\%1.mtr ERASE %output_path%\%1.mtr
>
> IF EXIST %output_path%\%1.mtd ERASE %output_path%\%1.mtd
>
> goto :cpin
>
>
>
> :nopath
>
> IF EXIST %1.err ERASE %1.err
>
> IF EXIST %1.eso ERASE %1.eso
>
> IF EXIST %1.eio ERASE %1.eio
>
> IF EXIST %1.csv ERASE %1.csv
>
> IF EXIST %1.rdd ERASE %1.rdd
>
> IF EXIST %1.dbg ERASE %1.dbg
>
> IF EXIST %1.dxf ERASE %1.dxf
>
> IF EXIST %1.3dl ERASE %1.3dl
>
> IF EXIST %1.sln ERASE %1.sln
>
> IF EXIST %1.siz ERASE %1.siz
>
> IF EXIST %1.mtr ERASE %1.mtr
>
> IF EXIST %1.mtd ERASE %1.mtd
>
>
>
> :cpin
>
> IF "%input_path%" == "" goto :nipath
>
> copy %input_path%\%1.idf in.idf
>
> copy %input_path%\%1.rvi eplusout.inp
>
> goto :ckwth
>
>
>
> :nipath
>
> copy %1.idf in.idf
>
> copy %1.rvi eplusout.inp
>
>
>
> :ckwth
>
> if "%2" == "" goto exe
>
> if EXIST %weather_path%\%2.epw copy %weather_path%\%2.epw in.epw
>
>
>
> :exe
>
> ECHO Begin EnergyPlus processing . . .
>
> IF EXIST audit.out DEL audit.out
>
>
>
> if "%program_path%" == "" %program_name%
>
> if not "%program_path%" == "" %program_path%\%program_name%
>
>
>
> IF EXIST RunReadESO.bat goto L1
>
> copy %post_proc%\RunReadESO.bat RunReadESO.bat
>
>
>
> :L1
>
> IF EXIST ReadVarsESO.exe goto L2
>
> copy %post_proc%\ReadVarsESO.exe ReadVarsESO.exe
>
>
>
> :L2
>
> CALL %program_path%\RunReadESO
>
> IF EXIST eplusout.eso MOVE eplusout.eso %output_path%\%1.eso
>
> IF EXIST eplusout.rdd MOVE eplusout.rdd %output_path%\%1.rdd
>
> IF EXIST eplusout.dbg MOVE eplusout.dbg %output_path%\%1.dbg
>
> IF EXIST eplusout.eio MOVE eplusout.eio %output_path%\%1.eio
>
> IF EXIST eplusout.err MOVE eplusout.err %output_path%\%1.err
>
> IF EXIST eplusout.dxf MOVE eplusout.dxf %output_path%\%1.dxf
>
> IF EXIST eplusout.csv MOVE eplusout.csv %output_path%\%1.csv
>
> IF EXIST eplusout.3dl MOVE eplusout.3dl %output_path%\%1.3dl
>
> IF EXIST eplusout.sln MOVE eplusout.sln %output_path%\%1.sln
>
> IF EXIST eplusout.siz MOVE eplusout.siz %output_path%\%1.siz
>
> IF EXIST eplusout.mtr MOVE eplusout.mtr %output_path%\%1.mtr
>
> IF EXIST eplusout.mtd MOVE eplusout.mtd %output_path%\%1.mtd
>
>
>
> ECHO Removing extra files . . .
>
> IF EXIST in.idf DEL in.idf
>
> IF EXIST eplusout.inp DEL eplusout.inp
>
> IF EXIST in.epw DEL in.epw
>
>
>
> :done
>
> echo ===== %0 %1 ===== Complete =====
>
>
>
> Here are the errors I am getting:
>
>
>
>
>
>
> My questions:
>
>
> * What parameter change I am missing?
> * Is there any shortcut way to specify different directories for
> EnergyPlus (Except using EP-Launch)?
>
>
>
> Best Regards
>
>
>
> Monjur
>
>
>
> ***************************************
>
> Monjur M Mourshed
>
> IRUSE
>
> Informatics Research Unit for Sustainable Engineering
>
> National University of Ireland Cork. Ireland.
>
> Web: http://www.ecaad.com/monjur
>
> http://www.ucc.ie/iruse/monjur
>
> Email : m.mourshed@xxxxxxxxxxx
>
> monjur@xxxxxxxxx
>
> ***************************************
> Yahoo! Groups Sponsor ADVERTISEMENT
>
> To unsubscribe from this group, send an email to:
> EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx
>
> The primary EnergyPlus web site is found at:
> http://www.energyplus.gov
>
> The group web site is:
> http://groups.yahoo.com/group/EnergyPlus_Support/
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/dkFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx
The primary EnergyPlus web site is found at:
http://www.energyplus.gov
The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/