CRYOLIB Home | Components | Ports | Classes | Functions | Enumeratives | Global Variables

CRYOLIB.Stream



COMPONENT Stream IS_A FluidChannel

DESCRIPTION:
Stream of a multistream heat exchanger

DOCUMENTATION:

This is the model of a stream that flows through a heat exchanger. It inherits from the abstract component FluidChannel. The following assumptions are made for the Stream component:

*        The outlet temperature of the fluid in a node is equal to the fluid temperature inside the node.

*        There is no heat loss from the surroundings

*        The metal associated with each stream is at the same temperature as the fluid in this node.

*        The pressure in all the nodes of the stream is considered to be the same so as to simplify the mathematical calculations.

 



CONSTRUCTION PARAMETERS:
NAME  TYPE  DEFAULT  DESCRIPTION  UNITS  
Stream_Type ENUM HX_Types Countercurrent Backward thermal connection [TRUE] or forward thermal connection [FALSE]  
flow_type ENUM StreamType Resistive_Storage Flow characterization  
nodes INTEGER  Number of nodes  

PORTS:
NAME  TYPE  PARAMETERS  DIRECTION  CARDINALITY  DESCRIPTION  
f_in fluid  IN    
f_out fluid  OUT    
q_out p_thermal_n  (nodes = nodes)  OUT   Thermal port to connect the stream to a wall 

DATA:
NAME  TYPE  DEFAULT  RANGE  DESCRIPTION  UNITS  
M_wall REAL  100  Mass of aluminium walls assumed at the fluid temperature  kg 
P_d REAL   Design pressure bar 
Po REAL   Initial pressure  bar 
Q_hl_d REAL   Design heat leak 
T_d REAL  300  Design temperature 
T_env REAL  300  Temperature of the environment 
To REAL  300  Initial temperature 
To_linear[2] REAL  { 290,290}   Initial temperatures at both sides if init_mode = Linear_Temp  
To_table TABLE_1D    Table with initial temperature versus non-dimensional position if init_mode = Table_Temp  
UA_d REAL  50000  Design value of the heat transfer coefficient W/K 
REAL  0.5  Total volume of the stream m^3 
dP_d REAL  0.03  Design value of the pressure loss bar 
dist_type ENUM NodeType Linear  Node distribution type  
init_mode ENUM STREAM_INIT_MODE Constant_T  Option for the initialization of the stream nodal temperatures  
m_d REAL  0.24  Design mass flow kg/s 
mat ENUM THERMAL.Material AL6061_T6  Material of the HX  
n_f REAL  -0.16  Constant for friction factor calculation in the stream 
REAL   Width of wall surface 

DECLS:
NAME  TYPE  INITIAL  RANGE  DESCRIPTION  UNITS  
REAL    Area of the stream m^2 
Cp_d REAL    Design conductivity  W/(m�K) 
Gcr_in REAL    Critical mass flow per unit area for molecular flow kg/(s�m^2) 
Gcr_out REAL    Critical mass flow per unit area for molecular flow kg/(s�m^2) 
REAL    Length of wall surface 
REAL    Pressure in nodes assumed common for all nodes bar 
Pr[nodes] REAL    Prandtl number in nodes 
Pr_d REAL    Design Prandtl number 
Q_hl[nodes] REAL    Heat leak 
T[nodes] REAL    Temperature in nodes 
UA[nodes] REAL    Global heat transfer coefficient W/(m^2�K) 
alpha[nodes] REAL    Ratio of wall heat capacity to fluid heat capacity 
cp_wall[nodes] REAL    Specific heat capacity of the wall J/(kg�K) 
cpf[nodes] REAL    Specific heat of each node W/(m�K) 
drho_dh[nodes] REAL    Partial derivative of density with respect enthalpy at constant pressure kg s^2 /m^5 
drho_dp[nodes] REAL    Partial derivative of density with respect pressure at constant enthalpy s^2/m^2 
dx[nodes] REAL    Length of each node 
dx_norm[nodes] REAL    Length of each node 
h[nodes] REAL    Enthalpy in nodes  J/kg 
h_d REAL    Design enthalpy J/kg 
icpk[nodes + 2] INTEGER    Last table position in cp calculation 
ier INTEGER     
ier2 INTEGER     
k[nodes] REAL    Thermal conductivity in nodes W/(m�K) 
m_flow_sense REAL    Sense of the mass flow of the stream kg/m^3 
m_jun[nodes + 1] REAL    Mass flow between nodes  kg/m^3 
m_lam REAL    Maximum mass flow for laminar conditions  kg/m^3 
mh_jun[nodes + 1] REAL    Enthalpy mass flow 
mu[nodes] REAL    Viscosity in nodes Pa�s 
mu_d REAL    Design viscosity Pa�s 
q[nodes] REAL    Heat flux 
qn REAL    Artificial dissipation 
rho[nodes] REAL    Density in nodes  kg/m^3 
rho_d REAL    Design density kg/m^3 
vel[nodes] REAL    Speed m/s 
vsound[nodes] REAL    Speed of sound m/s 
FORMULATION:



