Modelica.Thermal.FluidHeatFlow.Components

Basic components (pipes, valves)

Information

This package contains components.

Pressure drop is taken from partial model SimpleFriction. Thermodynamic equations are defined in partial models (package Partials).

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

Package Content

Name Description
Modelica.Thermal.FluidHeatFlow.Components.Pipe Pipe Pipe with optional heat exchange
Modelica.Thermal.FluidHeatFlow.Components.IsolatedPipe IsolatedPipe Pipe without heat exchange
Modelica.Thermal.FluidHeatFlow.Components.HeatedPipe HeatedPipe Pipe with heat exchange
Modelica.Thermal.FluidHeatFlow.Components.Valve Valve Simple valve
Modelica.Thermal.FluidHeatFlow.Components.OpenTank OpenTank Model of a tank under ambient pressure
Modelica.Thermal.FluidHeatFlow.Components.Cylinder Cylinder Simple model of a piston in a cylinder
Modelica.Thermal.FluidHeatFlow.Components.OneWayValve OneWayValve Simple one-way valve

Modelica.Thermal.FluidHeatFlow.Components.Pipe Modelica.Thermal.FluidHeatFlow.Components.Pipe

Pipe with optional heat exchange

Information

Pipe with optional heat exchange.

Thermodynamic equations are defined by Partials.TwoPort. Q_flow is defined by heatPort.Q_flow (useHeatPort=true) or zero (useHeatPort=false).

Note: Setting parameter m (mass of medium within pipe) to zero leads to neglect of temperature transient cv*m*der(T).

Note: Injecting heat into a pipe with zero mass flow causes temperature rise defined by storing heat in medium's mass.

Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.TwoPort (Partial model of two port), Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.SimpleFriction (Simple friction model).

Parameters

NameDescription
mediumMedium in the component
mMass of medium [kg]
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
tapTDefines temperature of heatPort between inlet and outlet temperature
useHeatPort=true, if HeatPort is enabled
h_gGeodetic height (height difference from flowPort_a to flowPort_b) [m]
gGravitation [m/s2]
Initialization
V_flowVolume flow a->b [m3/s]
Simple Friction
V_flowLaminarLaminar volume flow [m3/s]
dpLaminarLaminar pressure drop [Pa]
V_flowNominalNominal volume flow [m3/s]
dpNominalNominal pressure drop [Pa]
frictionLossPart of friction losses fed to medium

Connectors

NameDescription
flowPort_a 
flowPort_b 
heatPort 

Modelica.Thermal.FluidHeatFlow.Components.IsolatedPipe Modelica.Thermal.FluidHeatFlow.Components.IsolatedPipe

Pipe without heat exchange

Information

This model simply extends from the Pipe model with parameter useHeatPort = false and is kept for compatibility reasons. In the future, it will be removed.

Extends from Modelica.Thermal.FluidHeatFlow.Components.Pipe (Pipe with optional heat exchange), Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Parameters

NameDescription
mediumMedium in the component
mMass of medium [kg]
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
tapTDefines temperature of heatPort between inlet and outlet temperature
useHeatPort=true, if HeatPort is enabled
h_gGeodetic height (height difference from flowPort_a to flowPort_b) [m]
gGravitation [m/s2]
Initialization
V_flowVolume flow a->b [m3/s]
Simple Friction
V_flowLaminarLaminar volume flow [m3/s]
dpLaminarLaminar pressure drop [Pa]
V_flowNominalNominal volume flow [m3/s]
dpNominalNominal pressure drop [Pa]
frictionLossPart of friction losses fed to medium

Connectors

NameDescription
flowPort_a 
flowPort_b 
heatPort 

Modelica.Thermal.FluidHeatFlow.Components.HeatedPipe Modelica.Thermal.FluidHeatFlow.Components.HeatedPipe

Pipe with heat exchange

Information

This model simply extends from the Pipe model with parameter useHeatPort = true and is kept for compatibility reasons. In the future, it will be removed.

Extends from Modelica.Thermal.FluidHeatFlow.Components.Pipe (Pipe with optional heat exchange), Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Parameters

NameDescription
mediumMedium in the component
mMass of medium [kg]
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
tapTDefines temperature of heatPort between inlet and outlet temperature
useHeatPort=true, if HeatPort is enabled
h_gGeodetic height (height difference from flowPort_a to flowPort_b) [m]
gGravitation [m/s2]
Initialization
V_flowVolume flow a->b [m3/s]
Simple Friction
V_flowLaminarLaminar volume flow [m3/s]
dpLaminarLaminar pressure drop [Pa]
V_flowNominalNominal volume flow [m3/s]
dpNominalNominal pressure drop [Pa]
frictionLossPart of friction losses fed to medium

