<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ciaran,<br>
It may be that the controller arrived at its oscillation limit
during that time step. The parameter NSTK limits how many times the
controller can change states within the iterations of a single time
step.<br>
Best,<br>
David<br>
<br>
<br>
<div class="moz-cite-prefix">On 10/19/2012 11:14, Flynn Ciaran
wrote:<br>
</div>
<blockquote
cite="mid:11D757A91E41E34AAEA871F0EBB9568037EE4DCF@EXMDB02.org.aalto.fi"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
p.Default, li.Default, div.Default
{mso-style-name:Default;
margin:0cm;
margin-bottom:.0001pt;
text-autospace:none;
font-size:12.0pt;
font-family:"Arial","sans-serif";
color:black;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">After having read the
documentation and online help, I am still having trouble
with the type 2b and I was wondering if you could please
help me out. My problem is the following:<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I used the example file
SDHW, where the Type2b is connected as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Upper limit </span><span
style="font-size:10.0pt" lang="EN-US">TH</span><span
lang="EN-US"> = solar collector output temperature<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Lower limit </span><span
style="font-size:10.0pt" lang="EN-US">TL</span><span
lang="EN-US"> = tank to heat source temperature<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Monitoring temperature </span><span
style="font-size:10.0pt" lang="EN-US">TIN</span><span
lang="EN-US"> = tank to load temperature<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Upper deadband </span><span
style="font-size:10.0pt" lang="EN-US">ΔTH</span><span
lang="EN-US"> = 15 degrees<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Lower deadband </span><span
style="font-size:10.0pt" lang="EN-US">ΔTL</span><span
lang="EN-US"> = 0 degrees<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then I went through the
documented equations (Eq. 4.1-1 to Eq.4.1-4). However in the
simulation results, when I take a look at time steps 4064.25
to 4065 (as an example), I find the following:<o:p></o:p></span></p>
<table class="MsoNormalTable"
style="border-collapse:collapse;border:none" border="1"
cellpadding="0" cellspacing="0">
<tbody>
<tr style="height:8.3pt">
<td style="width:62.6pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="83">
<p class="Default"><span style="font-size:10.0pt"
lang="EN-US">Time step<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">4064.25<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">4064.5<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><b><span style="font-size:9.0pt"
lang="EN-US">4064.75<o:p></o:p></span></b></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">4065<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:8.3pt">
<td style="width:62.6pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="83">
<p class="Default"><span style="font-size:10.0pt"
lang="EN-US">(TH-TL) <o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">-1.373<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">7.008<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><b><span style="font-size:9.0pt"
lang="EN-US">1.618<o:p></o:p></span></b></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt"
lang="EN-US">2.304<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:8.3pt">
<td style="width:62.6pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="83">
<p class="Default"><span style="font-size:10.0pt">γ</span><span
style="font-size:10.0pt" lang="EN-US">i<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">0<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">0<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><b><span style="font-size:9.0pt">0<o:p></o:p></span></b></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">1<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:8.3pt">
<td style="width:62.6pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="83">
<p class="Default"><span style="font-size:10.0pt">γ</span><span
style="font-size:10.0pt" lang="EN-US">o</span><span
style="font-size:10.0pt"><o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">0<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">0<o:p></o:p></span></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><b><span style="font-size:9.0pt">1<o:p></o:p></span></b></p>
</td>
<td style="width:46.95pt;border:none;padding:0cm 5.4pt 0cm
5.4pt;height:8.3pt" valign="top" width="63">
<p class="Default" style="text-align:center"
align="center"><span style="font-size:9.0pt">1<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">From what I see, time
step <b>4064.75</b> does not agree with
<b>Eq. 4.1-3 </b>since (TH-TL) is still below the upper
deadband even though the controller is turned on (it should
remain off until (TH-TL) is greater than or equal to the
upper deadband). Maybe I am misreading the input/output
controller values?<b><o:p></o:p></b></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any help would be
greatly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<br>
Ciaran<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
<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>