FluidChannel formulation:

 

It transmits information from the inlet port to the outlet port about the working fluid that is being used in the fluid loop, the calculation option (real fluid) and checks if there is a working fluid defined in the model.

 




Stream formulation:

Calculation of this component uses enthalpy and pressure as state variables. The derivatives of these variables appear in the balances of mass and energy.

Mass balance

The following equation represents the mass balance to node i:

 

where:

 

is the volume of the node i, that is to say, the total stream volume divided by the total number of nodes

and are the inlet and outlet mass flow respectively of node i

is the density inside node i

is the derivative of the density with respect to the pressure at constant enthalpy

is the derivative of the density with respect to the enthalpy at constant pressure

 

The pressure in all the nodes of the stream is considered to be the same so as to simplify the mathematical calculations.

 

Energy balance

 

Shown below is the energy balance to one of the nodes into whichthe stream is divided:

 

where:

and are the inlet and outlet specific enthalpy to node i respectively. And is the specific enthalpy inside the node i.

is the heat flux transferred in node i

is the ratio between the wall heat capacity and the fluid heat capacity in node i. It is calculated by means of the following expression:

 

where:

����������� is the total metal mass associated with the stream

����������� and are the metal heat capacity and the fluid heat capacity respectively in node i

����������� is the fluid volume

����������� is the fluid density in node i

 

State equation

 

The physical properties of the fluid in the nodes use the pressure and the specific enthalpy as independent variables.

 

Property

Calculation

Temperature

Density

Thermal conductivity

Viscosity

Prandtl number

Derivative of the density with respect to the pressure at constant enthalpy

Derivative of the density with respect to the enthalpy at constant pressure

 

Mass flow calculation

 

The calculation of the mass flow at the inlet or at the outlet depends on which flow characterization has been selected. This mass flow is calculated from the expression of the pressure loss along the channel as a function of the design values. This expression is the following:

 

 

The pressure loss is equal to the difference between the inlet and the outlet pressure:

where:

����������� and are the inlet pressure and the outlet pressure

����������� is the pressure loss of the stream along the channel

����������� is the design pressure loss of the stream along the channel

����������� and are the working mass flow and the design mass flow respectively

����������� andare the working density in the node i and the design density respectively

����������� and are the working viscosity in the node i and the design viscosity respectively

����������� is the total number of nodes in which the stream is divided

 

If the option Resistive_Storage has been selected, the inlet mass flow will be calculated from the pressure loss equation:

where:

����������� and are the pressures at the inlet and at the outlet of the stream

����������� is the design pressure loss ofthe stream along all the length of the channel

 

And the outlet pressure equals the pressure in the nodes.

If the option Storage_Resistive has been selected then the outlet mass flow is going to be calculated from the pressure loss equation:

 

In this case the inlet pressure equals the pressure in the nodes:

�����������������������

However, if the option chosen is Resistive_Resistive, then the inlet and the outlet mass flow will be calculated from the pressure loss equation:

And the inlet and outlet pressure will be boundary conditions.

 

Global heat transfer coefficient

 

The global heat transfer coefficient in each node is calculated using the design data as follows (Colburn, see R):

�����������

where:

is the global heat transfer multiplied by the transfer area in node i

is the global heat transfer multiplied by the transfer area at the design conditions for all the heat exchanger

and are the thermal conductivity in node i and at the design conditions respectively

and are the Prandtl numbers in node i and at the design conditions respectively

and are the viscosity in node i and at the design conditions respectively

is a constant exponent that appears in the Colburn equation

 

Port equations

 

The equations for the port variables depend on the direction of the stream flow: countercurrent or parallel.

If the direction of the stream flow is countercurrent, then the port variables are calculated as follows:

The temperatures in the thermal nodes:

The temperature in the internal thermal nodes, from i = 2 to i = nodes:

If the direction of the stream flow is parallel, then the port variables are calculated as follows:

The temperatures in the thermal nodes

The temperature in the internal thermal nodes, from i = 2 to i = nodes

 

Initialization

 

The initial values of the dynamic variables are obtained from the initialization variables with:

The temperature of the nodes can be initialized depending on the value of the construction parameter init_mode as follows:

*        init_mode = Constant_T. All the nodes are initialized at the same temperature To.

*        init_mode = Linear_T. Nodes are initialized following a linear progression. The user defines an initial value To for the first node and an initial value Tn for the last node. The temperature is calculated as a linear function of these temperatures.

*        init_mode = Table_T. The temperature of the nodes is defined by the user in a table. The temperature of each node is read from this table.

 







Document generated automatically with EcosimPro Version: 5.4.14 Date: 2015:02:02 Time: 12:52:59