modelPipe

Pipe model. Extends form Clara TubeBundle_L1_TML component
Diagram of Pipe

Extends from ClaRa.Components.VolumesValvesFittings.Pipes.PipeFlowVLE_L1_TML (Simple tube model based on transmission line equations. Can choose between Modelica and ClaRa Delay implementation.).

Information

1. Purpose of model

A simple model of a pipe

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

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

inlet:fluidPortIn

outlet: fluidportOut

heat: heat port

eye

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

(no remarks)

8. Validation

(no validation or testing necessary)

9. References

(no remarks)

10. Version History

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Lengthlength (from PipeFlowVLE_L1_TML)10|Geometry|Length of the pipe
Modelica.Units.SI.Lengthdiameter_i (from PipeFlowVLE_L1_TML)0.5|Geometry|Inner diameter of the pipe
Modelica.Units.SI.Lengthz_in (from PipeFlowVLE_L1_TML)0.1|Geometry|height of inlet above ground
Modelica.Units.SI.Lengthz_out (from PipeFlowVLE_L1_TML)0.1|Geometry|height of outlet above ground
IntegerN_tubes (from PipeFlowVLE_L1_TML)1|Geometry|Number Of parallel pipes
Modelica.Units.SI.AreaA_cross (from PipeFlowVLE_L1_TML)Modelica.Constants.pi/4*diameter_i^2*N_tubescross area of volume elements
RealS (from PipeFlowVLE_L1_TML)Modelica.Constants.pi*diameter_i*N_tubesShape factor of pipe wall for heat conduction
IntegerN_cv (from PipeFlowVLE_L1_TML)1|Discretisation|number of subdivisions of tube wall
IntegerN_wall (from PipeFlowVLE_L1_TML)N_cvnumber of subdivisions for wall temperature
Modelica.Units.SI.Length[N_wall]Delta_x (from PipeFlowVLE_L1_TML)ones(N_wall)*length/N_wallLength of heated wall section
IntegerN_temp (from PipeFlowVLE_L1_TML)2*N_wall + 1number of tempratures to be computed
BooleanuseConstantMediaData (from PipeFlowVLE_L1_TML)false|Media Data|Use of constant media data
Modelica.Units.SI.MassFlowRatem_flow_nom (from PipeFlowVLE_L1_TML)10|Physical Effects|Linear Pressure Loss|Nominal mass flow w.r.t. all parallel tubes
Modelica.Units.SI.PressureDelta_p_nom (from PipeFlowVLE_L1_TML)1e3|Physical Effects|Linear Pressure Loss|Pressure loss over pipe length length at nominal mass flow w.r.t. all parallel tubes
Modelica.Units.SI.PressureDelta_p_grav_start (from PipeFlowVLE_L1_TML)rho_start*g_n*(z_out - z_in)Pressure loss over pipe length length at nominal operation point
BooleanadiabaticWall (from PipeFlowVLE_L1_TML)true|Physical Effects|Heat Transfer|set true if pipe is adiabatic
Modelica.Units.SI.FrequencyF (from PipeFlowVLE_L1_TML)(Delta_p_nom*A_cross)/(m_flow_nom*length)Friction coefficient
BooleanuseHomotopy (from PipeFlowVLE_L1_TML)simCenter.useHomotopy|Initialisation|Model Settings|True, if homotopy method is used during initialisation
Modelica.Units.SI.SpecificEnthalpyh_start (from PipeFlowVLE_L1_TML)TILMedia.VLEFluid.MixtureCompatible.Functions.liquidSpecificEnthalpy_pTxi(medium, p_start, simCenter.T_amb_start)|Initialisation|Initial Medium Properties|Initial averaged fluid specific enthalpy
Modelica.Units.SI.Pressurep_start (from PipeFlowVLE_L1_TML)(p_in_start + p_out_start)/2|Initialisation|Initial Medium Properties|Initial averaged fluid pressure
Modelica.Units.SI.Pressurep_in_start (from PipeFlowVLE_L1_TML)simCenter.p_amb_start|Initialisation|Initial Medium Properties|Initial inlet pressure
Modelica.Units.SI.Pressurep_out_start (from PipeFlowVLE_L1_TML)simCenter.p_amb_start|Initialisation|Initial Medium Properties|Initial outlet pressure
Modelica.Units.SI.Densityrho_start (from PipeFlowVLE_L1_TML)TILMedia.VLEFluid.MixtureCompatible.Functions.density_phxi(medium, p_start, h_start)Initial fluid density
BooleanshowExpertSummary (from PipeFlowVLE_L1_TML)simCenter.showExpertSummary|Summary and Visualisation||True, if an extended summary shall be shown, else false
BooleanshowData (from PipeFlowVLE_L1_TML)false|Summary and Visualisation||True, if a data port containing p,T,h,s,m_flow shall be shown, else false
BooleanuseClaRaDelay (from PipeFlowVLE_L1_TML)simCenter.useClaRaDelay|Expert Settings|Delay Function|True for using ClaRa delay implementation / false for built in Modelica delay
Realkappa (from PipeFlowVLE_L1_TML)1.25|Expert Settings|Transmission Line Settings|TML pFrequency approximation
Realf_ps (from PipeFlowVLE_L1_TML)0.01|Expert Settings|Transmission Line Settings|Speed factor for pseudo state fluid properties averaging
IntegernumDelays (from PipeFlowVLE_L1_TML)N_wall + N_temp + 13
Modelica.Units.SI.Pressurep_L_init (from PipeFlowVLE_L1_TML)Initial pressure at outlet: p_out = p_in_init + dp_L
Modelica.Units.SI.Pressurep_0_init (from PipeFlowVLE_L1_TML)Initial pressure at inlet: p_in = p_out_init + dp_0
Modelica.Units.SI.VolumeFlowRateV_flow_start (from PipeFlowVLE_L1_TML)Initial volume flow at inlet
Media Data
TILMedia.VLEFluid.Types.BaseVLEFluidmedium (from PipeFlowVLE_L1_TML)simCenter.fluid1Medium in the component
Modelica.Units.SI.SpecificHeatCapacitycp_const (from PipeFlowVLE_L1_TML)4200Constant heat capacity in pipe
Modelica.Units.SI.Densityrho_const (from PipeFlowVLE_L1_TML)985Constant fluid density in pipe
Modelica.Units.SI.Velocitya_const (from PipeFlowVLE_L1_TML)1500Constant speed of sound in pipe
Physical Effects › Heat Transfer
Realalpha (from PipeFlowVLE_L1_TML)10
Summary and Visualisation
BooleancontributeToCycleSummary (from PipeFlowVLE_L1_TML)simCenter.contributeToCycleSummaryTrue if component shall contribute to automatic efficiency calculation
BooleanheatFlowIsLoss (from PipeFlowVLE_L1_TML)trueTrue if negative heat flow is a loss (not a process product)
Expert Settings › Delay Function
RealMaxSimTime (from PipeFlowVLE_L1_TML)simCenter.MaxSimTimeMaximum time for simulation, must be set for Modelica delay blocks with variable delay time if simCenter.useClaRaDelay==true

