modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
479 stars 169 forks source link

Unnecessary nonlinear equation systems with Fluid.Sources #440

Closed modelica-trac-importer closed 7 years ago

modelica-trac-importer commented 7 years ago

Reported by otter on 17 Oct 2010 08:05 UTC In several examples obviously unnecessary nonlinear equation systems occur with the Modelica.Fluid.Sources FixedBoundary, Boundary_pT, Boundary_ph. This is the case, if e.g., "p,T,X" is given, but the states of the medium are "p,h,X". This is especially critical for two-phase media because here mixed systems of non-linear algebraic equations occur.

This should be fixed by useing appropriate "setState_xxx" calls to compute the medium states from the given boundary conditions. By this, specialized nonlinear solvers inside the setState_xxx functions are used to compute the state and not he generic nonlinear solver of the tool.


Migrated-From: https://trac.modelica.org/Modelica/ticket/440

modelica-trac-importer commented 7 years ago

Comment by otter on 17 Oct 2010 08:06 UTC Fixed in 08986cb864fc0dd0f09a30e9e2ea26dec2a0d122