.Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_suddenChange_DP

Information

Calculation of the local pressure loss at a sudden change of the cross sectional areas (sudden expansion or sudden contraction) with sharp corners at turbulent flow regime for incompressible and single-phase fluid flow through arbitrary shaped cross sectional area (square, circular, etc.) considering a smooth surface. The flow direction determines the type of the transition. In case of the design flow a sudden expansion will be considered. At flow reversal a sudden contraction will be considered.

Generally this function is numerically best used for the incompressible case, where the mass flow rate (m_flow) is known (as state variable) in the used model and the corresponding pressure loss (DP) has to be calculated. On the other hand the function dp_suddenChange_MFLOW is numerically best used for the compressible case if the pressure loss (dp) is known (out of pressures as state variable) and the mass flow rate (M_FLOW) has to be calculated. See more information.

Interface

function dp_suddenChange_DP
  extends Modelica.Icons.Function;
  import FD = Modelica.Fluid.Dissipation.PressureLoss.Orifice;
  import SMOOTH = Modelica.Fluid.Dissipation.Utilities.Functions.General.Stepsmoother;
  input Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_suddenChange_IN_con IN_con "Input record for function dp_suddenChange_DP" annotation(
    Dialog(group = "Constant inputs"));
  input Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_suddenChange_IN_var IN_var "Input record for function dp_suddenChange_DP" annotation(
    Dialog(group = "Variable inputs"));
  input SI.MassFlowRate m_flow "Mass flow rate" annotation(
    Dialog(group = "Input"));
  output SI.Pressure DP "Output for function dp_suddenChange_DP";
end dp_suddenChange_DP;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos