Thermal Fluid Two Port - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Thermal Fluid Two Port

Define the base-equations shared by thermal-fluid two-port components

 

Description

Equations

Connections

Variables

Parameters

Constants

Modelica Standard Library

Description

A Thermal-Fluid Two-Port is the base model shared by many of the thermal-fluid components. It has two thermal-fluid ports, a and b.

Equations

The following equations are the base equations for the two-port model. Each component based on this model extends these equations.

Mass Balance

Mass does not accumulate in the component.

mflowa+mflowb=0

Energy Balance

The power flow into the device equals the rate of energy increase of the mass. If the mass is essentially zero, this is set to exactly zero.

Qflow&plus;Hflowa&plus;Hflowb&equals;{mcvT&period;ε<m0otherwise

Enthalpy Flow

The flow of enthalpy into each port depends on the direction of the mass flow through the component.

Hflowa&equals;mflowa{ha0mflowahotherwise

Temperature

The temperature at a port is computed from the specific enthalpy at the port and the specific heat capacity of the medium.

Ta&equals;hacp

Tb&equals;hbcp

Tq&equals;TsignVflow1tapTΔT

ΔT&equals;{TTa0VflowTbTotherwise

Volume Flow

The volume flow is given by the mass-flow into port a  and the density of the medium.

Vflow&equals;mflowaρ

Pressure Drop

The pressure drop from port a to port b is

Δp&equals;papb

Connections

Name

Description

Modelica ID

flowPorta

Thermal-Fluid flow port

flowPort

flowPortb

Thermal-Fluid flow port

flowPort

Variables

Name

Units

Description

Modelica ID

Δp

Pa

Pressure drop from a to b

dp

px

Pa

Pressure at port x

flowPort_x.p

Tx

K

Temperature at port x

T_x

ΔT

K

Temperature increase of fluid, in direction of flow

dT

Tq

K

Temperature used for heat exchange with the ambient

Tq

Qflow

W

Heat exchange with ambient

Q_flow

Vflow

m3s

Volume flow from from port a to port b

V_flow

h

Jkg

Specific enthalpy of medium

medium.h

hx

Jkg

Specific enthalpy of flow at port x

flowPort_x.h

Hflowx

W

Enthalpy flow rate into port x

flowPort_x.h

ρ

kgm3

Density of medium

medium.rho

cp

JkgK

Specific heat capacity of medium at constant pressure

medium.cp

cv

JkgK

Specific heat capacity of medium at constant volume

medium.cv

The symbol x stands for  a or b, it indicates one of the ports.

Parameters

Name

Default

Units

Description

Modelica ID

medium

 

 

Thermal-Fluid Media

medium

m

1

kg

Mass of medium in component

m

T0

293.15

Pa

Pressure

T0

Constants

Name

Default

Units

Description

Modelica ID

ε

1·10−60

1

A very small number

Modelica.Constants.small

Modelica Standard Library

The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.

See Also

Thermal Fluid Media

Thermal Overview