modelVolumeVLE_L4_Advanced_WH_VCM

Copy of VolumeVLE_L4_Advanced with adaptation of speed of sound according and vapour cavity model

Extends from ClaRa.Basics.Icons.Volume_L4, ClaRa.Basics.Icons.ComplexityLevel (Displays the complexity level inside model icon ).

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_in0Inlet losses additional to wall friction
RealZeta_out0Outlet losses additional to wall friction
SI.DensityMassSpecific[geo.N_cv]rho_nomTILMedia.VLEFluid.Functions.density_phxi(medium, p_nom, h_nom)Nominal density
SI.Temperature[geo.N_cv]T_startTILMedia.VLEFluid.Functions.temperature_phxi(medium, p_start, h_start)Nominal Temperature
RealsuppFreqCorrif suppressHighFrequencyOscillations then suppHighFreqCorr else 0
ClaRa.Basics.Units.TimeTau_T_ps1e-4Time constant for pseudo state for temperature.
RealexportToFMUPreFactorif exportToFMU then 1.0 else 0.0
RealuseStiffWallPreFactorif useStiffWall then 1.0 else 0.0
RealuserDefinedSpeedOfSoundPreFactorif userDefinedSpeedOfSound then 1.0 else 0.0
Fundamental Definitions
TILMedia.VLEFluid.Types.BaseVLEFluidmediumsimCenter.fluid1Medium in the component
BooleanfrictionAtInletfalseTrue if pressure loss shall be located between first cell and inlet
BooleanfrictionAtOutletfalseTrue if pressure loss shall be located between last cell and outlet
Nominal Values
SI.Pressure[geo.N_cv]p_nomones(geo.N_cv)*1e5Nominal pressure
SI.EnthalpyMassSpecific[geo.N_cv]h_nomones(geo.N_cv)*1e5Nominal specific enthalpy for single tube
SI.MassFlowRatem_flow_nom100Nominal mass flow for single tube
SI.PressureDelta_p_nom1e4Nominal pressure loss w.r.t. all parallel tubes
Initialisation
IntegerinitOption1Type of initialisation
SI.EnthalpyMassSpecific[geo.N_cv]h_startones(geo.N_cv)*800e3Initial specific enthalpy for single tube
SI.Pressure[geo.N_cv]p_startones(geo.N_cv)*1e5Initial pressure
SI.MassFlowRate[geo.N_cv + 1]m_flow_startones(geo.N_cv + 1)*100Initial mass flow rate
SI.MassFraction[medium.nc - 1]xi_startzeros(medium.nc - 1)Initial composition
Initialisation › Model Settings
BooleanuseHomotopysimCenter.useHomotopyTrue, if homotopy method is used during initialisation
Summary and Visualisation
BooleanshowExpertSummarysimCenter.showExpertSummaryTrue, if a summary shall be shown, else false
BooleanshowDatafalseTrue, if a data port containing p,T,h,s,m_flow shall be shown, else false
Expert Settings
BooleansuppressHighFrequencyOscillationsfalseSuppress oscillations at frequencies greater than inverse travelling time of sound
RealsuppHighFreqCorr1Damping factor. Increase it will increase damping
RealpressureAdvCalc0Parameter for a method of calculation advective pressure drop using:|| 0:= upstream velocities | 1:= velocities in energy cells
Expert Settings › Mass Flow Stabilization
BooleanuseMeanEnthalpyAtInletfalseUse mean enthalpy at inlet, stabilises zero flows
BooleanuseMeanEnthalpyAtOutletfalseUse mean enthalpy at inlet, stabilises zero flows
BooleanadvectivePressureLosstrue
BooleanlimitMassChangefalseSet 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.
RealmassChangeLimit10Limit abs(drhodt[I]/rho[I])=abs(der(mass[I])/mass[I])<= massChangeLimit
Water Hammer › FMU export
BooleanexportToFMUfalseTrue if user defined media data shall not change structure | false else
Water Hammer › User Defined Physical Properties
BooleanuseStiffWalltrueTrue for stiff walls | False to account for elasticity of wall material
BooleanuserDefinedSpeedOfSoundfalseTrue for user definition of speed of sound
SI.ElasticityModuleE120e9Young's modulus
Realmy0.34Possion's ratio
SI.Lengthe0.00163Wall thickness
SI.Velocitya_def1319User defined speed of sound
BooleanuserDefinedDynamicViscosityfalseTrue for user definition of speed of sound
SI.DynamicViscosity[geo.N_cv + 1]eta_FM_defones(geo.N_cv + 1)*1e-3User defined dynamic viscosity
BooleanuseUnsteadyFrictiontrueTrue for Unsteady Friction

Connectors

TypeNameDefaultDescription
ClaRa.Basics.Interfaces.FluidPortIninletInlet port
ClaRa.Basics.Interfaces.FluidPortOutoutletOutlet port
ClaRa.Basics.Interfaces.HeatPort_a[geo.N_cv]heat

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
ClaRa.SimCentersimCenter
Summarysummary
SI.EnthalpyMassSpecific[geo.N_cv]hCell enthalpy
SI.EnthalpyMassSpecifich_in
SI.EnthalpyMassSpecifich_out
SI.Temperature[geo.N_cv]T_psTemperature pseudo state
SI.Mass[geo.N_cv]massMass of fluid in cells
Real[geo.N_cv]drhodt
Modelica.Units.SI.MassFraction[geo.N_cv,medium.nc - 1]xiMass fraction
RealXi_flowMass flow rate of fraction
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_inletInlet mass fraction of component
Modelica.Units.SI.MassFraction[medium.nc - 1]xi_outletOutlet mass fraction of component
SI.Power[geo.N_cv + 1]H_flowEnthalpy flow rate at cell borders
SI.MassFlowRate[geo.N_cv + 1]m_flow
SI.Velocity[geo.N_cv]wflow velocities within cells of energy model == flow velocities across cell borders of flow model
SI.Velocityw_inletflow velocity at inlet
SI.Velocityw_outletflow velocity at outlet
SI.Velocity[geo.N_cv + 1]w_FMflow velocities within cells of flow model == flow velocities across cell borders of energy model
SI.Velocity[geo.N_cv]w_upupstream flow velocities for calculation of advective pressure losses
SI.Pressure[geo.N_cv]p_satSaturation pressure
SI.Volume[geo.N_cv]volumeVariable volume of CV
SI.Volume[2]volume_cavityVolume of cavity in first an last CV
SI.Volume[2]volume_cavity_helpVolume of cavity in first and last CV
Real[geo.N_cv]KBulk modulus
RealK_inletInlet bulk modulus
RealK_outletInlet bulk modulus
SI.PressureDifference[geo.N_cv + 1]Delta_p_uPressure loss due to unsteady friction
Real[geo.N_cv + 1]ReReynolds Number
Real[geo.N_cv + 1]k_BBrunone friction factor
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_ph[geo.N_cv]fluid
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidInletif useHomotopy then homotopy(inStream(inlet.h_outflow), h_in) else h_in
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidOutlet(outlet.h_outflow + inStream(outlet.h_outflow))/2
PressureLosspressureLossPressure loss model
HeatTransferheatTransferheat transfer model
MechanicalEquilibriummechanicalEquilibriumMechanical equilibrium model
Geometrygeo

Contents

NameDescription
Outline
Wall_L4
Summary
PressureLoss
HeatTransfer
Geometry
MechanicalEquilibrium

Revisions

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