modelPipeFlowVLE_L4_Advanced

A 1D tube-shaped control volume considering one-phase and two-phase heat transfer in a straight pipe with detailed dynamic momentum and energy balance.
Diagram of PipeFlowVLE_L4_Advanced

Extends from Basics.ControlVolumes.FluidVolumes.VolumeVLE_L4_Advanced (A 1D tube-shaped control volume considering one-phase and two-phase heat transfer in a straight pipe with detailed dynamic momentum and energy balance.), ClaRa.Basics.Icons.Pipe_L4_a.

Information

For detailed model documentation please consult the html-documentation shipped with ClaRa.

 


Authorship and Copyright Statement for original (initial) Contribution

Author:

DYNCAP/DYNSTART development team, Copyright © 2011-2024.

References:

For references please consult the html-documentation shipped with ClaRa.

Remarks:

This component was developed by ClaRa development team under the 3-clause BSD License.

Acknowledgements:

ClaRa originated from the collaborative research projects DYNCAP and DYNSTART. Both research projects were supported by the German Federal Ministry for Economic Affairs and Energy (FKZ 03ET2009 and FKZ 03ET7060).

CLA:

The author(s) have agreed to ClaRa CLA, version 1.0. See https://claralib.com/pdf/CLA.pdf

By agreeing to ClaRa CLA, version 1.0 the author has granted the ClaRa development team a permanent right to use and modify his initial contribution as well as to publish it or its modified versions under the 3-clause BSD License.

The ClaRa development team consists of the following partners:

TLK-Thermo GmbH (Braunschweig, Germany)

XRG Simulation GmbH (Hamburg, Germany).

Parameters

TypeNameDefaultDescription
RealZeta_in (from VolumeVLE_L4_Advanced)0Inlet losses additional to wall friction
RealZeta_out (from VolumeVLE_L4_Advanced)0Outlet losses additional to wall friction
Units.DensityMassSpecific[geo.N_cv]rho_nom (from VolumeVLE_L4_Advanced)TILMedia.VLEFluid.Functions.density_phxi(medium, p_nom, h_nom)Nominal density
RealsuppFreqCorr (from VolumeVLE_L4_Advanced)if suppressHighFrequencyOscillations then 1 else 0
Fundamental Definitions
TILMedia.VLEFluid.Types.BaseVLEFluidmedium (from VolumeVLE_L4_Advanced)simCenter.fluid1Medium in the component
BooleanfrictionAtInlet (from VolumeVLE_L4_Advanced)falseTrue if pressure loss shall be located between first cell and inlet
BooleanfrictionAtOutlet (from VolumeVLE_L4_Advanced)falseTrue if pressure loss shall be located between last cell and outlet
Nominal Values
Units.Pressure[geo.N_cv]p_nom (from VolumeVLE_L4_Advanced)ones(geo.N_cv)*1e5Nominal pressure
Units.EnthalpyMassSpecific[geo.N_cv]h_nom (from VolumeVLE_L4_Advanced)ones(geo.N_cv)*1e5Nominal specific enthalpy for single tube
Units.MassFlowRatem_flow_nom (from VolumeVLE_L4_Advanced)100Nominal mass flow for single tube
Units.PressureDelta_p_nom (from VolumeVLE_L4_Advanced)1e4Nominal pressure loss w.r.t. all parallel tubes
Initialisation
IntegerinitOption (from VolumeVLE_L4_Advanced)1Type of initialisation
Units.EnthalpyMassSpecific[geo.N_cv]h_start (from VolumeVLE_L4_Advanced)ones(geo.N_cv)*800e3Initial specific enthalpy for single tube
Units.Pressure[geo.N_cv]p_start (from VolumeVLE_L4_Advanced)ones(geo.N_cv)*1e5Initial pressure
Units.MassFlowRate[geo.N_cv + 1]m_flow_start (from VolumeVLE_L4_Advanced)ones(geo.N_cv + 1)*100Initial mass flow rate
Units.MassFraction[medium.nc - 1]xi_start (from VolumeVLE_L4_Advanced)zeros(medium.nc - 1)Initial composition
Initialisation › Model Settings
BooleanuseHomotopy (from VolumeVLE_L4_Advanced)simCenter.useHomotopyTrue, if homotopy method is used during initialisation
Summary and Visualisation
BooleanshowExpertSummary (from VolumeVLE_L4_Advanced)simCenter.showExpertSummaryTrue, if a summary shall be shown, else false
BooleanshowData (from VolumeVLE_L4_Advanced)falseTrue, if a data port containing p,T,h,s,m_flow shall be shown, else false
BooleancontributeToCycleSummarysimCenter.contributeToCycleSummaryTrue if component shall contribute to automatic efficiency calculation
BooleanheatFlowIsLosstrueTrue if negative heat flow is a loss (not a process product)
Expert Settings
BooleansuppressHighFrequencyOscillations (from VolumeVLE_L4_Advanced)falseSuppress oscillations at frequencies greater than inverse travelling time of sound
RealpressureAdvCalc (from VolumeVLE_L4_Advanced)0Parameter for a method of calculation advective pressure drop using:|| 0:= upstream velocities | 1:= velocities in energy cells
Expert Settings › Mass Flow Stabilization
BooleanuseMeanEnthalpyAtInlet (from VolumeVLE_L4_Advanced)falseUse mean enthalpy at inlet, stabilises zero flows
BooleanuseMeanEnthalpyAtOutlet (from VolumeVLE_L4_Advanced)falseUse mean enthalpy at inlet, stabilises zero flows
BooleanadvectivePressureLoss (from VolumeVLE_L4_Advanced)true
BooleanlimitMassChange (from VolumeVLE_L4_Advanced)falseSet to true to limit time derivative of control volume mass. CAUTION: Precise short time dynamics is artificially changed! Can be useful if simulation stops in case of phase change.
RealmassChangeLimit (from VolumeVLE_L4_Advanced)10Limit abs(drhodt[I]/rho[I])=abs(der(mass[I])/mass[I])<= massChangeLimit
Geometry
Basics.Units.Lengthlength1Length of the pipe (one pass)
Basics.Units.Lengthdiameter_i0.1Inner diameter of the pipe
Basics.Units.Lengthz_in0.1Height of inlet above ground
Basics.Units.Lengthz_out0.1Height of outlet above ground
IntegerN_tubes1Number Of parallel pipes
IntegerN_passes1Number of passes of the tubes
Integerorientation0Main orientation of tube bundle (N_passes>1)
Discretisation
IntegerN_cv3Number of finite volumes
Basics.Units.Length[N_cv]Delta_xClaRa.Basics.Functions.GenerateGrid({0}, length*N_passes, N_cv)Discretisation scheme

