You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Modelica.Media.Incompressible.TableBased.BaseProperties we have: h = if enthalpyOfT then h_T(T) else h_pT(p,T,densityOfT);
assumedly that implies that if enthalphyOfT is true we should ignore the pressure-part of the enthalphy.
If we now look at T_ph we find:
function T_ph "Compute temperature from pressure and specific enthalpy"
...
protected
function f_nonlinear "Solve h_T(T) or h_pT(p,T) for T with given h"
...
algorithm
y := (if singleState then h_T(T=u) else h_pT(p=p, T=u)) - h;
end f_nonlinear;
..
annotation(Inline=false, LateInline=true, inverse(h=h_pT(p,T)));
end T_ph;
Which has the following issues:
When computing T_ph we ignore the pressure-dependency on enthalphy when a different constant, singleState, whereas BaseProperties ignores it when enthalphOfT is true. (In BaseProperties singleState is used to ignore pressure influence on u.)
The inverse always include the pressure-dependency, regardless of this.
Note that h_pT doesn't just magically ignore the pressure-dependency.
In Modelica.Media.Incompressible.TableBased.BaseProperties we have:
h = if enthalpyOfT then h_T(T) else h_pT(p,T,densityOfT);
assumedly that implies that if enthalphyOfT is true we should ignore the pressure-part of the enthalphy.
If we now look at T_ph we find:
Which has the following issues:
Note that h_pT doesn't just magically ignore the pressure-dependency.
The text was updated successfully, but these errors were encountered: