.Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow

Information

Function that computes the pressure drop of flow elements as

Δp = sign(ṁ) (ṁ ⁄ k)2

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_m_flow
  input Modelica.Units.SI.MassFlowRate m_flow "Mass flow rate in design flow direction";
  input Real k(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.PressureDifference dp(displayUnit = "Pa") "Pressure difference between port_a and port_b (= port_a.p - port_b.p)";
end basicFlowFunction_m_flow;

Revisions


Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos