modelPipeFlow_L4_Simple
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
| Type | Name | Default | Description |
|---|---|---|---|
| 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.BaseVLEFluid | medium (from VolumeRealGas_L4) | simCenter.gasModel1 | Medium in the component |
| Boolean | constantComposition (from VolumeRealGas_L4) | simCenter.useConstCompInGasComp | true 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 |
| Integer | massBalance (from VolumeRealGas_L4) | 1 | Mass balance and species balance fomulation |
| SI.Pressure | p_min_assert (from VolumeRealGas_L4) | 0 | Minimum pressure in component and ports below which the simulation terminates |
| SI.Pressure | p_max_assert (from VolumeRealGas_L4) | 1000e5 | Maximum pressure in component and ports above which the simulation terminates |
| Boolean | frictionAtInlet (from VolumeRealGas_L4) | false | True if pressure loss between first cell and inlet shall be considered |
| Boolean | frictionAtOutlet (from VolumeRealGas_L4) | false | True 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.MassFlowRate | m_flow_nom (from VolumeRealGas_L4) | 1 | Nominal mass flow w.r.t. all parallel tubes |
| ClaRa.Basics.Units.PressureDifference | Delta_p_nom (from VolumeRealGas_L4) | 1e4 | Nominal pressure loss w.r.t. all parallel tubes |
| ClaRa.Basics.Units.MassFraction[medium.nc - 1] | xi_nom (from VolumeRealGas_L4) | medium.xi_default | Nominal composition |
| Initialisation | |||
| Integer | initOption (from VolumeRealGas_L4) | 0 | Type 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_nom | Initial pressure |
| ClaRa.Basics.Units.MassFraction[medium.nc - 1] | xi_start (from VolumeRealGas_L4) | xi_nom | Initial 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_ground | Initial temperature for single tube (used in calculation of h_start) |
| Initialisation › Model Settings | |||
| Boolean | useHomotopy (from VolumeRealGas_L4) | simCenter.useHomotopy | true, if homotopy method is used during initialisation |
| Summary and Visualisation | |||
| Boolean | showExpertSummary (from VolumeRealGas_L4) | simCenter.showExpertSummary | True, if an extended summary shall be shown, else false |
| Boolean | showData (from VolumeRealGas_L4) | false | True, if a data port containing p,T,h,s,m_flow shall be shown, else false |
| Boolean | contributeToCycleSummary | simCenter.contributeToCycleSummary | True if component shall contribute to automatic efficiency calculation |
| Boolean | heatFlowIsLoss | true | True if negative heat flow is a loss (not a process product) |
| Geometry | |||
| ClaRa.Basics.Units.Length | length | 1 | Length of the pipe (one pass) |
| ClaRa.Basics.Units.Length | diameter_i | 0.1 | Inner diameter of the pipe |
| ClaRa.Basics.Units.Length | z_in | 0.1 | Height of inlet above ground |
| ClaRa.Basics.Units.Length | z_out | 0.1 | Height of outlet above ground |
| Integer | N_tubes | 1 | Number Of parallel pipes |
| Integer | N_passes | 1 | Number of passes of the tubes |
| Integer | orientation | 0 | Main orientation of tube bundle (N_passes>1) |
| Discretisation | |||
| Integer | N_cv | 3 | Number of finite volumes (for N_cv=1 set frictionAtInlet=true or frictionAtOutlet=true) |
| ClaRa.Basics.Units.Length[N_cv] | Delta_x | ClaRa.Basics.Functions.GenerateGrid({0}, length*N_passes, N_cv) | Discretisation scheme |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | gasPortIn (from VolumeRealGas_L4) | Inlet port | |
| TransiEnt.Basics.Interfaces.Gas.RealGasPortOut | gasPortOut (from VolumeRealGas_L4) | Outlet port | |
| ClaRa.Basics.Interfaces.HeatPort_a[geo.N_cv] | heat (from VolumeRealGas_L4) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| String | complexity (from ComplexityLevel) | "??" | |
| TransiEnt.SimCenter | simCenter (from VolumeRealGas_L4) | ||
| Summary | summary (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 | |
| PressureLoss | pressureLoss (from VolumeRealGas_L4) | Pressure loss model | |
| HeatTransfer | heatTransfer (from VolumeRealGas_L4) | heat transfer model | |
| Geometry | geo (from VolumeRealGas_L4) | ||
| MechanicalEquilibrium | mechanicalEquilibrium (from VolumeRealGas_L4) | Mechanical equilibrium model | |
| ClaRa.Basics.Interfaces.Connected2SimCenter | connected2SimCenter | ||
| TransiEnt.ModelStatistics | modelStatistics | ||
| TransiEnt.Components.Statistics.Collectors.LocalCollectors.CollectCostsGeneral | collectCosts |
Contents
| Name | Description |
|---|---|