modelFlow1DimInc

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

Information

This model is a variation of the Flow1DimInc model from the ThermoCycle Library. In order to make it compatible with the Greenhouses library, the following changes have been added:

  • The fluid ports have been replaced by the Modelica Standard Library fluidPort.
  • The heat port has been replaced by the Modelica Standard Library heatPort.

This model describes the flow of incompressible fluid through a discretized one dimensional tube. It is obtained by connecting in series N Cell1DimInc.

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 node
  • Temperature 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.Units.SI.AreaA16.18Lateral surface of the tube: heat exchange area
Modelica.Units.SI.VolumeV0.03781Volume of the tube
Modelica.Units.SI.MassFlowRateMdotnom0.2588Nominal fluid flow rate
Modelica.Units.SI.CoefficientOfHeatTransferUnomif HTtype = Const: Heat transfer coefficient
Initialization
Modelica.Units.SI.PressurepstartFluid pressure start value
Medium.TemperatureTstart_inletInlet temperature start value
Medium.TemperatureTstart_outletOutlet temperature start value
Medium.SpecificEnthalpy[N]hstartlinspace(Medium.specificEnthalpy_pTX(pstart, Tstart_inlet, Medium.reference_X), Medium.specificEnthalpy_pTX(pstart, Tstart_outlet, Medium.reference_X), N)Start value of enthalpy vector (initialized by default)
Numerical options
DiscretizationsDiscretizationGreenhouse.Functions.Enumerations.Discretizations.centr_diffSelection of the spatial discretization scheme
Initialization › Initialization options
Booleansteadystatetrueif true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aInFlow
Modelica.Fluid.Interfaces.FluidPort_bOutFlow
Greenhouse.Interfaces.Heat.HeatPorts_aheatPorts_a

Components

TypeNameDefaultDescription
SummaryClassSummary
Modelica.Units.SI.PowerQ_totTotal heat flux exchanged by the thermal port
Modelica.Units.SI.MassM_totTotal mass of the fluid in the component
Greenhouses.Flows.FluidFlow.Cell1DimInc[N]Cells
Greenhouses.Interfaces.Heat.ThermalPortConverterthermalPortConverter
Greenhouse.Interfaces.Heat.HeatPortConverter_ThermoCycle_ModelicaheatPort_ThermoCycle_Modelica

Contents

NameDescription
Medium
SummaryClass
Flow1DimIncHeatTransferModel