Closed mwetter closed 9 years ago
Using the assert instead of if-then with print leads surprisingly to one more nonlinear equation. A service request has been filed with dassault (SR00238752).
Therefore, this issue is on hold until it is known how to avoid additonal nonlinear equations.
Using annotation(Evaluate=true)
on the parameter use_dh
is required to allow the code translator to do the symbolic manipulation needed to avoid a non-linear equation. Without this, a user may change the value of this parameter, and then the argument m_flow_turbulent
to the pressure drop functions may change. This would then avoid a symbolic processor to eliminate the nonlinear equation.
Issue129 resistance has been merged.
This model needs two revision: First, it uses
Fluid/BaseClasses/PartialResistance.mo
assignsm_flow(start=0)
which is already assigned in its base class. This can be removed.Second,
FixedResistances/FixedResistanceDpM.mo
usesThis should use
assert(..., ..., AssertionLevel.warning);