Connectors

TypeNameDefaultDescription
ClaRa.Basics.Interfaces.FluidPortIninlet (from VolumeVLE_L4_Advanced)Inlet port
ClaRa.Basics.Interfaces.FluidPortOutoutlet (from VolumeVLE_L4_Advanced)Outlet port
ClaRa.Basics.Interfaces.HeatPort_a[geo.N_cv]heat (from VolumeVLE_L4_Advanced)
Basics.Interfaces.EyeOuteye

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
ClaRa.SimCentersimCenter (from VolumeVLE_L4_Advanced)
Summarysummary (from VolumeVLE_L4_Advanced)
Units.EnthalpyMassSpecific[geo.N_cv]h (from VolumeVLE_L4_Advanced)Cell enthalpy
Units.EnthalpyMassSpecifich_in (from VolumeVLE_L4_Advanced)
Units.EnthalpyMassSpecifich_out (from VolumeVLE_L4_Advanced)
Units.Mass[geo.N_cv]mass (from VolumeVLE_L4_Advanced)Mass of fluid in cells
Real[geo.N_cv]drhodt (from VolumeVLE_L4_Advanced)
Modelica.Units.SI.MassFraction[geo.N_cv,medium.nc - 1]xi (from VolumeVLE_L4_Advanced)Mass fraction
RealXi_flow (from VolumeVLE_L4_Advanced)Mass flow rate of fraction
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_inlet (from VolumeVLE_L4_Advanced)Inlet mass fraction of component
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_outlet (from VolumeVLE_L4_Advanced)Outlet mass fraction of component
Units.Power[geo.N_cv + 1]H_flow (from VolumeVLE_L4_Advanced)Enthalpy flow rate at cell borders
Units.MassFlowRate[geo.N_cv + 1]m_flow (from VolumeVLE_L4_Advanced)
Units.Velocity[geo.N_cv]w (from VolumeVLE_L4_Advanced)flow velocities within cells of energy model == flow velocities across cell borders of flow model
Units.Velocityw_inlet (from VolumeVLE_L4_Advanced)flow velocity at inlet
Units.Velocityw_outlet (from VolumeVLE_L4_Advanced)flow velocity at outlet
Units.Velocity[geo.N_cv + 1]w_FM (from VolumeVLE_L4_Advanced)flow velocities within cells of flow model == flow velocities across cell borders of energy model
Units.Velocity[geo.N_cv]w_up (from VolumeVLE_L4_Advanced)upstream flow velocities for calculation of advective pressure losses
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_ph[geo.N_cv]fluid (from VolumeVLE_L4_Advanced)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidInlet (from VolumeVLE_L4_Advanced)if useHomotopy then homotopy(inStream(inlet.h_outflow), h_in) else h_in
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidOutlet (from VolumeVLE_L4_Advanced)(outlet.h_outflow + inStream(outlet.h_outflow))/2
PressureLosspressureLoss (from VolumeVLE_L4_Advanced)Pressure loss model
HeatTransferheatTransfer (from VolumeVLE_L4_Advanced)heat transfer model
MechanicalEquilibriummechanicalEquilibrium (from VolumeVLE_L4_Advanced)Mechanical equilibrium model
Geometrygeo (from VolumeVLE_L4_Advanced)
ClaRa.Basics.Interfaces.Connected2SimCenterconnected2SimCenter

Revisions

For revisions please consult the html-documentation shipped with ClaRa.