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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Nt | 1 | Number of cells in parallel |
| Real | pi | Modelica.Constants.pi | pi-greco |
| Integer | N | 10 | Number of cells |
| Modelica.Units.SI.Area | A | 16.18 | Lateral surface of the tube: heat exchange area |
| Modelica.Units.SI.Volume | V | 0.03781 | Volume of the tube |
| Modelica.Units.SI.MassFlowRate | Mdotnom | 0.2588 | Nominal fluid flow rate |
| Modelica.Units.SI.CoefficientOfHeatTransfer | Unom | if HTtype = Const: Heat transfer coefficient | |
| Initialization | |||
| Modelica.Units.SI.Pressure | pstart | Fluid pressure start value | |
| Medium.Temperature | Tstart_inlet | Inlet temperature start value | |
| Medium.Temperature | Tstart_outlet | Outlet temperature start value | |
| Medium.SpecificEnthalpy[N] | hstart | linspace(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 | |||
| Discretizations | Discretization | Greenhouse.Functions.Enumerations.Discretizations.centr_diff | Selection of the spatial discretization scheme |
| Initialization › Initialization options | |||
| Boolean | steadystate | true | if true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | InFlow | ||
| Modelica.Fluid.Interfaces.FluidPort_b | OutFlow | ||
| Greenhouse.Interfaces.Heat.HeatPorts_a | heatPorts_a |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SummaryClass | Summary | ||
| Modelica.Units.SI.Power | Q_tot | Total heat flux exchanged by the thermal port | |
| Modelica.Units.SI.Mass | M_tot | Total mass of the fluid in the component | |
| Greenhouses.Flows.FluidFlow.Cell1DimInc[N] | Cells | ||
| Greenhouses.Interfaces.Heat.ThermalPortConverter | thermalPortConverter | ||
| Greenhouse.Interfaces.Heat.HeatPortConverter_ThermoCycle_Modelica | heatPort_ThermoCycle_Modelica |
Contents
| Name | Description |
|---|---|
| SummaryClass | |