Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice

Pressure loss functions for thick edged orifices

Information


This package contains utility functions and records for the ThickEdgedOrifice fitting component.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.massFlowRate massFlowRate Return mass flow rate m_flow as function of pressure loss dp for a thick edged orifice
Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.pressureLoss pressureLoss Return pressure loss dp as function of mass flow rate m_flow for a thick edged orifice
Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.Geometry Geometry Geometric data for a thick edged orifice
Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.Choices Choices Choices for Geometry


Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.massFlowRate

Return mass flow rate m_flow as function of pressure loss dp for a thick edged orifice

Information


This function returns the mass flow rate m_flow as function of pressure loss dp for a thick edged orifice. The details of the function are described here.

The orifice characteristic is valid for constant density and constant dynamic viscosity. It can be approximately also used for compressible media. This is performed by providing the upstream density and upstream dynamic viscosity. In order to be able to regularize density and dynamic viscosity around zero mass flow rate, the two quantities have to be given if fluid flows from port_a to port_b (d_a, eta_a) and if fluid flows from port_b to port_a (d_b, eta_b).

Inputs

TypeNameDefaultDescription
Pressuredp Pressure loss [Pa]
Geometrygeometry Geometry of bend
Densityd_a Density at port_a when fluid is flowing from port_a to port_b [kg/m3]
Densityd_b Density at port_b when fluid is flowing from port_b to port_a [kg/m3]
DynamicViscosityeta_a Dynamic viscosity at port_a when fluid is flowing from port_a to port_b [Pa.s]
DynamicViscosityeta_b Dynamic viscosity at port_b when fluid is flowing from port_b to port_a [Pa.s]
AbsolutePressuredp_small Small pressure drop used for regularization if m_flow=f(...,dp_small,..,dp) [Pa]
MassFlowRatem_flow_small Small mass flow rate used for regularization if dp=f_inv(...,m_flow_small,m_flow) [kg/s]

Outputs

TypeNameDescription
MassFlowRatem_flowMass flow rate (= port_a.m_flow) [kg/s]

Modelica definition

function massFlowRate 
  "Return mass flow rate m_flow as function of pressure loss dp for a thick edged orifice"
    import SI = Modelica.SIunits;
  input SI.Pressure dp "Pressure loss";
  input Geometry geometry "Geometry of bend";
  input SI.Density d_a 
    "Density at port_a when fluid is flowing from port_a to port_b";
  input SI.Density d_b 
    "Density at port_b when fluid is flowing from port_b to port_a";
  input SI.DynamicViscosity eta_a 
    "Dynamic viscosity at port_a when fluid is flowing from port_a to port_b";
  input SI.DynamicViscosity eta_b 
    "Dynamic viscosity at port_b when fluid is flowing from port_b to port_a";
  input SI.AbsolutePressure dp_small 
    "Small pressure drop used for regularization if m_flow=f(...,dp_small,..,dp)";
  input SI.MassFlowRate m_flow_small 
    "Small mass flow rate used for regularization if dp=f_inv(...,m_flow_small,m_flow)";
  output SI.MassFlowRate m_flow "Mass flow rate (= port_a.m_flow)";
algorithm 
   m_flow := Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_MFLOW(
               Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_IN_con(
                   A_0=geometry.venaCrossArea,
                   A_1=geometry.crossArea,
                   C_0=geometry.venaPerimeter,
                   C_1=geometry.perimeter,
                   L=geometry.venaLength,
                   dp_smooth=dp_small),
               Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_IN_var(
                   rho=Modelica.Fluid.Utilities.regStep(dp, d_a, d_b, dp_small),
                   eta=Modelica.Fluid.Utilities.regStep(dp, eta_a, eta_b, dp_small)),
               dp);
end massFlowRate;

Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.pressureLoss

Return pressure loss dp as function of mass flow rate m_flow for a thick edged orifice

Information


This function returns the pressure loss dp as function of mass flow rate m_flow for a thick edged orifice. The details of the function are described here.

