modelDynamicTwoPhaseFlowRiser

Dynamic two-phase flow riser

Extends from ThermoSysPro.Fluid.Interfaces.IconColors (Colors of the static, singular and dynamic model icons).

Information

## Copyright © EDF 2002 - 2026   
## ThermoSysPro Version 4.2

Parameters

TypeNameDefaultDescription
Units.SI.LengthL10.Pipe length
Units.SI.DiameterD0.02Hydraulic diameter
Units.SI.Lengthrugosrel0.0007Pipe relative roughness
Integerntubes1Number of pipes in parallel
Units.SI.Positionz10Pipe inlet altitude
Units.SI.Positionz20Pipe outlet altitude
Realrgliss1Phase slip coefficient
Integera4200Phase pressure loss coefficient
RealdpfCorr1.00Corrective term for the friction pressure loss (dpf) for each node
RealhcCorr1.00Corrective term for the heat exchange coefficient (hc) for each node
IntegerNs10Number of segments
Units.SI.Temperature[Ns]T0fill(300, Ns)Initial fluid temperature (active if steady_state=false and option_temperature=true)
Units.SI.SpecificEnthalpy[Ns]h0fill(1e5, Ns)Initial fluid specific enthalpy (active if steady_state=false and option_temperature=false)
Booleaninertiatruetrue: momentum balance equation with inertia - false: without inertia
Booleanadvectionfalsetrue: momentum balance equation with advection term - false: without advection term
Booleandynamic_energy_balancetruetrue: dynamic energy balance equation - false: static energy balance equation
Booleandynamic_mass_balancetruetrue: dynamic mass balance equation - false: static mass balance equation (active if dynamic_energy_balance=true)
Booleansimplified_dynamic_energy_balancetruetrue: simplified dynamic energy balance equation - false: full dynamic energy balance equation (active if dynamic_energy_balance=true and dynamic_mass_balance=true)
Booleansteady_statetruetrue: start from steady state - false: start from T0 (if option_temperature = true) or h0 (if option_temperature=false)(active if dynamic_energy_balance=true)
Booleanoption_temperaturetruetrue: initial temperature is fixed - false: initial specific enthalpy is fixed (active if steady_state=false)
Booleancontinuous_flow_reversalfalsetrue: continuous flow reversal - false: discontinuous flow reversal
Booleandiffusionfalsetrue: energy balance equation with diffusion - false: energy balance equation without diffusion
Fluid › Fluid properties
IF97RegionregionIF97Region.All_regionsIF97 region (active for IF97 water/steam only)

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.FluidInletC1
ThermoSysPro.Thermal.Connectors.ThermalPort[Ns]CTh1
Interfaces.Connectors.FluidOutletC2
ThermoSysPro.Thermal.Connectors.ThermalPort[Ns]CTh2

Components

