TwoPort

Partial model of two port

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Parameters (5)

medium

Value: FluidHeatFlow.Media.Medium()

Type: Medium

Description: Medium in the component

m

Value:

Type: Mass (kg)

Description: Mass of medium

T0

Value:

Type: Temperature (K)

Description: Initial temperature of medium

T0fixed

Value: false

Type: Boolean

Description: Initial temperature guess value or fixed

tapT

Value: 1

Type: Real

Description: Defines temperature of heatPort between inlet and outlet temperature

Outputs (4)

T

Type: Temperature (K)

Description: Outlet temperature of medium

T_a

Type: Temperature (K)

Description: Temperature at flowPort_a

T_b

Type: Temperature (K)

Description: Temperature at flowPort_b

dT

Type: TemperatureDifference (K)

Description: Temperature increase of coolant in flow direction

Connectors (2)

flowPort_a

Type: FlowPort_a

flowPort_b

Type: FlowPort_b

Components (1)

medium

Type: Medium

Description: Medium in the component

Extended by (7)

FlowSensor

Modelica.Thermal.FluidHeatFlow.Interfaces

Partial model of flow sensor

IdealPump

Modelica.Thermal.FluidHeatFlow.Sources

Model of an ideal pump

PressureIncrease

Modelica.Thermal.FluidHeatFlow.Sources

Enforces constant pressure increase

VolumeFlow

Modelica.Thermal.FluidHeatFlow.Sources

Enforces constant volume flow

OneWayValve

Modelica.Thermal.FluidHeatFlow.Components

Simple one-way valve

Valve

Modelica.Thermal.FluidHeatFlow.Components

Simple valve

Pipe

Modelica.Thermal.FluidHeatFlow.Components

Pipe with optional heat exchange