modelFlow1DBase

Basic interface for 1-dimensional water/steam fluid flow models

Extends from Icons.Water.Tube.

Information

Basic interface of the Flow1D models, containing the common parameters and connectors.

Parameters

TypeNameDefaultDescription
RealpiModelica.Constants.pi
IntegerN2Number of nodes for thermal variables
IntegerNwN - 1Number of volumes on the wall interface
IntegerNt1Number of tubes in parallel
SI.DistanceLTube length
SI.PositionH0Elevation of outlet over inlet
SI.AreaACross-sectional area (single tube)
SI.LengthomegaPerimeter of heat transfer surface (single tube)
SI.LengthDhydomega/piHydraulic Diameter (single tube)
Medium.MassFlowRatewnomNominal mass flowrate (total)
ThermoPower.Choices.Flow1D.FFtypesFFtypeThermoPower.Choices.Flow1D.FFtypes.NoFrictionFriction Factor Type
SI.PressureDifferencedpnom0Nominal pressure drop (friction term only!)
RealKfnom0Nominal hydraulic resistance coefficient (DP = Kfnom*w^2/rho)
Medium.Densityrhonom0Nominal inlet density
SI.PerUnitCfnom0Nominal Fanning friction factor
SI.PerUnite0Relative roughness (ratio roughness/diameter)
SI.PerUnitKfc1Friction factor correction coefficient
BooleanDynamicMomentumfalseInertial phenomena accounted for
ThermoPower.Choices.Flow1D.HCtypesHydraulicCapacitanceThermoPower.Choices.Flow1D.HCtypes.DownstreamLocation of the hydraulic capacitance
BooleanavoidInletEnthalpyDerivativetrueAvoid inlet enthalpy derivative
BooleanallowFlowReversalsystem.allowFlowReversal= true to allow flow reversal, false restricts to design direction
SI.PerUnitwnf0.02Fraction of nominal flow rate at which linear friction equals turbulent friction
SI.AccelerationgModelica.Constants.g_n
SI.PerUnitdzdxH/LSlope
SI.LengthlL/(N - 1)Length of a single volume
SI.VolumeVNt*A*LTotal volume (all Nt tubes)
Initialisation
Choices.FluidPhase.FluidPhasesFluidPhaseStartChoices.FluidPhase.FluidPhases.LiquidFluid phase (only for initialization!)
Medium.AbsolutePressurepstart1e5Pressure start value
Medium.SpecificEnthalpyhstartinif FluidPhaseStart == Choices.FluidPhase.FluidPhases.Liquid then 1e5 else if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Steam then 3e6 else 1e6Inlet enthalpy start value
Medium.SpecificEnthalpyhstartoutif FluidPhaseStart == Choices.FluidPhase.FluidPhases.Liquid then 1e5 else if FluidPhaseStart == Choices.FluidPhase.FluidPhases.Steam then 3e6 else 1e6Outlet enthalpy start value
Medium.SpecificEnthalpy[N]hstartlinspace(hstartin, hstartout, N)Start value of enthalpy vector (initialized by default)
Choices.Init.OptionsinitOptsystem.initOptInitialisation option
BooleannoInitialPressurefalseRemove initial equation on pressure

Connectors

TypeNameDefaultDescription
FlangeAinfl
FlangeBoutfl

Components

TypeNameDefaultDescription
ThermoPower.SystemsystemSystem wide properties
SI.PowerQTotal heat flow through the lateral boundary (all Nt tubes)
SI.TimeTrResidence time

Contents

NameDescription
Medium
squareReg

Revisions