[Bldg-sim] Coupling GenOpt, Energyplus and Daysim

Tavis Wells rangitokomo at hotmail.com
Mon Mar 17 19:10:18 PDT 2014


Hi Yi,

Very mysterious! Yip I've attached the two .cfg file I've tried (one based on the Eplus.cfg example file; the other based on the batchSimulation.cfg file), and the Master.bat file with the various command lines I've tried (as a word doc- email wouldn't allow to send .bat).
And the .ini and command.txt if that helps.

Thank you for your interest and help!

Best regards,
Tavis.


From: YiZhang at dmu.ac.uk
To: rangitokomo at hotmail.com; bldg-sim at lists.onebuilding.org
Subject: RE: [Bldg-sim] Coupling GenOpt, Energyplus and Daysim
Date: Mon, 17 Mar 2014 22:30:25 +0000









Hi Tavis,
 
Hmm, that’s mysterious. Do you share your batch file(s) with the group? I cannot see any problems from Java’s (GenOpt’s language) point of view…
 
Cheers,
 
Yi
 


From: Tavis Wells [mailto:rangitokomo at hotmail.com]


Sent: 17 March 2014 11:52

To: Yi Zhang; bldg-sim at lists.onebuilding.org

Subject: RE: [Bldg-sim] Coupling GenOpt, Energyplus and Daysim


 




Hi, Thank you for your replies!



Alstan,

Yes, Khaled's tutorial for GenOpt + Radiance has been very helpful. I think the same input file structure could be used, plus the Daysim Header file.



Mike, 

This RunDirMulti.bat looks like it would be used to simulate a batch of pre-made EnergyPlus models in parallel, is this right? Or does it enable 1 model to run subsequent iterations? I need one iteration to finish before the next starts, so GenOpt can make
 its systematic changes to the model.



Yi,

I've tried copy pasting the Daysim batch file command lines in at the start of the RunEplus.bat so that it runs and completes before the Eplus model. This appears to work when run from the command shell, but, again, not when attempted through GenOpt. I think
 it comes back to Eplus and GenOpt- not creating temporary directories properly when called through a batch file (even following the command lines from GenOpts example files)?






Best regards,

Tavis.




From: 
YiZhang at dmu.ac.uk

To: rangitokomo at hotmail.com; 
bldg-sim at lists.onebuilding.org

Subject: RE: [Bldg-sim] Coupling GenOpt, Energyplus and Daysim

Date: Fri, 14 Mar 2014 19:53:27 +0000

Hi Tavis,
 
The lines below are from the “EnergyPlusWinXP.cfg” file that comes with GenOpt. Apparently GenOpt does use a batch file (customized RunEPlus.bat) to run
 E+. I think your best approach would be to modify the RunEPlus.bat file (or the RunEPlusParallel.bat file in GenOpt), and insert the part that runs DaySim in the same way that the other E+ preparatory steps are done…

 
**
/*  Specifying how to start the simulation program.
    In "Command", only those words in %xx% are

    replaced (possibly with empty Strings).
*/
SimulationStart
{
    // The command line below calls a custom version of RunEPlus.bat.
    // This is needed to run multiple EnergyPlus simulations in parallel,
    // because the standard version writes files to the EnergyPlus program
    // directory, and hence multiple simulations would access the same files.
    Command = "cmd /x /c \"start /D\"%Simulation.Files.Input.Path1%\" /WAIT /MIN call \".\\RunEPlusParallel.bat\" %Simulation.Files.Input.File1% %Simulation.CallParameter.Suffix%\"";
    WriteInputFileExtension = false;
}
**
 
Cheers,
 
Yi
 


From:
bldg-sim-bounces at lists.onebuilding.org [mailto:bldg-sim-bounces at lists.onebuilding.org]
On Behalf Of Tavis Wells

Sent: 14 March 2014 10:49

To: bldg-sim at lists.onebuilding.org

Subject: [Bldg-sim] Coupling GenOpt, Energyplus and Daysim


 



Greetings all!


 


I am attempting to optimize the passive design of a building using GenOpt as the optimizer, EnergyPlus as the primary energy model platform, and daylight reports from Daysim (an identical model to the Eplus model) which feed into the
 Eplus model.


Each iteration dictated by GenOpt would need to simulate in Daysim and finish before simulating in Eplus.


I am using a 'Master' batch file, referenced by GenOpt, to call Daysim and then Eplus.


This process works when run straight from the batch file, but when run through GenOpt it does not create the temporary working directory correctly (.expidf and .err files missing), and so it crashes during the first iteration, saying
 ".err file does not exist".


Simplifying the task to just optimize Eplus, but through a batch file, has the same result.


The command line I've been working with consists of 3 parts: 


Call <RunEplus.bat> <model> <weatherfile>


I've tried countless different variations of this command line but cant figure it out!


 


Has anyone optimized an EnergyPlus model through GenOpt using a batch file before? Or know what the command line might look like to do that?


 


Any ideas welcome!


 


Thanks,


Tavis.


 


 









 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntegrateDaysim_batchSimulation.cfg
Type: application/octet-stream
Size: 2465 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0006.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IntegrateDaysim_command.txt
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0002.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntegrateDaysim_Master batch command lines.docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 12279 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntegrateDaysim_optWin7.ini
Type: application/octet-stream
Size: 1646 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IntegrateDaysim_EnergyPlus-7-2-0-Win7.cfg
Type: application/octet-stream
Size: 2549 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20140318/05d05c6d/attachment-0008.obj>


More information about the Bldg-sim mailing list