This function computes the number of transfer units for a given heat exchanger effectiveness, capacity flow ratio and heat exchanger flow regime. The different options for the flow regime are declared in Buildings.Fluid.Types.HeatExchangerFlowRegime.
Note that for the flow regime CrossFlowUnmixed
, computing the
function requires the numerical solution of an equation in one variable.
This is handled internally and not exposed to the global solver.
function ntu_epsilonZ import f = Buildings.Fluid.Types.HeatExchangerFlowRegime; input Real eps(min = 0, max = 0.999) "Heat exchanger effectiveness"; input Real Z(min = 0, max = 1) "Ratio of capacity flow rate (CMin/CMax)"; input Integer flowRegime "Heat exchanger flow regime"; output Real NTU "Number of transfer units"; end ntu_epsilonZ;
Media.Common.OneNonLinearEquation
to use
Modelica.Math.Nonlinear.solveOneNonlinearEquation
because Media.Common.OneNonLinearEquation
will be obsolete in MSL 4.0.0.flowRegime
from
Buildings.Fluid.Types.HeatExchangerFlowRegime
to Integer
.
This was done to have the same argument list as
Buildings.Fluid.HeatExchangers.BaseClasses.epsilon_ntuZ,
in which the type had to be changed.
Internal.solve
to avoid a warning during model check in Dymola 2015.
Modelica.Media.Common.OneNonLinearEquation
instead of
Buildings.Utilities.Math.BaseClasses.OneNonLinearEquation
.