Partial models
Package containing partial models from which all components (except Sources.AbsolutePressure) extend instantiating the medium and containing the thermodynamic equation(s) with semiLinear.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Name | Description |
---|---|
SimpleFriction | Simple friction model |
TwoPort | Partial model of two port |
SinglePortLeft | Partial model of a single port at the left |
Ambient | Partial model of ambient |
SinglePortBottom | Partial model of a single port at the bottom |
AbsoluteSensor | Partial model of absolute sensor |
RelativeSensor | Partial model of relative sensor |
FlowSensor | Partial model of flow sensor |
Simple friction model
Definition of relationship between pressure drop and volume flow rate:
Linear and quadratic dependency are coupled smoothly at V_flowLaminar / dpLaminar. Quadratic dependency is defined by nominal volume flow and pressure drop (V_flowNominal / dpNominal). See also sketch at diagram layer.
Name | Description |
---|---|
Simple Friction | |
V_flowLaminar | Laminar volume flow [m3/s] |
dpLaminar | Laminar pressure drop [Pa] |
V_flowNominal | Nominal volume flow [m3/s] |
dpNominal | Nominal pressure drop [Pa] |
frictionLoss | Part of friction losses fed to medium |
Partial model of two port
Partial model with two flowPorts.
Possible heat exchange with the ambient is defined by Q_flow; setting this = 0 means no energy exchange.
Setting parameter m (mass of medium within pipe) to zero leads to neglect of temperature transient cv*m*der(T).
Mixing rule is applied.
Parameter 0 < tapT < 1 defines temperature of heatPort between medium's inlet and outlet temperature.
Name | Description |
---|---|
medium | Medium in the component |
m | Mass of medium [kg] |
T0 | Initial temperature of medium [K] |
T0fixed | Initial temperature guess value or fixed |
tapT | Defines temperature of heatPort between inlet and outlet temperature |
Name | Description |
---|---|
flowPort_a | |
flowPort_b |
Partial model of a single port at the left
Partial model of single port at the left, defining the medium and the temperature at the port.
Name | Description |
---|---|
medium | Medium |
T0 | Initial temperature of medium [K] |
T0fixed | Initial temperature guess value or fixed |
Name | Description |
---|---|
flowPort |
Partial model of ambient
This model simply extends from the SinglePortLeft model, only adding an icon, and is kept for compatibility reasons. In the future, it will be removed.
Extends from Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.SinglePortLeft (Partial model of a single port at the left), Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Name | Description |
---|---|
medium | Medium |
T0 | Initial temperature of medium [K] |
T0fixed | Initial temperature guess value or fixed |
Name | Description |
---|---|
flowPort |
Partial model of a single port at the bottom
Partial model of single port at the bottom, defining the medium and the temperature at the port.
Name | Description |
---|---|
medium | Medium |
T0 | Initial temperature of medium [K] |
T0fixed | Initial temperature guess value or fixed |
Name | Description |
---|---|
flowPort |
Partial model of absolute sensor
Partial model for an absolute sensor (pressure/temperature).
Pressure, mass flow, temperature and enthalpy flow of medium are not affected.
Extends from Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
medium | Sensor's medium |
Name | Description |
---|---|
flowPort | |
y |
Partial model of relative sensor
Partial model for a relative sensor (pressure drop/temperature difference).
Pressure, mass flow, temperature and enthalpy flow of medium are not affected.
Extends from Modelica.Icons.RotationalSensor (Icon representing a round measurement device).
Name | Description |
---|---|
medium | Sensor's medium |
Name | Description |
---|---|
flowPort_a | |
flowPort_b | |
y |
Partial model of flow sensor
Partial model for a flow sensor (mass flow/heat flow).
Pressure, mass flow, temperature and enthalpy flow of medium are not affected, but mixing rule is applied.
Extends from Modelica.Icons.RotationalSensor (Icon representing a round measurement device), Modelica.Thermal.FluidHeatFlow.Interfaces.Partials.TwoPort (Partial model of two port).
Name | Description |
---|---|
medium | Medium in the component |
m | Mass of medium [kg] |
T0 | Initial temperature of medium [K] |
T0fixed | Initial temperature guess value or fixed |
tapT | Defines temperature of heatPort between inlet and outlet temperature |
Initialization | |
V_flow | Volume flow a->b [m3/s] |
Name | Description |
---|---|
flowPort_a | |
flowPort_b | |
y |