modelPipeFlowVLE_L4_Advanced_WH_VCM

Copy of PipeFlowVLE_L4_Advanced with adaptation of speed of sound according and vapour cavity model
Diagram of PipeFlowVLE_L4_Advanced_WH_VCM

Extends from ClaRa.Basics.ControlVolumes.FluidVolumes.VolumeVLE_L4_Advanced_WH_VCM (Copy of VolumeVLE_L4_Advanced with adaptation of speed of sound according and vapour cavity model), 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:

ClaRa development team, Copyright © 2017 - 2025.

References:

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

Remarks:

This component was developed for ClaRa library.

Acknowledgements:

CLA:

Parameters

TypeNameDefaultDescription
RealZeta_in (from VolumeVLE_L4_Advanced_WH_VCM)0Inlet losses additional to wall friction
RealZeta_out (from VolumeVLE_L4_Advanced_WH_VCM)0Outlet losses additional to wall friction
SI.DensityMassSpecific[geo.N_cv]rho_nom (from VolumeVLE_L4_Advanced_WH_VCM)TILMedia.VLEFluid.Functions.density_phxi(medium, p_nom, h_nom)Nominal density
SI.Temperature[geo.N_cv]T_start (from VolumeVLE_L4_Advanced_WH_VCM)TILMedia.VLEFluid.Functions.temperature_phxi(medium, p_start, h_start)Nominal Temperature
RealsuppFreqCorr (from VolumeVLE_L4_Advanced_WH_VCM)if suppressHighFrequencyOscillations then suppHighFreqCorr else 0
ClaRa.Basics.Units.TimeTau_T_ps (from VolumeVLE_L4_Advanced_WH_VCM)1e-4Time constant for pseudo state for temperature.
RealexportToFMUPreFactor (from VolumeVLE_L4_Advanced_WH_VCM)if exportToFMU then 1.0 else 0.0
RealuseStiffWallPreFactor (from VolumeVLE_L4_Advanced_WH_VCM)if useStiffWall then 1.0 else 0.0
RealuserDefinedSpeedOfSoundPreFactor (from VolumeVLE_L4_Advanced_WH_VCM)if userDefinedSpeedOfSound then 1.0 else 0.0
Fundamental Definitions
TILMedia.VLEFluid.Types.BaseVLEFluidmedium (from VolumeVLE_L4_Advanced_WH_VCM)simCenter.fluid1Medium in the component
BooleanfrictionAtInlet (from VolumeVLE_L4_Advanced_WH_VCM)falseTrue if pressure loss shall be located between first cell and inlet
BooleanfrictionAtOutlet (from VolumeVLE_L4_Advanced_WH_VCM)falseTrue if pressure loss shall be located between last cell and outlet
Nominal Values
SI.Pressure[geo.N_cv]p_nom (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv)*1e5Nominal pressure
SI.EnthalpyMassSpecific[geo.N_cv]h_nom (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv)*1e5Nominal specific enthalpy for single tube
SI.MassFlowRatem_flow_nom (from VolumeVLE_L4_Advanced_WH_VCM)100Nominal mass flow for single tube
SI.PressureDelta_p_nom (from VolumeVLE_L4_Advanced_WH_VCM)1e4Nominal pressure loss w.r.t. all parallel tubes
Initialisation
IntegerinitOption (from VolumeVLE_L4_Advanced_WH_VCM)1Type of initialisation
SI.EnthalpyMassSpecific[geo.N_cv]h_start (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv)*800e3Initial specific enthalpy for single tube
SI.Pressure[geo.N_cv]p_start (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv)*1e5Initial pressure
SI.MassFlowRate[geo.N_cv + 1]m_flow_start (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv + 1)*100Initial mass flow rate
SI.MassFraction[medium.nc - 1]xi_start (from VolumeVLE_L4_Advanced_WH_VCM)zeros(medium.nc - 1)Initial composition
Initialisation › Model Settings
BooleanuseHomotopy (from VolumeVLE_L4_Advanced_WH_VCM)simCenter.useHomotopyTrue, if homotopy method is used during initialisation
Summary and Visualisation
BooleanshowExpertSummary (from VolumeVLE_L4_Advanced_WH_VCM)simCenter.showExpertSummaryTrue, if a summary shall be shown, else false
BooleanshowData (from VolumeVLE_L4_Advanced_WH_VCM)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_WH_VCM)falseSuppress oscillations at frequencies greater than inverse travelling time of sound
RealsuppHighFreqCorr (from VolumeVLE_L4_Advanced_WH_VCM)1Damping factor. Increase it will increase damping
RealpressureAdvCalc (from VolumeVLE_L4_Advanced_WH_VCM)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_WH_VCM)falseUse mean enthalpy at inlet, stabilises zero flows
BooleanuseMeanEnthalpyAtOutlet (from VolumeVLE_L4_Advanced_WH_VCM)falseUse mean enthalpy at inlet, stabilises zero flows
BooleanadvectivePressureLoss (from VolumeVLE_L4_Advanced_WH_VCM)true
BooleanlimitMassChange (from VolumeVLE_L4_Advanced_WH_VCM)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_WH_VCM)10Limit abs(drhodt[I]/rho[I])=abs(der(mass[I])/mass[I])<= massChangeLimit
Water Hammer › FMU export
BooleanexportToFMU (from VolumeVLE_L4_Advanced_WH_VCM)falseTrue if user defined media data shall not change structure | false else
Water Hammer › User Defined Physical Properties
BooleanuseStiffWall (from VolumeVLE_L4_Advanced_WH_VCM)trueTrue for stiff walls | False to account for elasticity of wall material
BooleanuserDefinedSpeedOfSound (from VolumeVLE_L4_Advanced_WH_VCM)falseTrue for user definition of speed of sound
SI.ElasticityModuleE (from VolumeVLE_L4_Advanced_WH_VCM)120e9Young's modulus
Realmy (from VolumeVLE_L4_Advanced_WH_VCM)0.34Possion's ratio
SI.Lengthe (from VolumeVLE_L4_Advanced_WH_VCM)0.00163Wall thickness
SI.Velocitya_def (from VolumeVLE_L4_Advanced_WH_VCM)1319User defined speed of sound
BooleanuserDefinedDynamicViscosity (from VolumeVLE_L4_Advanced_WH_VCM)falseTrue for user definition of speed of sound
SI.DynamicViscosity[geo.N_cv + 1]eta_FM_def (from VolumeVLE_L4_Advanced_WH_VCM)ones(geo.N_cv + 1)*1e-3User defined dynamic viscosity
BooleanuseUnsteadyFriction (from VolumeVLE_L4_Advanced_WH_VCM)trueTrue for Unsteady Friction
Geometry
ClaRa.Basics.Units.Lengthlength1Length of the pipe (one pass)
ClaRa.Basics.Units.Lengthdiameter_i0.1Inner diameter of the pipe
ClaRa.Basics.Units.Lengthz_in0.1Height of inlet above ground
ClaRa.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
ClaRa.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_WH_VCM)Inlet port
ClaRa.Basics.Interfaces.FluidPortOutoutlet (from VolumeVLE_L4_Advanced_WH_VCM)Outlet port
ClaRa.Basics.Interfaces.HeatPort_a[geo.N_cv]heat (from VolumeVLE_L4_Advanced_WH_VCM)
ClaRa.Basics.Interfaces.EyeOuteye

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
ClaRa.SimCentersimCenter (from VolumeVLE_L4_Advanced_WH_VCM)
Summarysummary (from VolumeVLE_L4_Advanced_WH_VCM)
SI.EnthalpyMassSpecific[geo.N_cv]h (from VolumeVLE_L4_Advanced_WH_VCM)Cell enthalpy
SI.EnthalpyMassSpecifich_in (from VolumeVLE_L4_Advanced_WH_VCM)
SI.EnthalpyMassSpecifich_out (from VolumeVLE_L4_Advanced_WH_VCM)
SI.Temperature[geo.N_cv]T_ps (from VolumeVLE_L4_Advanced_WH_VCM)Temperature pseudo state
SI.Mass[geo.N_cv]mass (from VolumeVLE_L4_Advanced_WH_VCM)Mass of fluid in cells
Real[geo.N_cv]drhodt (from VolumeVLE_L4_Advanced_WH_VCM)
Modelica.Units.SI.MassFraction[geo.N_cv,medium.nc - 1]xi (from VolumeVLE_L4_Advanced_WH_VCM)Mass fraction
RealXi_flow (from VolumeVLE_L4_Advanced_WH_VCM)Mass flow rate of fraction
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_inlet (from VolumeVLE_L4_Advanced_WH_VCM)Inlet mass fraction of component
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_outlet (from VolumeVLE_L4_Advanced_WH_VCM)Outlet mass fraction of component
SI.Power[geo.N_cv + 1]H_flow (from VolumeVLE_L4_Advanced_WH_VCM)Enthalpy flow rate at cell borders
SI.MassFlowRate[geo.N_cv + 1]m_flow (from VolumeVLE_L4_Advanced_WH_VCM)
SI.Velocity[geo.N_cv]w (from VolumeVLE_L4_Advanced_WH_VCM)flow velocities within cells of energy model == flow velocities across cell borders of flow model
SI.Velocityw_inlet (from VolumeVLE_L4_Advanced_WH_VCM)flow velocity at inlet
SI.Velocityw_outlet (from VolumeVLE_L4_Advanced_WH_VCM)flow velocity at outlet
SI.Velocity[geo.N_cv + 1]w_FM (from VolumeVLE_L4_Advanced_WH_VCM)flow velocities within cells of flow model == flow velocities across cell borders of energy model
SI.Velocity[geo.N_cv]w_up (from VolumeVLE_L4_Advanced_WH_VCM)upstream flow velocities for calculation of advective pressure losses
SI.Pressure[geo.N_cv]p_sat (from VolumeVLE_L4_Advanced_WH_VCM)Saturation pressure
SI.Volume[geo.N_cv]volume (from VolumeVLE_L4_Advanced_WH_VCM)Variable volume of CV
SI.Volume[2]volume_cavity (from VolumeVLE_L4_Advanced_WH_VCM)Volume of cavity in first an last CV
SI.Volume[2]volume_cavity_help (from VolumeVLE_L4_Advanced_WH_VCM)Volume of cavity in first and last CV
Real[geo.N_cv]K (from VolumeVLE_L4_Advanced_WH_VCM)Bulk modulus
RealK_inlet (from VolumeVLE_L4_Advanced_WH_VCM)Inlet bulk modulus
RealK_outlet (from VolumeVLE_L4_Advanced_WH_VCM)Inlet bulk modulus
SI.PressureDifference[geo.N_cv + 1]Delta_p_u (from VolumeVLE_L4_Advanced_WH_VCM)Pressure loss due to unsteady friction
Real[geo.N_cv + 1]Re (from VolumeVLE_L4_Advanced_WH_VCM)Reynolds Number
Real[geo.N_cv + 1]k_B (from VolumeVLE_L4_Advanced_WH_VCM)Brunone friction factor
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_ph[geo.N_cv]fluid (from VolumeVLE_L4_Advanced_WH_VCM)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidInlet (from VolumeVLE_L4_Advanced_WH_VCM)if useHomotopy then homotopy(inStream(inlet.h_outflow), h_in) else h_in
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidOutlet (from VolumeVLE_L4_Advanced_WH_VCM)(outlet.h_outflow + inStream(outlet.h_outflow))/2
PressureLosspressureLoss (from VolumeVLE_L4_Advanced_WH_VCM)Pressure loss model
HeatTransferheatTransfer (from VolumeVLE_L4_Advanced_WH_VCM)heat transfer model
MechanicalEquilibriummechanicalEquilibrium (from VolumeVLE_L4_Advanced_WH_VCM)Mechanical equilibrium model
Geometrygeo (from VolumeVLE_L4_Advanced_WH_VCM)
ClaRa.Basics.Interfaces.Connected2SimCenterconnected2SimCenter

Revisions

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