[TRNSYS-users] Solved issue with "MoistAirProperties"

David BRADLEY d.bradley at tess-inc.com
Mon Oct 14 07:28:07 PDT 2019


Antoine,

   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.

kind regards,

  David


On 10/09/2019 02:56, LECONTE Antoine 219492 via TRNSYS-users wrote:
>
> Hello,
>
> Here is my recent experience that I think can be useful for some of you.
>
> _Problem_ : 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.
>
> _Reason_ : 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.
>
> _Possible solution_ : 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.
>
> Best regards,
>
> ------------------------------------------------------------------------------------------
>
> Description : cid:image001.png at 01CF110C.81BE0EF0
>
> 	
>
> *Antoine LECONTE***
>
> *Research Engineer*
>
> /National Institute of Solar Energy /
>
> *CEA/LITEN - Department of Solar Energy***
>
> *Building and Thermal Systems*
>
> Description : cid:image002.jpg at 01CF110C.81BE0EF0**
>
> Commissariat à l’énergie atomique et aux énergies alternatives
>
> Bât. HELIOS, 50 avenue du Lac Léman *|*F-73375 Le Bourget-du-Lac
>
> T. +33 (0)4 79 79 21 38 *|*F. +33 (0) 4 79 62 13 74 *|*
>
> antoine.leconte at cea.fr <mailto:antoine.leconte at cea.fr>; 
> www.ines-solaire.org <http://www.ines-solaire.org/>; liten.cea.fr
>
> ------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
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
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20191014/61891761/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10820 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20191014/61891761/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1321 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20191014/61891761/attachment-0001.jpg>


More information about the TRNSYS-users mailing list