<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Damian,<div><br></div><div>Initial values are just used as a placeholder in case the component model that is providing the inputs to your type has not yet been called (first iteration condition).  Most times that initial value won’t even be seen by the model.  If the input is unconnected, however, the input will get that initial value for the duration of the simulation.  Bottom line - don’t do anything special with the initial values in your new type.  </div><div><br></div><div>Jeff <br><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Jun 29, 2023, at 6:11 PM, Damian Birchler via TRNSYS-users <trnsys-users@lists.onebuilding.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style>@font-face { font-family: "Cambria Math"; }
@font-face { font-family: Calibri; }
p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; }
span.E-MailFormatvorlage17 { font-family: Calibri, sans-serif; color: windowtext; }
.MsoChpDefault { font-family: Calibri, sans-serif; }
@page WordSection1 { size: 8.5in 11in; margin: 70.85pt 70.85pt 56.7pt; }
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 everyone<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">As a type developer, how should I deal with initial values to the INPUTS of my type. What’s the convention here, in what sense are these values “initial”?<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">Say my type is used like so:<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">UNIT 1 TYPE 1234<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">INPUTS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">MfrIn Tin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0 TInInit<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How do I get to know the value of `TInInit` from Fortran, when should I query that value and what should I do with it?<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">Thanks for your help.<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">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Damian<o:p></o:p></span></p>
</div>


<span>_______________________________________________</span><br><span>TRNSYS-users mailing list</span><br><span>TRNSYS-users@lists.onebuilding.org</span><br><span>http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</span><br></div></blockquote></div></body></html>