modelFlow1Dim

1-D fluid flow model (finite volume discretization - real fluid model). Based on the cell component

Information

This model describes the flow of fluid through a discretized one dimentional tube. It is obtained by connecting in series N Cell1Dim. The resulting discretization scheme is of the staggered type i.e. state variables are computed at the center of each cell and the node variables are calculated depending on the local discretization (Upwind or Central difference).

The Modelling options and the Numerical options are the same as the one presented in the Cell1D model documentation.

The model is characterized by a SummaryClass that provide a quick access to the following variables once the model is simulated:

  • Enthalpy at each node
  • Enthalpy at the center of each cell
  • Density at the center of each cell
  • Massflow at each nodes
  • Vapor quality at the center of each cell
  • Pressure in the tube

Parameters

TypeNameDefaultDescription
IntegerNt1Number of cells in parallel
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

Connectors

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

Components

TypeNameDefaultDescription
SummaryClassSummary
Modelica.SIunits.PowerQ_totTotal heat flux exchanged by the thermal port
Modelica.SIunits.MassM_totTotal mass of the fluid in the component
Medium.SaturationPropertiessatCalculation of the saturation properties here to avoid calculating in every cell
ThermoCycle.Components.FluidFlow.Pipes.Cell1Dim[N]Cells
Interfaces.HeatTransfer.ThermalPortConverterthermalPortConverter

Contents

NameDescription
Medium
SummaryClass
Flow1DimHeatTransferModel