Connectors

TypeNameDefaultDescription
ClaRa.Basics.Interfaces.FluidPortIninlet (from PipeFlowVLE_L1_TML)Inlet port
ClaRa.Basics.Interfaces.FluidPortOutoutlet (from PipeFlowVLE_L1_TML)Outlet port
ClaRa.Basics.Interfaces.HeatPort_a[N_wall]heat (from PipeFlowVLE_L1_TML)
ClaRa.Basics.Interfaces.EyeOuteye (from PipeFlowVLE_L1_TML)

Components

TypeNameDefaultDescription
Stringcomplexity (from ComplexityLevel)"??"
ClaRa.SimCentersimCenter (from PipeFlowVLE_L1_TML)
ClaRa.Basics.Interfaces.Connected2SimCenterconnected2SimCenter (from PipeFlowVLE_L1_TML)
Summarysummary (from PipeFlowVLE_L1_TML)
RealT_0 (from PipeFlowVLE_L1_TML)Temperature at inlet
ClaRa.Basics.Units.TemperatureT_L (from PipeFlowVLE_L1_TML)Temperature at outlet
ClaRa.Basics.Units.Temperature[N_temp]T (from PipeFlowVLE_L1_TML)Temperature at cell borders
ClaRa.Basics.Units.TemperatureT_L_const (from PipeFlowVLE_L1_TML)Temperature at outlet
ClaRa.Basics.Units.Temperature[N_wall]T_wall (from PipeFlowVLE_L1_TML)Outer wall temperatures
Realdcpdt (from PipeFlowVLE_L1_TML)
Modelica.Units.SI.SpecificHeatCapacitycp (from PipeFlowVLE_L1_TML)Time averaged heat capacity in pipe
Modelica.Units.SI.SpecificHeatCapacitycp_ps (from PipeFlowVLE_L1_TML)Pseudo state for time averaged heat capacity in pipe
Modelica.Units.SI.Pressurep_in (from PipeFlowVLE_L1_TML)Pressure at inlet
Modelica.Units.SI.Pressurep_out (from PipeFlowVLE_L1_TML)Pressure at outlet
Modelica.Units.SI.PressureDelta_p_fric (from PipeFlowVLE_L1_TML)p_in - p_outPressure difference due to friction
Modelica.Units.SI.PressureDelta_p_grav (from PipeFlowVLE_L1_TML)Pressure drop due to gravity
Modelica.Units.SI.PressureDelta_p_in (from PipeFlowVLE_L1_TML)Pressure at inlet: p_in = p_nom + dp_0
Modelica.Units.SI.PressureDelta_p_out (from PipeFlowVLE_L1_TML)Pressure at outlet: p_out = p_nom - R*q_nom + dp_L
Modelica.Units.SI.Densityrho (from PipeFlowVLE_L1_TML)Time averaged fluid density in pipe
Modelica.Units.SI.Densityrho_ps (from PipeFlowVLE_L1_TML)Pseudo state for time averaged fluid density in pipe
Realdrhodt (from PipeFlowVLE_L1_TML)
Modelica.Units.SI.VolumeFlowRateV_flow_in (from PipeFlowVLE_L1_TML)Volume flow at inlet
Modelica.Units.SI.VolumeFlowRateV_flow_out (from PipeFlowVLE_L1_TML)Volume flow at outlet
Modelica.Units.SI.VolumeFlowRateDelta_V_flow_in (from PipeFlowVLE_L1_TML)Volume flow at inlet: V_flow_in=q_nom + dq_0
Modelica.Units.SI.VolumeFlowRateDelta_V_flow_out (from PipeFlowVLE_L1_TML)Volume flow at outlet: V_flow_out=q_nom + dq_L
Modelica.Units.SI.Velocityw (from PipeFlowVLE_L1_TML)Flow velocity in pipe
Modelica.Units.SI.Velocitya (from PipeFlowVLE_L1_TML)Time averaged speed of sound in pipe
Modelica.Units.SI.Velocitya_ps (from PipeFlowVLE_L1_TML)Pseudo state for time averaged speed of sound in pipe
RealB (from PipeFlowVLE_L1_TML)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_pTfluidOutlet (from PipeFlowVLE_L1_TML)
TILMedia.VLEFluid.MixtureCompatible.VLEFluid_phfluidInlet (from PipeFlowVLE_L1_TML)