.BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp

Information

Function that computes the pressure drop of flow elements as

ṁ = sign(Δp) k √ Δp  

with regularization near the origin. Therefore, the flow coefficient is

k = ṁ ⁄ √ Δp  

The input m_flow_turbulent determines the location of the regularization.

Interface

function basicFlowFunction_dp
  input Modelica.Units.SI.PressureDifference dp(displayUnit = "Pa") "Pressure difference between port_a and port_b (= port_a.p - port_b.p)";
  input Real k(min = 0, unit = "") "Flow coefficient, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2)";
  input Modelica.Units.SI.MassFlowRate m_flow_turbulent(min = 0) "Mass flow rate where transition to turbulent flow occurs";
  output Modelica.Units.SI.MassFlowRate m_flow "Mass flow rate in design flow direction";
end basicFlowFunction_dp;

Revisions


Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos