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

[EnergyPlus_Support] Changing the batch file "RunEPlus.bat"



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:

 

  1. What parameter change I am missing?
  2. 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 CorkIreland.

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.


SPAM: ------------------------ Spamnix Spam Report -------------------------
SPAM: Spamnix identified this message as spam.  This report shows which
SPAM: rules matched the message and how many points each rule contributed.
SPAM: 
SPAM: Content analysis details:   (5.3 hits, 5 required)
SPAM: SMTPD_IN_RCVD      (2.1 points)  Received via SMTPD32 server (SMTPD32-n.n)
SPAM: FORGED_RCVD_FOUND  (0.0 points)  Possibly-forged 'Received:' header found
SPAM: DOUBLE_CAPSWORD    (1.1 points)  BODY: A word in all caps repeated on the line
SPAM: SPAM_REDIRECTOR    (1.7 points)  URI: Uses open redirection service
SPAM: MAILTO_LINK        (0.8 points)  BODY: Includes a URL link to send an email
SPAM: WEB_BUGS           (-0.4 points) BODY: Image tag with an ID code to identify you
SPAM: 
SPAM: --------------------- End of Spamnix Spam Report ---------------------

Email file not found:
C:\Users\lklawrie\Downloads\Embedded\image0016.jpg