modelPipeFlow_L4_Simple_isoth

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

Extends from TransiEnt.Basics.Icons.PipeFlow_L4_Simple.

Information

1. Purpose of model

This model is an isothermal pipe with a given surrounding temperature.

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

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

Use of this model can lead to warnings like "Differentiating (if pipe_xy.iCom.m_flow_in[1] > 0.0 then junction_beforePipe.gasBulk.xi[1] else junction_beforePipe.gasBulk.xi[1]) under the assumption that it is continuous at switching.". This can be ignored as long as the composition is set to the same value in every component (even in sinks etc.).

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History

Created by Carsten Bode (c.bode@tuhh.de), Sep 2019

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

Parameters

TypeNameDefaultDescription
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1Medium in the component
BooleanconstantCompositionsimCenter.useConstCompInGasComptrue if composition of gas in the pipe is constant (xi_nom will be used)
Integer[:]variableCompositionEntriessimCenter.variableCompositionEntriesGasPipesEntries of medium vector which are supposed to be completely variable
IntegermassBalancesimCenter.massBalanceGasPipesMass balance and species balance fomulation
BooleanfrictionAtInletfalseTrue if pressure loss between first cell and inlet shall be considered
BooleanfrictionAtOutletfalseTrue if pressure loss between last cell and outlet shall be considered
SI.TemperatureT_groundsimCenter.T_groundTemperature of the surrounding ground
Nominal Values
ClaRa.Basics.Units.Pressure[N_cv]p_nomones(N_cv)*1e5Nominal pressure
ClaRa.Basics.Units.EnthalpyMassSpecific[N_cv]h_nomones(N_cv)*1e5Nominal specific enthalpy for single tube
ClaRa.Basics.Units.MassFlowRatem_flow_nom100Nominal mass flow w.r.t. all parallel tubes
ClaRa.Basics.Units.PressureDifferenceDelta_p_nom1e4Nominal pressure loss w.r.t. all parallel tubes
ClaRa.Basics.Units.MassFraction[medium.nc - 1]xi_nommedium.xi_defaultNominal composition
Geometry
ClaRa.Basics.Units.Lengthlength10e3Length of the pipe (one pass)
ClaRa.Basics.Units.Lengthdiameter_i0.5Inner 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
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
Initialisation
IntegerinitOptionsimCenter.initOptionGasPipesType of initialization
ClaRa.Basics.Units.EnthalpyMassSpecific[N_cv]h_startTILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.specificEnthalpy_pTxi(medium, p_start, T_start, xi_nom)Initial specific enthalpy for single tube
ClaRa.Basics.Units.Pressure[N_cv]p_startones(N_cv)*(simCenter.p_eff_2 + simCenter.p_amb_const)Initial pressure
ClaRa.Basics.Units.MassFraction[medium.nc - 1]xi_startxi_nomInitial composition for single tube
ClaRa.Basics.Units.MassFlowRate[N_cv + 1]m_flow_startones(N_cv + 1)*0.01Initial mass flow rate
SI.Temperature[N_cv]T_startones(N_cv)*T_groundInitial temperature for single tube (used in calculation of h_start)
Initialisation › Model Settings
BooleanuseHomotopysimCenter.useHomotopytrue, if homotopy method is used during initialisation
Summary and Visualisation
BooleanshowExpertSummarysimCenter.showExpertSummaryTrue, if an extended summary shall be shown, else false
BooleanshowDatafalseTrue, 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)

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortInInlet port
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOutOutlet port

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
TransiEnt.Components.Gas.VolumesValvesFittings.Pipes.PipeFlow_L4_Simplepipe
Modelica.Blocks.Sources.RealExpressionrealExpression
Storage.Gas.Base.ConstantHTOuterTemperature_L2ht

Contents

NameDescription
PressureLoss
MechanicalEquilibrium
CostSpecsGeneral