TypeNameDefaultDescription
Units.SI.AbsolutePressure[N + 1]PFluid pressure in node i
Units.SI.MassFlowRate[N]QMass flow rate in node i
Units.SI.SpecificEnthalpy[N + 1]hFluid specific enthalpy in node i
Units.SI.SpecificEnthalpy[N]hbFluid specific enthalpy at the boundary of node i
Units.SI.AbsolutePressure[N + 1]PbBounded fluid pressure in node i
Units.SI.Density[N - 1]rho1Fluid density in thermal node i
Units.SI.Density[N]rho2Fluid density in hydraulic node i
Units.SI.Density[N + 1]rhocFluid density at the boudary of node i
Units.SI.MassFlowRate[N - 1]BQRight hand side of the mass balance equation for thermal node i
Units.SI.Power[N - 1]BHRight hand side of the energy balance equation for thermal node i
Units.SI.Power[N - 1]dW1_convConvection thermal power exchanged on the liquid side for node i
Units.SI.Power[N - 1]dW1_diffDiffusion thermal power exchanged on the liquid side for node i
Units.SI.Power[N - 1]dW1Thermal power exchanged on the liquid side for node i
Units.SI.Power[N - 1]dW2_convConvection thermal power exchanged on the liquid side for node i
Units.SI.Power[N - 1]dW2_diffDiffusion thermal power exchanged on the liquid side for node i
Units.SI.Power[N - 1]dW2Thermal power exchanged on the liquid side for node i
Units.SI.PowerW1tTotal power exchanged on the liquid side
Units.SI.Temperature[N - 1]Tp1Wall temperature in node i
Units.SI.Temperature[N - 1]Tp2Wall temperature in node i
Units.SI.CoefficientOfHeatTransfer[N - 1]hiFluid heat exchange coefficient in node i
Units.SI.CoefficientOfHeatTransfer[N - 1]hclFluid heat exchange coefficient in node i for the liquid fraction
Units.SI.CoefficientOfHeatTransfer[N - 1]hcvFluid heat exchange coefficient in node i for the vapor fraction
Real[N - 1]SCorrective terme correctif for nucleation removal
Real[N - 1]ECorrective term for hcl
Units.SI.CoefficientOfHeatTransfer[N - 1]hebFluid heat exchange coefficient for vaporization in thermal node i
Units.SI.ReynoldsNumber[N - 1]Rel1Reynolds number in thermal node i for the liquid
Units.SI.ReynoldsNumber[N]Rel2Reynolds number in hydraulic node i for the liquid
Units.SI.ReynoldsNumber[N - 1]Rev1Reynolds number in thermal node i for the vapor
Units.SI.ReynoldsNumber[N]Rev2Reynolds number in hydraulic node i for the vapor
Real[N - 1]PrlFluid Prandtl number in node i for the liquid
Real[N - 1]PrvFluid Prandtl number in node i for the vapor
Units.SI.ThermalConductivity[N - 1]kl1Thermal conductivity in thermal node i for the liquid
Units.SI.ThermalConductivity[N]kl2Thermal conductivity in hydraulic node i for the liquid
Units.SI.ThermalConductivity[N - 1]kv1Thermal conductivity in thermal node i for the vapor
Units.SI.ThermalConductivity[N]kv2Thermal conductivity in hydraulic node i for the vapor
Real[N - 1]xv1Vapor mass fraction in thermal node i
Real[N]xv2Vapor mass fraction in hydraulic node i
Real[N - 1]xbsBounded upper value for the vapor mass fraction
Real[N - 1]xbiBounded lower value for the vapor mass fraction
Units.SI.DynamicViscosity[N - 1]mul1Dynamic viscosity in thermal node i for the liquid
Units.SI.DynamicViscosity[N]mul2Dynamic viscosity in hydraulic node i for the liquid
Units.SI.DynamicViscosity[N - 1]muv1Dynamic viscosity in thermal node i for the vapor
Units.SI.DynamicViscosity[N]muv2Dynamic viscosity in hydraulic node i for the vapor
Units.SI.SpecificHeatCapacity[N - 1]cpl1Specific heat capacity in thermal node i for the liquid
Units.SI.SpecificHeatCapacity[N]cpl2Specific heat capacity in hydraulic node i for the liquid
Units.SI.SpecificHeatCapacity[N - 1]cpv1Specific heat capacity in thermal node i for the vapor
Units.SI.SpecificHeatCapacity[N]cpv2Specific heat capacity in hydraulic node i for the vapor
Real[N - 1]BoBoiling number
Real[N - 1]XttMartinelli number
Units.SI.SpecificEnthalpy[N - 1]lvSpecific enthalpy for vaporisation
Units.SI.Density[N - 1]rhol1Fluid density in thermal node i for the liquid
Units.SI.Density[N]rhol2Fluid density in hydraulic node i for the liquid
Units.SI.Density[N - 1]rhov1Fluid density in thermal node i for the vapor
Units.SI.Density[N]rhov2Fluid density in hydraulic node i for the vapor
Units.SI.Temperature[N - 1]T1Fluid temperature in thermal node i
Units.SI.Temperature[N]T2Fluid temperature in hydraulic node i
ThermoSysPro.Units.SI.PressureDifference[N]dpaAdvection term for the mass balance equation in node i
ThermoSysPro.Units.SI.PressureDifference[N]dpfFriction pressure loss in node i
ThermoSysPro.Units.SI.PressureDifference[N]dpgGravity pressure loss in node i
Real[N]khiHydraulic pressure loss coefficient in node i
Real[N]lambdalFriction pressure loss coefficient in node i for the liquid
Real[N]lambdavFriction pressure loss coefficient in node i for the vapor)
Real[N]filoPressure loss coefficient for two-phase flow
FluidTypeftypeFluid type
IntegerfluidInteger(ftype)Fluid number
ThermoSysPro.Units.SI.MassFractionXco2CO2 mass fraction
ThermoSysPro.Units.SI.MassFractionXh2oH2O mass fraction
ThermoSysPro.Units.SI.MassFractionXo2O2 mass fraction
ThermoSysPro.Units.SI.MassFractionXso2SO2 mass fraction
Real[N]diff_res_lDiffusion resistance in hydraulic node i for the liquid
Real[N]diff_res_vDiffusion resistance in hydraulic node i for the vapor
Real[N]diff_resTotal diffusion resistance in hydraulic node i
Realdiff_res_tTotal diffusion resistance in the pipe
Real[N - 1]diff_res_eDiffusion resistance at inlet of thermal node i
Real[N - 1]diff_res_sDiffusion resistance at outlet of thermal node i
Units.SI.MassFlowRate[N]gammaTotal diffusion conductance in hydraulic node i
Units.SI.MassFlowRate[N - 1]gamma_eDiffusion conductance at inlet of thermal node i
Units.SI.MassFlowRate[N - 1]gamma_sDiffusion conductance at outlet of thermal node i
Units.SI.Power[N - 1]JeThermal power diffusion from inlet of thermal node i
Units.SI.Power[N - 1]JsThermal power diffusion from outlet of thermal node i
Units.SI.Power[N - 1]JTotal thermal power diffusion of thermal node i
Real[N - 1]reValue of r(Q/gamma) for inlet of thermal node i
Real[N - 1]rsValue of r(Q/gamma) for outlet of thermal node i
ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph[N - 1]pro1
ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph[2]proc
ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph[N]pro2
ThermoSysPro.Properties.WaterSteam.Common.PropThermoSat[N]vsat2
ThermoSysPro.Properties.WaterSteam.Common.PropThermoSat[N]lsat2
ThermoSysPro.Properties.WaterSteam.Common.PropThermoSat[N - 1]vsat1
ThermoSysPro.Properties.WaterSteam.Common.PropThermoSat[N - 1]lsat1

Revisions

Authors  

Baligh El Hefni  
Daniel Bouskela