Function that internally solves a scalar equation.
Extends from Modelica.Media.Common.OneNonLinearEquation (Determine solution of a non-linear algebraic equation in one unknown without derivatives in a reliable and efficient way).Name | Description |
---|---|
f_nonlinear | |
Inherited | |
f_nonlinear_Data | Data specific for function f_nonlinear |
solve | Solve f_nonlinear(x_zero)=y_zero; f_nonlinear(x_min) - y_zero and f_nonlinear(x_max)-y_zero must have different sign |
Type | Name | Default | Description |
---|---|---|---|
Real | x | Independent variable of function | |
Real | p | 0.0 | disregaded variables (here always used for pressure) |
Real | X[:] | fill(0, 0) | disregaded variables (her always used for composition) |
f_nonlinear_Data | f_nonlinear_data | Additional data for the function |
Type | Name | Description |
---|---|---|
Real | y | = f_nonlinear(x) |
redeclare function extends f_nonlinear algorithm assert(x>0, "NTU needs to be strictly positive. Received NTU = " + String(x) + " Z = " + String(p)); y := epsilon_ntuZ(NTU=x, Z=p, flowRegime=Buildings.Fluid.Types.HeatExchangerFlowRegime.CrossFlowUnmixed); end f_nonlinear;