modelFlow1Dim_130627

1-D fluid flow model (finite volume discretization - real fluid model)

Parameters

TypeNameDefaultDescription
HTtypesHTtypeHTtypes.LiqVapSelect type of heat transfer coefficient
RealpiModelica.Constants.pipi-greco
IntegerN10Number of cells
Modelica.SIunits.AreaA16.18Lateral surface of the tube: heat exchange area
Modelica.SIunits.VolumeV0.03781Volume of the tube
Modelica.SIunits.VolumeViV/NVolume of a single cell
Modelica.SIunits.AreaAiA/NLateral surface of a single cell
Modelica.SIunits.MassFlowRateMdotnom0.2588Nominal fluid flow rate
Modelica.SIunits.CoefficientOfHeatTransferUnom_l100if HTtype = LiqVap : Heat transfer coefficient, liquid zone
Modelica.SIunits.CoefficientOfHeatTransferUnom_tp100if HTtype = LiqVap : heat transfer coefficient, two-phase zone
Modelica.SIunits.CoefficientOfHeatTransferUnom_v100if HTtype = LiqVap : heat transfer coefficient, vapor zone
Initialization
Modelica.SIunits.PressurepstartFluid pressure start value
Medium.TemperatureTstart_inletInlet temperature start value
Medium.TemperatureTstart_outletOutlet temperature start value
Medium.SpecificEnthalpy[N]hstartlinspace(Medium.specificEnthalpy_pT(pstart, Tstart_inlet), Medium.specificEnthalpy_pT(pstart, Tstart_outlet), N)Start value of enthalpy vector (initialized by default)
Numerical options
DiscretizationsDiscretizationThermoCycle.Functions.Enumerations.Discretizations.centr_diffSelection of the spatial discretization scheme
BooleanMdotconstfalseSet to yes to assume constant mass flow rate at each node (easier convergence)
Booleanmax_derfalseSet to yes to limit the density derivative during phase transitions
Booleanfilter_dMdtfalseSet to yes to filter dMdt with a first-order filter
Realmax_drhodt100Maximum value for the density derivative
Modelica.SIunits.TimeTT1Integration time of the first-order filter
Initialization › Intialization options
Booleansteadystatetrueif true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization

Components

TypeNameDefaultDescription
ThermoCycle.Interfaces.Fluid.FlangeAInFlow
ThermoCycle.Interfaces.Fluid.FlangeBOutFlow
ThermoCycle.Interfaces.HeatTransfer.ThermalPortWall_int
Medium.ThermodynamicState[N]fluidState
Medium.SaturationPropertiessat
Medium.AbsolutePressurep
Modelica.SIunits.MassFlowRateM_dot_su
Medium.SpecificEnthalpy[N]hFluid specific enthalpy at the cells
Medium.Temperature[N]T
Modelica.SIunits.Temperature[N]T_wallInternal wall temperature
Medium.Density[N]rhoFluid cell density
Modelica.SIunits.DerDensityByEnthalpy[N]drdhDerivative of density by enthalpy
Modelica.SIunits.DerDensityByPressure[N]drdpDerivative of density by pressure
Modelica.SIunits.SpecificEnthalpy[N + 1]hnodeEnthalpy state variables at each node
Real[N]dMdtTime derivative of mass in each cell between two nodes
Modelica.SIunits.HeatFlux[N]qdotheat flux at each cell
Modelica.SIunits.MassFlowRate[N + 1]Mdot
Modelica.SIunits.CoefficientOfHeatTransfer[N]UHeat transfer coefficient between wall and working fluid
Real[N]xVapor quality
Modelica.SIunits.SpecificEnthalpyh_l
Modelica.SIunits.SpecificEnthalpyh_v
Modelica.SIunits.PowerQ_totTotal heat flux exchanged by the thermal port
Modelica.SIunits.MassM_totTotal mass of the fluid in the component

Contents

NameDescription
Medium