<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear Arianna,<div class=""><br class=""></div><div class="">as I was the one to give you this idea, I guess I will have to give some pointers. But keep in mind that this must be considered a hack and you will likely need to learn a bit about writing shell scripts. You can find ample information and coding examples for sed and bash scripts in the internet.</div><div class=""><br class=""></div><div class="">You have zones named “bath", “bedroom1", “entrance" and so on. Correspondingly, you have entries in the .cfg file of the type</div><div class=""><br class=""></div><div class="">*con ../zones/bath.con</div><div class="">…</div><div class="">*con ../zones/bedroom1.con</div><div class=""><br class=""></div><div class="">and so on. Now, the sequence (e.g. in a bash shell script which runs your model), the lines</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&nbsp; &nbsp; &nbsp;&nbsp;</span># Change construction file to CON</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(180, 38, 26);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&nbsp; &nbsp; &nbsp; new_bath_con=</span>“*con&nbsp;../zones/bath_${CON}.con &nbsp;# construction"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(180, 38, 26);" class=""><span style="color: rgb(0, 0, 0);" class="">&nbsp; &nbsp; &nbsp;&nbsp;new_bed1_con=</span>“*con&nbsp;../zones/bedroom1_${CON}.con &nbsp;# construction"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; cp ${VAR}.cfg temp.cfg</div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">&nbsp; &nbsp; &nbsp; sed </span></font><font color="#b4261a" face="Menlo" class=""><span style="font-size: 11px;" class="">'s%.*con ../zones/bath_.*%'"${new_bath_con}”'%</span></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="color: rgb(180, 38, 26);" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;s%.*con ../zones/bedroom1_.*%'"${new_bed1_con}”'%</span><span style="font-variant-ligatures: no-common-ligatures; color: #b4261a" class="">'</span> temp.cfg &gt; ${VAR}.cfg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; rm temp.cfg</div></div><div class=""><br class=""></div><div class="">should replace the existing con file entries (for bath and bedroom1) in .cfg by the new ones “bath_${CON}.con” and “bedroom1_${CON}" in the file ${VAR}.cfg (I haven’t tried this exact example, but other similar ones). The “$” stuff are variables in loops inside your bash script. Basically, you would need to pre-define your various .con files, e.g. by numbering them like bath_1.con, bedroom1_1.con and so on (and the initial .cfg would need to have entries of this type!). Via a list</div><div class=""><br class=""></div><div class="">CONLIST=“1 2 3”</div><div class=""><br class=""></div><div class="">and the loop</div><div class=""><br class=""></div><div class="">foreach CON in $CONLIST</div><div class="">do</div><div class=""><br class=""></div><div class="">&lt;&lt; here the sed changing is done &gt;&gt;</div><div class=""><br class=""></div><div class="">&lt;&lt; here you call bps and do your simulation &gt;&gt;</div><div class=""><br class=""></div><div class="">done</div><div class=""><br class=""></div><div class="">you can run through a series of simulations. I expect many people would prefer using python or perl for this.</div><div class=""><br class=""></div><div class="">And, as written before, you of course always have the option of managing a row of models - probably quicker first time round, but in the long run vastly less elegant and also a lot more prone to errors in my experience. Of course, it would be easier if the switching of constructions and other files etc. were reliable when running ESP-r in text mode from a script which I have also found not to be the case (which originally lead me down the above described road).</div><div class=""><br class=""></div><div class="">Best</div><div class="">Achim</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 02 Jul 2015, at 16:08, Arianna Sdei &lt;<a href="mailto:A.Sdei2@brighton.ac.uk" class="">A.Sdei2@brighton.ac.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear All,<span class="Apple-converted-space">&nbsp;</span></div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">have you used sed to modify construction files via scripting? I am having troubles&nbsp;when I modify construction files to see the effects of increased external insulation. I am not 100% sure that ESP-r is actually recognizing the changes I make and I don't trust 100% the results I get at the moment. I would like to try sed to make sure that my results are rigorous, let me know if you can help.</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thank you,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">regards.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Arianna&nbsp;&nbsp;&nbsp;</div></div><br clear="both" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">___________________________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">This email has been scanned by MessageLabs' Email Security</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">System on behalf of the University of Brighton.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">For more information see<span class="Apple-converted-space">&nbsp;</span></span><a href="http://www.brighton.ac.uk/is/spam/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://www.brighton.ac.uk/is/spam/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">___________________________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">esp-r mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:esp-r@lists.strath.ac.uk" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">esp-r@lists.strath.ac.uk</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.strath.ac.uk/mailman/listinfo/esp-r" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.strath.ac.uk/mailman/listinfo/esp-r</a></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div class=""><a href="mailto:achim.geissler@intergga.ch" class="">achim.geissler@intergga.ch</a></div><div class=""><br class=""></div><div class=""><br class=""></div></span><br class="Apple-interchange-newline">

</div>
<br class=""></div></body></html>