This component simulates an area-varying non-uniform mesh 1D fluid pipe that exchanges heat with the environment.
| nodes | INTEGER | 5 | Number of control volumes |
| f_in | fluid | IN | |||
| f_out | fluid | OUT |
| L | REAL | 1 | Pipe length | m | |
| P_o | REAL | 1 | Initial pressure | bar | |
| T_o | REAL | 293.15 | Initial temperature | K | |
| fld_add | REAL | 0 | Additional losses in f*L/D | - | |
| fr_option | ENUM FLUID_PROP.FR_OPTION | FR_tube_1ph | Wall friction correlation option | - | |
| hc_dat | REAL | 1 | Heat transfer coefficient defined by the user | W/(m^2�K) | |
| ht_option | ENUM FLUID_PROP.HT_OPTION | HT_tube | Internal wall - fluid heat transfer option | - | |
| num | INTEGER | 1 | Number of tubes in the pipe | - | |
| rug | REAL | 5e-005 | Rugosity | m | |
| x_o | REAL | 0 | Initial quality | - |
| A | REAL | Area | m^2 | ||
| Dh | REAL | Hydraulic diameter | m^2 | ||
| P[nodes] | REAL | Pressure in the volumes | bar | ||
| Re[nodes] | REAL | Reynolds number | - | ||
| T[nodes] | REAL | Temperature in the volumes | K | ||
| Tsat[nodes] | REAL | Saturation temperature in the volumes | K | ||
| V[nodes] | REAL | Fluid volume in component | m^3 | ||
| alpha[nodes] | REAL | Void fraction | - | ||
| bends | INTEGER | Number of bends in the pipe | - | ||
| cond[nodes] | REAL | Fluid conductivity | W/(m�K) | ||
| cond_g[nodes] | REAL | Fluid conductivity | W/(m�K) | ||
| cond_l[nodes] | REAL | Fluid conductivity | W/(m�K) | ||
| cp[nodes] | REAL | Specific heat at constant pressure | J/(kg�K) | ||
| cp_g[nodes] | REAL | Specific heat | J/(kg�K) | ||
| cp_l[nodes] | REAL | Specific heat | J/(kg�K) | ||
| dP[nodes] | REAL | Derivative of the nodal pressure | Pa/s | ||
| dP_loss | REAL | Total pressure difference due to loss | bar | ||
| drho_dh[nodes] | REAL | drho/dh at constant p | kg s^2 /m^5 | ||
| drho_dp[nodes] | REAL | drho/dp at constant h | s^2/m^2 | ||
| du_dT[nodes] | REAL | ||||
| dx_norm[nodes] | REAL | - | |||
| fr[nodes] | REAL | Friction factor | - | ||
| h[nodes] | REAL | Static Enthalpy | J/kg | ||
| h_g[nodes] | REAL | Enthalpy of saturated vapor | J/kg | ||
| h_l[nodes] | REAL | Enthalpy of saturated liquid | J/kg | ||
| hc[nodes] | REAL | Internal film coefficient | W/(m^2�K) | ||
| ier[nodes] | INTEGER | 0 | Error index of thermodynamic function calls | - | |
| itab[nodes] | INTEGER | Pointer to last table interval for speed up calculation | - | ||
| m_jun[nodes + 1] | REAL | Flow in the unions between volumes | kg/s | ||
| mh_jun[nodes + 1] | REAL | mh_jun=m_jun*total enthalpy | W | ||
| phase[nodes] | ENUM FLUID_PROP.Phase | Phase of the fluid in each node | - | ||
| q[nodes] | REAL | Heat flow | W | ||
| qn[nodes] | REAL | Artificial dissipation | - | ||
| rho[nodes] | REAL | Density | kg/m^3 | ||
| rho_g[nodes] | REAL | Density of saturated vapor | kg/m^3 | ||
| rho_l[nodes] | REAL | Density of saturated liquid | kg/m^3 | ||
| sigma[nodes] | REAL | Surface tension | N/m | ||
| u[nodes] | REAL | Total specific energy | J/kg | ||
| vel[nodes] | REAL | Average velocity in continuity node | m/s | ||
| visc[nodes] | REAL | Viscosity | Pa�s | ||
| visc_g[nodes] | REAL | Viscosity | Pa�s | ||
| visc_l[nodes] | REAL | Viscosity | Pa�s | ||
| vsound[nodes] | REAL | Sound speed | m/s | ||
| x[nodes] | REAL | Vapour mass fraction | - | ||
| z[nodes + 1] | REAL | Altitude of the node | m | ||
| zeta[nodes] | REAL | Equivalent distributed friction | - |
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.
The formulation incorporates the 1D mass, energy and momentum equations in transient regime. The number of volumes in which the pipe is discretized is a parameter (nodes).

Pressures and temperatures are associated with the n nodes. The dynamic mass flows are calculated at the internal junctions (centred scheme, where each junction has associated two half volume inertias).
The mass flows at the first and last junctions (1 and n+1) will be given by the inductive type components connected to the pipe. Note that the first and last half-nodal inertia are included in the junction.
![]()
where�
�is the volume of the
node i,
is the massflow and ρ is the density of the node.

where��
�is the volume of the
node i,
is the massflow and ρ is the density of the node, u is
the internal energy, h the enthalpy,
�is the velocity of the
fluid,
�the slope of the pipe
and g gravity.
The following momentum balance equation dynamically calculates the massflow in each junction:

where I is the inertia of the fluid, P is
the static pressure calculated by the volume connected to the junction,
�is the dynamic
pressure calculated as function of the density and the velocity calculated by
the volume connected to the junction and
is the pressure loss due to friction of the half of the
volume next to the junction.
The equivalent distributed friction, Δξ (i), is calculated as follows:
![]()
Where K_add is an input data representing concentrated load losses to be distributed along the pipe. Function 'hdc_bend' calculates the bend pressure drop coefficient (see Annex 1). Function 'hdc_fric' calculates the friction factor including laminar and turbulent regimes (see Annex 1).
The term qn(i) accounts for pressure losses due to turbulence terms not directly calculated with a 1D approach (see R7, R8). This term also stabilizes numerically the system of equations. It is calculated as follows:
![]()
Where m_jun is the massflow in the corresponding junction and vsound is the speed of sound. A is the area of the cross section of the pipe.
At each discretized volume, the non derivative state variables (pressures, qualities and temperatures) will be calculated using the state function:
CRYO_FL_state_vs_RU( f_in.fluid, f_in.eos, rho[i], u[i]-0.5*vel[i]**2, phase[i], rho_l[i], rho_g[i], P[i], T[i],Tsat[i], h_l[i], h_g[i], x[i], alpha[i], cp[i], cp_l[i], cp_g[i],drho_dp[i],drho_dh[i],vsound[i], visc[i], visc_l[i], visc_g[i], cond[i], cond_l[i], cond_g[i], sigma[i], ier[i] )
The sonic flow per unit of area is calculated at each pipe port as a function of the corresponding node pressure, density and the sound speed. These critical flows will be used at the connected inductive type components to take into account sonic flow limitation.
Document generated automatically with EcosimPro Version: 5.4.14 Date: 2015:02:02 Time: 12:52:58