<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Achim and Arianna and list,<br>
one consideration about the reliability of ESP-r for batch
scripting. I think that it is more rock-solid when ESP-r is
compiled for text mode and not compiled for graphics (then
launched with the -text mode option). I don't know were the
difference lies. I have noticed that the two behaviours are not
identical.<br>
<br>
Best regards<br>
<br>
Gian Luca Brunetti<br>
<br>
<br>
<br>
<br>
On 02/07/2015 20:14, Achim Geissler wrote:<br>
</div>
<blockquote
cite="mid:5601BF9E-FF18-4280-B1FE-2D0736C6A243@intergga.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
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=""> </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=""> new_bath_con=</span>“*con ../zones/bath_${CON}.con
# 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=""> new_bed1_con=</span>“*con ../zones/bedroom1_${CON}.con
# construction"</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"
class=""> cp ${VAR}.cfg temp.cfg</div>
<div style="margin: 0px;" class=""><font class="" face="Menlo"><span
style="font-size: 11px;" class=""> sed </span></font><font
class="" color="#b4261a" face="Menlo"><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="">
s%.*con ../zones/bedroom1_.*%'"${new_bed1_con}”'%</span><span
style="font-variant-ligatures: no-common-ligatures; color:
#b4261a" class="">'</span> temp.cfg > ${VAR}.cfg</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"
class=""> 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=""><< here the sed changing is done >></div>
<div class=""><br class="">
</div>
<div class=""><< here you call bps and do your simulation
>></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 <<a
moz-do-not-send="true"
href="mailto:A.Sdei2@brighton.ac.uk" class=""><a class="moz-txt-link-abbreviated" href="mailto:A.Sdei2@brighton.ac.uk">A.Sdei2@brighton.ac.uk</a></a>>
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"> </span></div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""> </p>
<div style="margin-top: 0px; margin-bottom: 0px;"
class="">have you used sed to modify construction
files via scripting? I am having troubles 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=""> </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 </div>
</div>
<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="" clear="all">
<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"> </span></span><a
moz-do-not-send="true"
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=""><a class="moz-txt-link-freetext" href="http://www.brighton.ac.uk/is/spam/">http://www.brighton.ac.uk/is/spam/</a></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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
esp-r mailing list
<a class="moz-txt-link-abbreviated" href="mailto:esp-r@lists.strath.ac.uk">esp-r@lists.strath.ac.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.strath.ac.uk/mailman/listinfo/esp-r">http://lists.strath.ac.uk/mailman/listinfo/esp-r</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Gian Luca Brunetti
dr.arch.
DAStU
Politecnico di Milano
via Bonardi 3
20133 Milano
tel. (+39) 02 2399 5750</pre>
</body>
</html>