modelPartialTwoPortTransport

Partial element transporting fluid between two ports without storage of mass or energy

Extends from TRANSFORM.Fluid.Valves.BaseClasses.PartialTwoPort (Partial component with two ports).

Information

This component transports fluid between its two ports, without storing mass or energy. Energy may be exchanged with the environment though, e.g., in the form of work. PartialTwoPortTransport is intended as base class for devices like orifices, valves and simple fluid machines.

Three equations need to be added by an extending class using this component:

  • the momentum balance specifying the relationship between the pressure drop dp and the mass flow rate m_flow,
  • port_b.h_outflow for flow in design direction, and
  • port_a.h_outflow for flow in reverse direction.

Moreover appropriate values shall be assigned to the following parameters:

  • dp_start for a guess of the pressure drop
  • m_flow_small for regularization of zero flow.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Visualization
BooleanshowDesignFlowDirection (from PartialTwoPort)true= false to hide the flow direction arrow
BooleanshowName (from PartialTwoPort)true= false to hide component name
Advanced
Medium.AbsolutePressuredp_start1e-5Guess value of dp = port_a.p - port_b.p
Medium.MassFlowRatem_flow_start0Guess value of m_flow = port_a.m_flow
Medium.MassFlowRatem_flow_small1e-2Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_Ttrue= true, if temperatures at port_a and port_b are computed
Booleanshow_V_flowtrue= true, if volume flow rate at inflowing port is computed

Connectors

TypeNameDefaultDescription
TRANSFORM.Fluid.Interfaces.FluidPort_Flowport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
TRANSFORM.Fluid.Interfaces.FluidPort_Flowport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)

Components

TypeNameDefaultDescription
Medium.MassFlowRatem_flowMass flow rate in design flow direction
Modelica.SIunits.PressuredpPressure difference between port_a and port_b (= port_a.p - port_b.p)
Modelica.SIunits.VolumeFlowRateV_flowm_flow/Modelica.Fluid.Utilities.regStep(m_flow, Medium.density(state_a), Medium.density(state_b), m_flow_small)Volume flow rate at inflowing port (positive when flow from port_a to port_b)
Medium.Temperatureport_a_TModelica.Fluid.Utilities.regStep(port_a.m_flow, Medium.temperature(state_a), Medium.temperature(Medium.setState_phX(port_a.p, port_a.h_outflow, port_a.Xi_outflow)), m_flow_small)Temperature close to port_a, if show_T = true
Medium.Temperatureport_b_TModelica.Fluid.Utilities.regStep(port_b.m_flow, Medium.temperature(state_b), Medium.temperature(Medium.setState_phX(port_b.p, port_b.h_outflow, port_b.Xi_outflow)), m_flow_small)Temperature close to port_b, if show_T = true