modelFlow1DFEMnm

1-dimensional fluid flow model for p-h fluid (finite elements)

Extends from BaseClasses.Flow1DBase (Basic interface for 1-dimensional p-h fluid fluid flow models).

Information

This model describes the flow of water or steam in a rigid tube.

It implements the same model of the Flow1DFEM but written without the use of matrices, thus increasing the efficiency in terms of translation time in case of a large number of nodes.

The only difference to the model Flow1DFEM is that this implementation is pure FEM only, so it is no possible to switch to pure Finite Volume or mixed FEM/Finite Volume configurations.

Parameters

TypeNameDefaultDescription
Realpi (from Flow1DBase)Modelica.Constants.pi
IntegerN (from Flow1DBase)2Number of nodes for thermal variables
IntegerNw (from Flow1DBase)N - 1Number of volumes on the wall interface
IntegerNt (from Flow1DBase)1Number of tubes in parallel
SI.DistanceL (from Flow1DBase)Tube length
SI.PositionH (from Flow1DBase)0Elevation of outlet over inlet
SI.AreaA (from Flow1DBase)Cross-sectional area (single tube)
SI.Lengthomega (from Flow1DBase)Perimeter of heat transfer surface (single tube)
SI.LengthDhyd (from Flow1DBase)omega/piHydraulic Diameter (single tube)
Medium.MassFlowRatewnom (from Flow1DBase)Nominal mass flowrate (total)
SI.PressureDifferencedpnom (from Flow1DBase)0Nominal pressure drop (friction term only!)
SI.PerUnitKfc (from Flow1DBase)1Friction factor correction coefficient
BooleanDynamicMomentum (from Flow1DBase)falseInertial phenomena accounted for
ThermoPower.Choices.Flow1D.HCtypesHydraulicCapacitance (from Flow1DBase)ThermoPower.Choices.Flow1D.HCtypes.DownstreamLocation of the hydraulic capacitance
BooleanavoidInletEnthalpyDerivative (from Flow1DBase)trueAvoid inlet enthalpy derivative
BooleanallowFlowReversal (from Flow1DBase)system.allowFlowReversal= true to allow flow reversal, false restricts to design direction
SI.PerUnitwnf (from Flow1DBase)0.02Fraction of nominal flow rate at which linear friction equals turbulent friction
SI.Accelerationg (from Flow1DBase)Modelica.Constants.g_n
SI.PerUnitdzdx (from Flow1DBase)H/LSlope
SI.Lengthl (from Flow1DBase)L/(N - 1)Length of a single volume
SI.VolumeV (from Flow1DBase)Nt*A*LTotal volume (all Nt tubes)
Modelica.Units.SI.PerUnitalpha1Numerical stabilization coefficient
Modelica.Units.SI.PerUnitwnf_bc0.01Fraction of the nominal total mass flow rate for boundary condition FEM regularization
Modelica.Units.SI.PerUnitwnf_alpha0.01Fraction of the nominal total mass flow rate for stabilization parameter regularization
BooleanregularizeBoundaryConditionsfalseRegularize boundary condition matrices
BooleanidealGasDensityDistributionfalseAssume ideal-gas-type density distributions for mass balances
BooleanevenN(div(N, 2)*2 == N)The number of nodes is even
Initialisation
Choices.FluidPhase.FluidPhasesFluidPhaseStart (from Flow1DBase)Choices.FluidPhase.FluidPhases.LiquidFluid phase (only for initialization!)
Medium.AbsolutePressurepstart (from Flow1DBase)1e5Pressure start value
Medium.SpecificEnthalpyhstartin (from Flow1DBase)if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Liquid then 1e5 else if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Steam then 3e6 else 1e6Inlet enthalpy start value
Medium.SpecificEnthalpyhstartout (from Flow1DBase)if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Liquid then 1e5 else if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Steam then 3e6 else 1e6Outlet enthalpy start value
Medium.SpecificEnthalpy[N]hstart (from Flow1DBase)linspace(hstartin, hstartout, N)Start value of enthalpy vector (initialized by default)
Choices.Init.OptionsinitOpt (from Flow1DBase)system.initOptInitialisation option
BooleannoInitialPressure (from Flow1DBase)falseRemove initial equation on pressure

Connectors

TypeNameDefaultDescription
FlangeAinfl (from Flow1DBase)
FlangeBoutfl (from Flow1DBase)
Thermal.DHTNodeswall

Components

TypeNameDefaultDescription
ThermoPower.Systemsystem (from Flow1DBase)System wide properties
SI.TimeTr (from Flow1DBase)Residence time
HeatTransferheatTransferInstantiated heat transfer model
FrictionfrictionInstantiated friction model
Medium.ThermodynamicState[N]fluidStateThermodynamic state of the fluid at the nodes
RealdwdtDynamic momentum term
Medium.AbsolutePressurepFluid pressure
Modelica.Units.SI.PressureDpfricPressure drop due to friction (total)
Modelica.Units.SI.PressureDpfric1Pressure drop due to friction (from inlet to capacitance)
Modelica.Units.SI.PressureDpfric2Pressure drop due to friction (from capacitance to outlet)
Modelica.Units.SI.PressureDpstatPressure drop due to static head
Medium.MassFlowRate[N]wMass flowrate (single tube)
Modelica.Units.SI.Velocity[N]uFluid velocity
Modelica.Units.SI.HeatFlux[N]phiHeat flux entering the fluid
Medium.Temperature[N]TFluid temperature
Medium.SpecificEnthalpy[N]hFluid specific enthalpy
Medium.Density[N]rhoFluid density
Modelica.Units.SI.SpecificVolume[N]vFluid specific volume
Modelica.Units.SI.MassMtotTotal mass of fluid
Modelica.Units.SI.PowerQTotal heat flow through lateral boundary

Contents

NameDescription
HeatTransfer
Friction

Revisions