modelVolumeVLE_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.

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:

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_in0Inlet losses additional to wall friction
RealZeta_out0Outlet losses additional to wall friction
Units.DensityMassSpecific[geo.N_cv]rho_nomTILMedia.VLEFluid.Functions.density_phxi(medium, p_nom, h_nom)Nominal density
RealsuppFreqCorrif suppressHighFrequencyOscillations then 1 else 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
Units.Pressure[geo.N_cv]p_nomones(geo.N_cv)*1e5Nominal pressure
Units.EnthalpyMassSpecific[geo.N_cv]h_nomones(geo.N_cv)*1e5Nominal specific enthalpy for single tube
Units.MassFlowRatem_flow_nom100Nominal mass flow for single tube
Units.PressureDelta_p_nom1e4Nominal pressure loss w.r.t. all parallel tubes
Initialisation
IntegerinitOption1Type of initialisation
Units.EnthalpyMassSpecific[geo.N_cv]h_startones(geo.N_cv)*800e3Initial specific enthalpy for single tube
Units.Pressure[geo.N_cv]p_startones(geo.N_cv)*1e5Initial pressure
Units.MassFlowRate[geo.N_cv + 1]m_flow_startones(geo.N_cv + 1)*100Initial mass flow rate
Units.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
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

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
Units.EnthalpyMassSpecific[geo.N_cv]hCell enthalpy
Units.EnthalpyMassSpecifich_in
Units.EnthalpyMassSpecifich_out
Units.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
Units.Power[geo.N_cv + 1]H_flowEnthalpy flow rate at cell borders
Units.MassFlowRate[geo.N_cv + 1]m_flow
Units.Velocity[geo.N_cv]wflow velocities within cells of energy model == flow velocities across cell borders of flow model
Units.Velocityw_inletflow velocity at inlet
Units.Velocityw_outletflow velocity at outlet
Units.Velocity[geo.N_cv + 1]w_FMflow velocities within cells of flow model == flow velocities across cell borders of energy model
Units.Velocity[geo.N_cv]w_upupstream flow velocities for calculation of advective pressure losses
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.