Connectors

NameDescription
flowPort_a 
flowPort_b 
heatPort 

Modelica.Thermal.FluidHeatFlow.Components.Valve Modelica.Thermal.FluidHeatFlow.Components.Valve

Simple valve

Information

Simple controlled valve.

Standard characteristic Kv=f (y) is given at standard conditions (dp0, rho0),

where:

Flow resistance under real conditions is calculated by

V_flow**2 * rho / dp = Kv(y)**2 * rho0 / dp0

Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.TwoPort (Partial model of two port).

Parameters

NameDescription
mediumMedium in the component
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
tapTDefines temperature of heatPort between inlet and outlet temperature
frictionLossPart of friction losses fed to medium
Initialization
V_flowVolume flow a->b [m3/s]
Standard characteristic
LinearCharacteristicType of characteristic
y1Max. valve opening
Kv1Max. flow @ y = y1 [m3/s]
kv0Leakage flow / max.flow @ y = 0
dp0Standard pressure drop [Pa]
rho0Standard medium's density [kg/m3]

Connectors

NameDescription
flowPort_a 
flowPort_b 
y 

Modelica.Thermal.FluidHeatFlow.Components.OpenTank Modelica.Thermal.FluidHeatFlow.Components.OpenTank

Model of a tank under ambient pressure

Information

This is a simple model of an open tank with volume A*h. The level and the temperature of the medium are measured and provided as output.

Note: If the level of the medium reaches 0 (minimum) or h (maximum), an assertion is triggered.

Note: The flowPort is assumed to be at the bottom. Therefore the pressure at the flowPort is ambient pressure + level*rho*g.

It is assumed that the medium in the tank has the same temperature over the whole volume, i.e. mixed thoroughly.

Via the optional heatPort the medium in the tank can be cooled or heated.

Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.SinglePortBottom (Partial model of a single port at the bottom).

Parameters

NameDescription
mediumMedium
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
ATankCross section of tank [m2]
hTankHeight of tank [m]
pAmbientAmbient pressure [Pa]
gGravitation [m/s2]
useHeatPort=true, if HeatPort is enabled

Connectors

NameDescription
flowPort 
heatPortOptional port for cooling or heating the medium in the tank
levelLevel of medium in tank [m]
TTankTemperature of medium in tank [K]

Modelica.Thermal.FluidHeatFlow.Components.Cylinder Modelica.Thermal.FluidHeatFlow.Components.Cylinder

Simple model of a piston in a cylinder

Information

This is a simple model of a piston in a cylinder:

The translational flange is connected to the piston, the cylinder has a flowPort at the bottom.

The position of the piston within the cylinder goes from 0 at the bottom to L (length of the cylinder) at the top of the cylinder. If the piston leaves the cylinder, an assertion is triggered.

The piston is considered without mass.

Note: Take care of the initial conditions. The position of the piston (relative to the support) should be in the range (0, L). The position of the flange (as well as of the support, if useSupport=true) is influenced by connected components.

Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.SinglePortLeft (Partial model of a single port at the left), Modelica.Mechanics.Translational.Interfaces.PartialElementaryOneFlangeAndSupport2 (Partial model for a component with one translational 1-dim. shaft flange and a support used for textual modeling, i.e., for elementary models).

Parameters

NameDescription
mediumMedium
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
ACross section of cylinder/piston [m2]
LLength of cylinder [m]
useSupport= true, if support flange enabled, otherwise implicitly grounded

Connectors

NameDescription
flowPort 
flangeFlange of component
supportSupport/housing of component

Modelica.Thermal.FluidHeatFlow.Components.OneWayValve Modelica.Thermal.FluidHeatFlow.Components.OneWayValve

Simple one-way valve

Information

Simple one-way valve, comparable to the electrical ideal diode model.

Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.TwoPort (Partial model of two port).

Parameters

NameDescription
mediumMedium in the component
T0Initial temperature of medium [K]
T0fixedInitial temperature guess value or fixed
tapTDefines temperature of heatPort between inlet and outlet temperature
V_flowNominalNominal volume flow rate (forward) [m3/s]
dpForwardPressure drop at nominal flow (forward) [Pa]
dpNominalNominal pressure (backward) [Pa]
V_flowBackwardLeakage volume flow rate (backward) [m3/s]
frictionLossPart of friction losses fed to medium
Initialization
V_flowVolume flow a->b [m3/s]

Connectors

NameDescription
flowPort_a 
flowPort_b 
Automatically generated Thu Dec 19 17:20:24 2019.