<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Usually you have to use some combination of thermostat models
(which compare a temperature to a set point), differential
controllers (which operate based on a temperature difference
instead of on absolute values), and equations, which combine the
outputs of the individual thermostats together. You'll probably
need to use some of the boolean functions such as GT(:,:). It
returns a 1 if the first argument is greater than the second.
There are also functions such as AND(:,:), which will return a 1
only if both of the arguments are 1. I would start out by creating
a truth table using your input variables (house temperature, tank
temperature, collector temperature) and fully define how the valve
should be set for all sensed temperatures. From there the truth
table can be turned into one or more equations.<br>
</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 05/14/2022 03:57, berkane ahlem via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACC+vA74mGaRqDasF+v-zJj9HUKeMYJgwNbP1x6DR+5LCNRpgA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Dear Users,
<div dir="auto">in GSHP systems, the diverting Valve- will
generally send all of its input flow to house but if the house
is warm enough and the tank is cold while the collector is
cold too, this valve will send all of its input to tank. how
can i wright a control function gor this diveting valve <br>
</div>
<div dir="auto">Regards </div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI 53703 USA
P:+1.608.274.2577
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>