modelFlow1DimL_130627

1-D fluid flow model ( Lumped - real fluid model)

Parameters

TypeNameDefaultDescription
HTtypesHTtypeHTtypes.LiqVapSelect type of heat transfer coefficient
RealpiModelica.Constants.pipi-greco
Modelica.SIunits.VolumeViVolume of a single cell
Modelica.SIunits.AreaAiLateral surface of a single cell
Modelica.SIunits.MassFlowRateMdotnomNominal fluid flow rate
Modelica.SIunits.CoefficientOfHeatTransferUnom_lif HTtype = LiqVap : Heat transfer coefficient, liquid zone
Modelica.SIunits.CoefficientOfHeatTransferUnom_tpif HTtype = LiqVap : heat transfer coefficient, two-phase zone
Modelica.SIunits.CoefficientOfHeatTransferUnom_vif HTtype = LiqVap : heat transfer coefficient, vapor zone
Initialization
Modelica.SIunits.PressurepstartFluid pressure start value
Medium.TemperatureTstartInlet temperature start value
Medium.SpecificEnthalpyhstartMedium.specificEnthalpy_pT(pstart, Tstart)Start value of enthalpy (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

Connectors

TypeNameDefaultDescription
ThermoCycle.Interfaces.Fluid.FlangeAInFlow
ThermoCycle.Interfaces.Fluid.FlangeBOutFlow
ThermoCycle.Interfaces.HeatTransfer.ThermalPortLWall_int

Components

TypeNameDefaultDescription
Medium.ThermodynamicStatefluidState
Medium.SaturationPropertiessat
Medium.AbsolutePressurep
Modelica.SIunits.MassFlowRateM_dot_su
Modelica.SIunits.MassFlowRateM_dot_ex
Medium.SpecificEnthalpyhFluid specific enthalpy at the cells
Medium.TemperatureT
Modelica.SIunits.TemperatureT_wallInternal wall temperature
Medium.DensityrhoFluid cell density
Modelica.SIunits.DerDensityByEnthalpydrdhDerivative of density by enthalpy
Modelica.SIunits.DerDensityByPressuredrdpDerivative of density by pressure
Modelica.SIunits.SpecificEnthalpyhnode_suEnthalpy state variable at inlet node
Modelica.SIunits.SpecificEnthalpyhnode_exEnthalpy state variable at outlet node
RealdMdtTime derivative of mass in cell
Modelica.SIunits.HeatFluxqdotheat flux at each cell
Modelica.SIunits.CoefficientOfHeatTransferUHeat transfer coefficient between wall and working fluid
RealxVapor 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