modelPipeFlow_L4_Simple

A 1D tube-shaped control volume considering one-phase heat transfer in a straight pipe with static momentum balance and simple energy balance

Extends from TransiEnt.Components.Gas.VolumesValvesFittings.Base.VolumeRealGas_L4 (A 1D tube-shaped control volume considering one-phase heat transfer in a straight pipe with static momentum balance and simple energy balance), ClaRa.Basics.Icons.ComplexityLevel (Displays the complexity level inside model icon ), TransiEnt.Basics.Icons.PipeFlow_L4_Simple.

Information

1. Purpose of model

It is a modified version of the model ClaRa.Components.VolumesValvesFittings.Pipes.PipeFlowVLE_L4_Simple from ClaRa version 1.3.0. The model is documented there and here only the changes are described. It extends from TransiEnt.Components.Gas.VolumesValvesFittings.Base.VolumeRealGas_L4, the very most important equations are implemented and documented there.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

gasportIn: inlet for real gas

gasportOut: outet for real gas

heat: heat port

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

When using compositions, the number of finite volume elemts (N_cv) should be chosen in a way that one element ist about 1-2 km long. Otherwise the simulation is very slow.

8. Validation

(no validation or testing necessary)

9. References

copied and changed from ClaRa.Components.VolumesValvesFittings.Pipes.PipeFlow_L4_Simple.

10. Version History

Model created by Tom Lindemann (tom.lindemann@tuhh.de) in Jun 2015

Modified by Carsten Bode (c.bode@tuhh.de) in Oct 2015

Modified by Lisa Andresen (andresen@tuhh.de) in May 2016

Revised by Carsten Bode (c.bode@tuhh.de), Apr 2018 (updated to ClaRa 1.3.0)

Modified by Carsten Bode (c.bode@tuhh.de), Sep 2019 (merged constXi and varXi models)

Modified by Carsten Bode (c.bode@tuhh.de), May 2020 (added quasi-stationary equations and simplified equations for only dependent mass fractions)

Parameters

TypeNameDefaultDescription
Integer[:]dependentCompositionEntries (from VolumeRealGas_L4)if variableCompositionEntries[1] == 0 then 1:medium.nc else findSetDifference(1:medium.nc, variableCompositionEntries)Entries of medium vector which are supposed to be dependent on the variable entries
ClaRa.Basics.Units.DensityMassSpecific[geo.N_cv]rho_nom (from VolumeRealGas_L4)TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.density_phxi(medium, p_nom, h_nom, xi_nom)Nominal density
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmedium (from VolumeRealGas_L4)simCenter.gasModel1Medium in the component
BooleanconstantComposition (from VolumeRealGas_L4)simCenter.useConstCompInGasComptrue if composition of gas in the pipe is constant (xi_nom will be used)
Integer[:]variableCompositionEntries (from VolumeRealGas_L4){0}Entries of medium vector which are supposed to be completely variable
IntegermassBalance (from VolumeRealGas_L4)1Mass balance and species balance fomulation
SI.Pressurep_min_assert (from VolumeRealGas_L4)0Minimum pressure in component and ports below which the simulation terminates
SI.Pressurep_max_assert (from VolumeRealGas_L4)1000e5Maximum pressure in component and ports above which the simulation terminates
BooleanfrictionAtInlet (from VolumeRealGas_L4)falseTrue if pressure loss between first cell and inlet shall be considered
BooleanfrictionAtOutlet (from VolumeRealGas_L4)falseTrue if pressure loss between last cell and outlet shall be considered
Nominal Values
ClaRa.Basics.Units.Pressure[geo.N_cv]p_nom (from VolumeRealGas_L4)ones(geo.N_cv)*(simCenter.p_amb_const + simCenter.p_eff_2)Nominal pressure
ClaRa.Basics.Units.EnthalpyMassSpecific[geo.N_cv]h_nom (from VolumeRealGas_L4)ones(geo.N_cv)*(-1850)Nominal specific enthalpy for single tube
ClaRa.Basics.Units.MassFlowRatem_flow_nom (from VolumeRealGas_L4)1Nominal mass flow w.r.t. all parallel tubes
ClaRa.Basics.Units.PressureDifferenceDelta_p_nom (from VolumeRealGas_L4)1e4Nominal pressure loss w.r.t. all parallel tubes
ClaRa.Basics.Units.MassFraction[medium.nc - 1]xi_nom (from VolumeRealGas_L4)medium.xi_defaultNominal composition
Initialisation
IntegerinitOption (from VolumeRealGas_L4)0Type of initialisation
ClaRa.Basics.Units.EnthalpyMassSpecific[geo.N_cv]h_start (from VolumeRealGas_L4)TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.specificEnthalpy_pTxi(medium, p_start, T_start, xi_start)Initial specific enthalpy for single tube
ClaRa.Basics.Units.Pressure[geo.N_cv]p_start (from VolumeRealGas_L4)p_nomInitial pressure
ClaRa.Basics.Units.MassFraction[medium.nc - 1]xi_start (from VolumeRealGas_L4)xi_nomInitial composition for single tube
ClaRa.Basics.Units.MassFlowRate[geo.N_cv + 1]m_flow_start (from VolumeRealGas_L4)m_flow_nom*ones(geo.N_cv + 1)Initial mass flow rate
Modelica.Units.SI.Temperature[geo.N_cv]T_start (from VolumeRealGas_L4)ones(geo.N_cv)*simCenter.T_groundInitial temperature for single tube (used in calculation of h_start)
Initialisation › Model Settings
BooleanuseHomotopy (from VolumeRealGas_L4)simCenter.useHomotopytrue, if homotopy method is used during initialisation
Summary and Visualisation
BooleanshowExpertSummary (from VolumeRealGas_L4)simCenter.showExpertSummaryTrue, if an extended summary shall be shown, else false
BooleanshowData (from VolumeRealGas_L4)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)
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 (for N_cv=1 set frictionAtInlet=true or frictionAtOutlet=true)
ClaRa.Basics.Units.Length[N_cv]Delta_xClaRa.Basics.Functions.GenerateGrid({0}, length*N_passes, N_cv)Discretisation scheme

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn (from VolumeRealGas_L4)Inlet port
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut (from VolumeRealGas_L4)Outlet port
ClaRa.Basics.Interfaces.HeatPort_a[geo.N_cv]heat (from VolumeRealGas_L4)

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
TransiEnt.SimCentersimCenter (from VolumeRealGas_L4)
Summarysummary (from VolumeRealGas_L4)
ClaRa.Basics.Units.EnthalpyMassSpecific[geo.N_cv]h (from VolumeRealGas_L4)Cell enthalpy
ClaRa.Basics.Units.Temperature[geo.N_cv]T (from VolumeRealGas_L4)Cell temperature
PressureLosspressureLoss (from VolumeRealGas_L4)Pressure loss model
HeatTransferheatTransfer (from VolumeRealGas_L4)heat transfer model
Geometrygeo (from VolumeRealGas_L4)
MechanicalEquilibriummechanicalEquilibrium (from VolumeRealGas_L4)Mechanical equilibrium model
ClaRa.Basics.Interfaces.Connected2SimCenterconnected2SimCenter
TransiEnt.ModelStatisticsmodelStatistics
TransiEnt.Components.Statistics.Collectors.LocalCollectors.CollectCostsGeneralcollectCosts

Contents

NameDescription
CostSpecsGeneral