<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Antoine,</p>
    <p>  Thanks for sharing your solution. I would be quite grateful if
      you would be willing to share the code. We have run into a fixed a
      lot of these kinds or errors. Many times the iteration will solve
      to within the original (tighter) tolerances if the initial guess
      values are reset but some of those routines leave the last guess
      values behind and so they are used as a starting point for the
      beginning of the next iteration. Unfortunately our solution does
      not work in every case so we implement fixes as we find problems.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 10/09/2019 02:56, LECONTE Antoine
      219492 via TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:F721EA0B18D562448A4231342C0223B3644CA03F@EXDAG0-A0.intra.cea.fr">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <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;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Here is my recent experience that I think
          can be useful for some of you.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><u>Problem</u> : When simulating the
          operation of an Air to Water Heat pump (Type 941 from TESS
          lib), the simulation starts normally and then freezes few
          hours later without letting any message (no warnings, nothing
          in the log or lst file). Whereas the HP operation conditions
          are quite usual and there is no sudden events at the
          problematic simulation time.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><u>Reason</u> : Actually, Type941 calls the
          TRNSYS “Moist Air properties” functions to have the states of
          air at different points of the HP. The air can be close to the
          saturation pressure. When close to those nonlinear conditions,
          the implemented solver in this function (secant method) can
          turn around the solution without reaching the required
          tolerance (being still very close). In this case, the
          calculations can’t go out of this iterative solver. The
          simulation is stuck.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><u>Possible solution</u> : I have modified
          the code of the “Moist Air properties” to gradually raise the
          tolerance when there is too much iteration in this kind of
          solver. So that a solution can be found at each time and
          avoiding such a problem. I can share my modified code if
          needed.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Best regards,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR">------------------------------------------------------------------------------------------</span><span
            style="color:#1F497D" lang="FR"><o:p></o:p></span></p>
        <table class="MsoNormalTable" style="border-collapse:collapse"
          cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>
              <td style="width:90.15pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="127" valign="top">
                <p class="MsoNormal"
                  style="margin-right:-5.4pt;line-height:120%;text-autospace:none">
                  <span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#E60019"><img
                      id="Image_x0020_1"
                      src="cid:part1.C25FF4E4.DA445BB2@tess-inc.com"
                      alt="Description :
                      cid:image001.png@01CF110C.81BE0EF0" class=""
                      width="113" height="151"></span><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#E60019"><o:p></o:p></span></p>
              </td>
              <td style="width:390.95pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="521" valign="top">
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><b><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#1F497D">Antoine
                      LECONTE</span></b><b><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#1F497D"><o:p></o:p></span></b></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><b><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888">Research
                      Engineer<o:p></o:p></span></b></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><i><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888">National
                      Institute of Solar Energy 
                      <o:p></o:p></span></i></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888">CEA/LITEN
                      - Department of Solar Energy</span></b><b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#1F497D"><o:p></o:p></span></b></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><b><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888">Building
                      and Thermal Systems<o:p></o:p></span></b></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"><img
                      id="Image_x0020_2"
                      src="cid:part2.D1BDBCFC.6B9D5F12@tess-inc.com"
                      alt="Description :
                      cid:image002.jpg@01CF110C.81BE0EF0" class=""
                      width="322" height="5"><b><o:p></o:p></b></span></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR">Commissariat à l’énergie atomique et aux
                    énergies alternatives<o:p></o:p></span></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR">Bât. HELIOS, 50 avenue du Lac Léman
                  </span><b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#91C30A"
                      lang="FR">|</span></b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR"> F-73375 Le Bourget-du-Lac<o:p></o:p></span></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR">T. +33 (0)4 79 79 21 38
                  </span><b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#91C30A"
                      lang="FR">|</span></b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR"> F. +33 (0) 4 79 62 13 74
                  </span><b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#91C30A"
                      lang="FR">|</span></b><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#888888"
                    lang="FR"><o:p></o:p></span></p>
                <p class="MsoNormal"
                  style="line-height:120%;text-autospace:none"><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black"><a
                      href="mailto:antoine.leconte@cea.fr"
                      moz-do-not-send="true"><span style="color:blue"
                        lang="FR">antoine.leconte@cea.fr</span></a></span><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black"
                    lang="FR">;
                  </span><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black"><a
                      href="http://www.ines-solaire.org/"
                      moz-do-not-send="true"><span style="color:blue"
                        lang="FR">www.ines-solaire.org</span></a></span><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black"
                    lang="FR">;
                  </span><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black"><a
                      href="liten.cea.fr" moz-do-not-send="true"><span
                        style="color:blue" lang="FR">liten.cea.fr</span></a></span><span
style="font-size:8.0pt;line-height:120%;font-family:"Arial",sans-serif;color:black">
                  </span><span
style="font-size:10.0pt;line-height:120%;font-family:"Arial",sans-serif;color:#E60019"
                    lang="FR"><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR">------------------------------------------------------------------------------------------</span><span
            style="color:#1F497D" lang="FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></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 Systems Specialists, LLC
3 North Pinckney Street - suite 202
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>