Water Volume - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Water Volume

Control volume element of Water

  

 

Description

Equations

Variables

Connections

Parameters

See Also

Description

The Water Volume component models a generic control volume for the lumped thermal fluid simulation of Water. In this component, the mass and energy conservation are calculated.

 

Equations

The calculation is changed based on parameter values of Fidelity of properties and Dynamics of mass in the Water Settings component.

 

Fidelity of properties = Constant and Dynamics of mass = Static

If Type of Branch is ab+c+d (Branching), Mass conservation is calculated with:

NumOfRoute=x=b,c,d{1.0port__x on=true0.0port__x on=false

`port_x.mflow`=1NumOfRoute`port_a.mflow`  if port__x on=true x=b,c,d

`port_a.p`=p

`port_x.p`=p if port__x on=true x=b,c,d

If Type of Branch is a+c+db (Confluence), Mass conservation is calculated with:

NumOfRoute=1.0+x=c,d{1.0port__x on=true0.0port__x on=false

`port_b.mflow`=(`port_a.mflow`+x=c,d{`port_x.mflow`port__x on=true0.0port__x on=false) 

`port_a.p`=p

p=1NumOfRoutex=a,c,d{`port_x.p`port__x on=true0.0port__x on=false

`port_b.p`=p

Energy conservation is calculated with:

c__pMⅆTⅆt=`port_a.mflow`ActualStream`port_a.hflow` +x=b,c,d{`port_x.mflow`ActualStream`port_x.hflow`port__x on=true0.0port__x on=false+{`heat.Q_flow`useHeatPort=true0.0useHeatPort=false

State equation:

p=ρR__gasT

Relationship of mass:

u=UM

M=ρV

Definition of Enthalpy:

hflow=Function__flowT

u=hflowpρ

Port definitions:

`port_a.hflow`=hflow

`port_x.hflow`=hflow if port__x on=true x=b,c,d

`port_a.rho`=ρ

`port_x.rho`=ρ if port__x on=true x=b,c,d

`port_a.T`=T

`port_x.T`=T if port__x on=true x=b,c,d

v1=`port_a.mflow`ActualStream`port_a.rho`A1

vi=`port_x.mflow`ActualStream`port_x.rho`Ai if port__x on=true x=b,c,d,the order of vector is b=2,c=3,d=4

`heat.T`=T

(*) Regarding the value of properties, see more in Water Settings.

Fidelity of properties = Constant and Dynamics of mass = Dynamic

Mass conservation is calculated with:

ⅆρⅆt=`port_a.mflow`+x=b,c,d{`port_x.mflow`port__x on=true0.0port__x on=falseV

`port_a.p`=p

`port_x.p`=p if port__x on=true x=b,c,d

Energy conservation is calculated with:

ⅆUⅆt=`port_a.mflow`ActualStream`port_a.hflow` +x=b,c,d{`port_x.mflow`ActualStream`port_x.hflow`port__x on=true0.0port__x on=false+{`heat.Q_flow`useHeatPort=true0.0useHeatPort=false

State equation:

p=ρR__gasT

Relationship of mass:

u=UM

M=ρV

Definition of Enthalpy:

hflow=Function__hflowT

c__pR__gasⅆTⅆt=ⅆUⅆtρVUρ2V

Port definitions:

`port_a.hflow`=hflow

`port_x.hflow`=hflow if port__x on=true x=b,c,d

`port_a.rho`=ρ

`port_x.rho`=ρ if port__x on=true x=b,c,d

`port_a.T`=T

`port_x.T`=T if port__x on=true x=b,c,d

v1=`port_a.mflow`ActualStream`port_a.rho`A1

vi=`port_x.mflow`ActualStream`port_x.rho`Ai if port__x on=true x=b,c,d,the order of vector is b=2,c=3,d=4

`heat.T`=T

(*) Regarding the value of properties, see more in Water Settings.

 

Fidelity of properties : Liquid water (Lookup table of IAPWS/IF97) and Dynamics of mass = Static

If Type of Branch is ab+c+d (Branching), Mass conservation is calculated with:

NumOfRoute=x=b,c,d{1.0port__x on=true0.0port__x on=false

`port_x.mflow`=1NumOfRoute`port_a.mflow`  if port__x on=true x=b,c,d

`port_a.p`=p

`port_x.p`=p if port__x on=true x=b,c,d

If Type of Branch is a+c+db (Confluence), Mass conservation is calculated with:

NumOfRoute=1.0+x=c,d{1.0port__x on=true0.0port__x on=false

`port_b.mflow`=(`port_a.mflow`+x=c,d{`port_x.mflow`port__x on=true0.0port__x on=false) 

`port_a.p`=p

p=1NumOfRoutex=a,c,d{`port_x.p`port__x on=true0.0port__x on=false

`port_b.p`=p

Energy conservation is calculated with:

LUT__cpp,TMⅆTⅆt=`port_a.mflow`ActualStream`port_a.hflow` +x=b,c,d{`port_x.mflow`ActualStream`port_x.hflow`port__x on=true0.0port__x on=false+{`heat.Q_flow`useHeatPort=true0.0useHeatPort=false

Relationship of mass:

u=UM

M=ρV

Definition of Enthalpy:

hflow=LUT__hflowp,T

u=hflowpρ

Definition of Density:

ρ=LUT__ρp,T

Port definitions:

`port_a.hflow`=hflow

`port_x.hflow`=hflow if port__x on=true x=b,c,d

`port_a.rho`=ρ

`port_x.rho`=ρ if port__x on=true x=b,c,d

`port_a.T`=T

`port_x.T`=T if port__x on=true x=b,c,d

v1=`port_a.mflow`ActualStream`port_a.rho`A1

vi=`port_x.mflow`ActualStream`port_x.rho`Ai if port__x on=true x=b,c,d,the order of vector is b=2,c=3,d=4

`heat.T`=T

(*) Additional information about properties is available in Water Settings.

Fidelity of properties : Liquid water (Lookup table of IAPWS/IF97) and Dynamics of mass = Dynamic

Mass conservation is calculated with:

ⅆρⅆt=`port_a.mflow`+x=b,c,d{`port_x.mflow`port__x on=true0.0port__x on=falseV

`port_a.p`=p

`port_x.p`=p if port__x on=true x=b,c,d

Energy conservation is calculated with:

ⅆUⅆt=`port_a.mflow`ActualStream`port_a.hflow` +x=b,c,d{`port_x.mflow`ActualStream`port_x.hflow`port__x on=true0.0port__x on=false+{`heat.Q_flow`useHeatPort=true0.0useHeatPort=false

Relationship of mass:

u=UM

M=ρV

Definition of Enthalpy:

hflow=LUT__hflowp,T

ⅆpⅆt=ⅆUⅆ t1V+ⅆhflowⅆtρ+hflowⅆρⅆt

Definition of Density:

ρ=LUT__ρp,T

Port definitions:

`port_a.hflow`=hflow

`port_x.hflow`=hflow if port__x on=true x=b,c,d

`port_a.rho`=ρ

`port_x.rho`=ρ if port__x on=true x=b,c,d

`port_a.T`=T

`port_x.T`=T if port__x on=true x=b,c,d

v1=`port_a.mflow`ActualStream`port_a.rho`A1

vi=`port_x.mflow`ActualStream`port_x.rho`Ai if port__x on=true x=b,c,d,the order of vector is b=2,c=3,d=4

`heat.T`=T

(*) Additional information about properties is available in Water Settings.

Fidelity of properties : IAPWS/IF97 standard and Dynamics of mass = Static

If Type of Branch is ab+c+d (Branching), Mass conservation is calculated with:

NumOfRoute=x=b,c,d{1.0port__x on=true0.0port__x on=false

`port_x.mflow`=1NumOfRoute`port_a.mflow`  if port__x on=true x=b,c,d

`port_a.p`=p

`port_x.p`=p if port__x on=true x=b,c,d

If Type of Branch is a+c+db (Confluence), Mass conservation is calculated with:

NumOfRoute=1.0+x=c,d{1.0port__x on=true0.0port__x on=false

`port_b.mflow`=(`port_a.mflow`+x=c,d{`port_x.mflow`port__x on=true0.0port__x on=false) 

`port_a.p`=p

p=1NumOfRoutex=a,c,d{`port_x.p`port__x on=true0.0port__x on=false

`port_b.p`=p

Energy conservation is calculated with:

Function__cpp,TMⅆTⅆt=`port_a.mflow`ActualStream`port_a.hflow` +x=b,c,d{`port_x.mflow`ActualStream`port_x.hflow`port__x on=true0.0port__x on=false+{`heat.Q_flow`useHeatPort=true0.0useHeatPort=false

Relationship of mass:

u=UM

M=ρV

Definition of Enthalpy:

hflow=Function__hflowp, T

u=hflowpρ

Definition of Density:

ρ=Function__ρp, T

Port definitions:

`port_a.hflow`=hflow

`port_x.hflow`=hflow if port__x on=true x=b,c,d

`port_a.rho`=ρ

`port_x.rho`=ρ if port__x on=true x=b,c,d

`port_a.T`=T

`port_x.T`=T if port__x on=true x=b,c,d

v1=`port_a.mflow`ActualStream`port_a.rho`A1

vi=`port_x.mflow`ActualStream`port_x.rho`Ai if port__x on=true x=b,c,d,the order of vector is b=2,c=3,d=4

`heat.T`=T

(*) Additional information about properties is available in Water Settings.

 

Fidelity of properties : IAPWS/IF97 standard and Dynamics of mass = Dynamic

(*) This mode is not available in this version of the Heat Transfer Library

 

Variables

Symbol

Units

Description

Modelica ID

p

Pa

Pressure

p

T

K

Temperature

T

ρ

kgm3

Density

rho

hflow

Jkg

Specific enthalpy

hflow

u

Jkg

Specific energy

u

U

J

Energy

u

M

kg

Mass

M

mflow

kgs

Mass flow rate

mflow

NumOfRoute

Number of valid routes

NumOfRoute

v

ms

Velocity of flow

v

Connections

Name

Condition

Description

Modelica ID

port__a

 

Water Port

port_a

port__b

if port_c on is true.

Water Port

port_b

port__c

if port_d on is true.

Water Port

port_c

port__d

if port_b on is true.

Water Port

port_d

states

if Internal states output is true.

Internal states output. The breakdown list of output variables in states are the followings:

 [1] : Pressure     [2] : Temperature

 [3] : Density       [4] : Specific enthalpy

 [5] : Velocity of port_a

 [6] : Velocity of port_b

 [7] : Velocity of port_c

 [8] : Velocity of port_d

states

heat

if Heat port is true.

Heat Port

heat

Parameters

Symbol

Default

Units

Description

Modelica ID

Watersimulationsettings 

WaterSettings1

Specify a component of Water simulation settings

Settings

V

0.000001

m3

Volume of the node

V

A

Pi10000,Pi10000,Pi10000,Pi10000

m2

Flow area of each port

 1 : port_a,    2 : port_b

 3 : port_c,    4 : port_d

A

port__b on

false

If true, port_b is valid

sw_b

port__c on

false

If true, port_c is valid

sw_c

port__d on

false

If true, port_d is valid

sw_d

p__start

101325

Pa

Initial condition of Pressure

p_start

T__start

293.15

K

Initial condition of temperature

T_start

Internalstatesoutput

false

If true, the output of the internal states is valid. The breakdown list of output variables in states are the followings:

 [1] : Pressure                [2] : Temperature

 [3] : Density                  [4] : Specific enthalpy

 [5] : Velocity of port_a  [6] : Velocity of port_b

 [7] : Velocity of port_c  [8] : Velocity of port_d

useStates

Heat port

false

If true, Heat port is valid

useHeatPort

Type ofBranch

ab+c+d

Branch type setting only for Static mass flow simulation, when Dynamics of mass option of Water Settings is Static.

 ab+c+d : 

   The input flow is split into 3 ports

 a+c+db :

   The input flows from 3 ports are confluent

TypeOfBranch

See Also

Heat Transfer Library Overview

Water Overview

Water Basic Overview