The orifice characteristic is valid for constant density and constant dynamic viscosity. It can be approximately also used for compressible media. This is performed by providing the upstream density and upstream dynamic viscosity. In order to be able to regularize density and dynamic viscosity around zero mass flow rate, the two quantities have to be given if fluid flows from port_a to port_b (d_a, eta_a) and if fluid flows from port_b to port_a (d_b, eta_b).

Inputs

TypeNameDefaultDescription
MassFlowRatem_flow Mass flow rate (= port_a.m_flow) [kg/s]
Geometrygeometry Geometry of bend
Densityd_a Density at port_a when fluid is flowing from port_a to port_b [kg/m3]
Densityd_b Density at port_b when fluid is flowing from port_b to port_a [kg/m3]
DynamicViscosityeta_a Dynamic viscosity at port_a when fluid is flowing from port_a to port_b [Pa.s]
DynamicViscosityeta_b Dynamic viscosity at port_b when fluid is flowing from port_b to port_a [Pa.s]
AbsolutePressuredp_small Small pressure drop used for regularization if m_flow=f(...,dp_small,..,dp) [Pa]
MassFlowRatem_flow_small Small mass flow rate used for regularization if dp=f_inv(...,m_flow_small,m_flow) [kg/s]

Outputs

TypeNameDescription
PressuredpPressure loss [Pa]

Modelica definition

function pressureLoss 
  "Return pressure loss dp as function of mass flow rate m_flow for a thick edged orifice"

    import SI = Modelica.SIunits;
  input SI.MassFlowRate m_flow "Mass flow rate (= port_a.m_flow)";
  input Geometry geometry "Geometry of bend";
  input SI.Density d_a 
    "Density at port_a when fluid is flowing from port_a to port_b";
  input SI.Density d_b 
    "Density at port_b when fluid is flowing from port_b to port_a";
  input SI.DynamicViscosity eta_a 
    "Dynamic viscosity at port_a when fluid is flowing from port_a to port_b";
  input SI.DynamicViscosity eta_b 
    "Dynamic viscosity at port_b when fluid is flowing from port_b to port_a";
  input SI.AbsolutePressure dp_small 
    "Small pressure drop used for regularization if m_flow=f(...,dp_small,..,dp)";
  input SI.MassFlowRate m_flow_small 
    "Small mass flow rate used for regularization if dp=f_inv(...,m_flow_small,m_flow)";
  output SI.Pressure dp "Pressure loss";
algorithm 
   dp := Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_DP(
           Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_IN_con(
                   A_0=geometry.venaCrossArea,
                   A_1=geometry.crossArea,
                   C_0=geometry.venaPerimeter,
                   C_1=geometry.perimeter,
                   L=geometry.venaLength,
                   dp_smooth=dp_small),
               Modelica.Fluid.Dissipation.PressureLoss.Orifice.dp_thickEdgedOverall_IN_var(
                   rho=Modelica.Fluid.Utilities.regStep(m_flow, d_a, d_b, m_flow_small),
                   eta=Modelica.Fluid.Utilities.regStep(m_flow, eta_a, eta_b, m_flow_small)),
               m_flow);

end pressureLoss;

Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.Geometry Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.Geometry

Geometric data for a thick edged orifice

Information


This record is used to define the geometric (constant) data of a thick edged orifice. The details of the record are described here.

Extends from Modelica.Icons.Record (Icon for records).

Parameters

TypeNameDefaultDescription
AreacrossArea Inner cross sectional area [m2]
Lengthperimeter Inner perimeter [m]
AreavenaCrossArea Cross sectional area of vena contraction [m2]
LengthvenaPerimeter Perimeter of vena contraction [m]
LengthvenaLength Length of vena contraction [m]

Modelica definition

record Geometry "Geometric data for a thick edged orifice"
  import SI = Modelica.SIunits;
  extends Modelica.Icons.Record;

  SI.Area crossArea "Inner cross sectional area";
  SI.Length perimeter "Inner perimeter";

  SI.Area venaCrossArea "Cross sectional area of vena contraction";
  SI.Length venaPerimeter "Perimeter of vena contraction";
  SI.Length venaLength "Length of vena contraction";

end Geometry;

Automatically generated Fri Nov 12 16:31:18 2010.