.IBPSA.Airflow.Multizone.BaseClasses.powerLaw

Information

This model describes the mass flow rate and pressure difference relation of an orifice in the form

V = k sign(Δp) |Δp|m

where V is the volume flow rate, k > 0 is a flow coefficient Δ p is the pressure drop and m ∈ [0.5, 1] is a flow coefficient. The equation is regularized for |Δp| < Δpt, where Δpt is a parameter. For turbulent flow, set m=1 ⁄ 2 and for laminar flow, set m=1.

The model is used for the interzonal air flow models.

Implementation

For |Δp| < Δpt, the equation is regularized so that it is twice continuously differentiable in Δp, and that it has an infinite number of continuous derivatives in m and in k.

If m is not a function of time, then a, b, c and d can be pre-computed. In this situation, use Buildings.Airflow.Multizone.BaseClasses.powerLawFixedM, which allows to compute these values outside of this function, for example as parameters of a model.

Interface

function powerLaw
  input Real k "Flow coefficient, k = V_flow/ dp^m";
  input Modelica.SIunits.PressureDifference dp(displayUnit = "Pa") "Pressure difference";
  input Real m(min = 0.5, max = 1) "Flow exponent, m=0.5 for turbulent, m=1 for laminar";
  input Modelica.SIunits.PressureDifference dp_turbulent(min = 0, displayUnit = "Pa") = 0.001 "Pressure difference where regularization starts";
  output Modelica.SIunits.VolumeFlowRate V_flow "Volume flow rate";
end powerLaw;

Revisions


Generated at 2024-04-19T18:16:02Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos