Hi Andrea,<br><br>I've made similar efforts in Python. I posted a bit online;<br><br><a href="http://www.optimalenergetics.com/Blog/parallel-execution-of-a-batch-of-simulation-runs/">http://www.optimalenergetics.com/Blog/parallel-execution-of-a-batch-of-simulation-runs/</a><br>
<br>As already mentioned by David, I used the /h switch to run in the background. Furthermore, I track the process ID in python and loop until it closes, then spin up the next simulation. I also the current CPU percentage so you always run at 80% for example, to use all the cores on your machine in parallel. <br>
<br>Good luck and let me know if you run into anything else,<br><br>Marcus<br>-- <br><span style="color:rgb(0,0,0)">Marcus Jones, </span><span style="color:rgb(0,0,0)"> M.Sc.</span><span style="color:rgb(0,0,0)">, </span><a style="color:rgb(0,0,0)" name="SafeHtmlFilter_131245b5df81718e__MailAutoSig"><span style="font-size:10pt"></span></a><span style="color:rgb(0,0,0)"><span style="font-size:10pt">LEED<sup>®</sup>AP BD+C</span></span><br style="color:rgb(0,0,0)">
<i style="color:rgb(0,0,0)">Freelance energy consultant</i><br style="color:rgb(0,0,0)"><i style="color:rgb(0,0,0)">Vienna, Austria</i><br><br><div class="gmail_quote">On Mon, Sep 17, 2012 at 5:05 PM, David BRADLEY <span dir="ltr"><<a href="mailto:d.bradley@tess-inc.com" target="_blank">d.bradley@tess-inc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Andrea,<br>
adding the /n switch at the end of the command line to call the
TRNSYS simulation will supress the need to click the "finish" button
at the end of the simulation. Adding a /h switch to the command line
will cause TRNSYS to run completely hidden in the background.<br>
<br>
"c:\Trnsys17\Exe\TRNExe.exe" "c:\Trnsys17\Path\To\DckFile.dck" /n<br>
<br>
best,<br>
David<div><div class="h5"><br>
<br>
<br>
<div>On 9/17/2012 08:04, Andrea Sauer wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div style="font-family:Verdana;font-size:12.0px">
<div>Dear all,<br>
<br>
I am currently working on a parameter variation.<br>
A Python script is the base for this.<br>
</div>
<div>This Python script set the variables in the input file for
TRNSYS.<br>
</div>
<div>The Python script also start the simulation of TRNSYS <span style="font-size:10px">(For this purpose the command in
Python = subprocess)</span>.<br>
</div>
<div><br>
</div>
<div>Problem: The Python script can not detect when TRNSYS
finished the simulation. The Python script can only detected
when TRNSYS is closed.<br>
<br>
Question: Is there a way TRNSYS automatically close after the
simulation has been run? <br>
</div>
<div>Or is there a way to close the OnlinePlotter automatically
after the simulation has been run? <br>
<br>
Alternatively: Does anyone know of a way to do this through
Python? <br>
</div>
<div><br>
</div>
<div>Thank you!<br>
</div>
<div><span><span></span></span><br>
</div>
<div><span><span>Kind regards,</span></span><br>
</div>
<div><br>
</div>
<div>Andrea Sauer<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
TRNSYS-users mailing list
<a href="mailto:TRNSYS-users@cae.wisc.edu" target="_blank">TRNSYS-users@cae.wisc.edu</a>
<a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:<a href="tel:%2B1.608.274.2577" value="+16082742577" target="_blank">+1.608.274.2577</a>
F:<a href="tel:%2B1.608.278.1475" value="+16082781475" target="_blank">+1.608.278.1475</a>
<a href="mailto:d.bradley@tess-inc.com" target="_blank">d.bradley@tess-inc.com</a>
<a href="http://www.tess-inc.com" target="_blank">http://www.tess-inc.com</a>
<a href="http://www.trnsys.com" target="_blank">http://www.trnsys.com</a></pre>
</div>
<br>_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a><br>
<a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><br>
<br></blockquote></div><br><br clear="all"><br><br>