Function to calculate
InternalCoefficients record based on
coefficients record.
It is used in CentrifugalPump.
function internalCoefficientsFromCoefficients
extends Modelica.Icons.Function;
input ThermofluidStream.Processes.Internal.CentrifugalPump.Coefficients.GenericPump data "Input pump coefficients";
output ThermofluidStream.Processes.Internal.CentrifugalPump.Auxiliaries.InternalCoefficients coefficients(rho_ref = data.rho_ref, w_ref = data.w_ref, head_ref = data.head_ref_internal, V_flow_ref = data.V_flow_peak, eta_ref = data.eta_peak, c_head = {ch0, ch1, ch2}, c_power = {cp0, cp1, cp2}, P_ref = data.rho_ref*Modelica.Constants.g_n*data.head_ref_internal*data.V_flow_peak/data.eta_peak, tau_ref = data.rho_ref*Modelica.Constants.g_n*data.head_ref_internal*data.V_flow_peak/data.eta_peak/data.w_ref) "Internal pump coefficients";
end internalCoefficientsFromCoefficients;