modeldp_residencetime

Calculates the residence time as well as the pressure loss and delays enthalpy changes according to it
Diagram of dp_residencetime

Information

1. Purpose of model

Calculates pressure drop and thermal delay of temperature changes with respect to flow velocity and pipe length

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

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks)

5. Nomenclature

(no remarks)

6. Governing Equations

See Reference

7. Remarks for Usage

Pressure loss is linearized for mass flow rates below 5% of the nominal velocity.

Residence time is limited to 10h to improve initialisation with no mass flow present in the system at time = 0.

8. Validation

(no remarks)

9. References

B. van der Heijde, M. Fuchs, C. Ribas Tugores "Dynamic equation-based thermo-hydraulic pipe model for district heating and cooling systems", 2017


10. Version History

Model created by Philipp Huismann (huismann@gwi-essen.de) on 10.10.2018

Model revised by Philipp Huismann (huismann@gwi-essen.de) on 07.04.2022 | Pressure Loss linearisation for small mass flow rates, Residence Time limitation

Parameters

TypeNameDefaultDescription
SI.Pressurep_startpipe_parameter.p_startPressure at start of simulation
SI.TemperatureT_startpipe_parameter.T_startTemperature at start of simulation
SI.TemperatureT_start_outpipe_parameter.T_start_out
SI.MassFlowRatem_flow_start0.005Start Massflow
SI.MassFlowRatem_flow_small_local0.05*Modelica.Constants.pi/4*diameter_i*diameter_i*rho*v_nomFor linearization of pressure drop at mass flow below 5% of nominal velocity
SI.Lengthdiameter_ipipe_parameter.diameter_iInner Diameter of the Pipe
SI.Heightz_inpipe_parameter.z_inInlet Height of the pipe
SI.Heightz_outpipe_parameter.z_outOutlet Height of the pipe
SI.Heightdzz_in - z_outHeight difference between inlet and outlet
SI.Lengthlengthpipe_parameter.lengthLength of the pipe
SI.LengthKpipe_parameter.Kaverage height of surface asperities
SI.Velocityv_nomsimCenter.v_nomDesign Velocity of the pipe. Typically smaller than 2 m/s
SI.SpecificEnthalpyh_startpipe_parameter.h_start
SI.SpecificEnthalpyh_start_outpipe_parameter.h_start_out
SI.SpecificHeatCapacitycp_wpipe_parameter.cp_w
SI.Densityrhopipe_parameter.rho
SI.DynamicViscositydyn_vispipe_parameter.dyn_vis
HeatTransfer
Booleancalc_initial_dstrbtrueActivates the calculation of a initial temperature distribution inside the pipes

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Thermal.FluidPortInwaterPortInInlet port
TransiEnt.Basics.Interfaces.Thermal.FluidPortOutwaterPortOutOutlet port
Modelica.Blocks.Interfaces.RealOutputresidence_time_nom
Modelica.Blocks.Interfaces.RealOutputresidence_time_reversed

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
TransiEnt.Components.Heat.VolumesValvesFittings.Pipes.Base.pipe_parameterspipe_parameter
SI.SpecificEnthalpyh_inwaterPortIn.h_outflowInlet enthalpy
SI.SpecificEnthalpyh_outwaterPortOut.h_outflowOutlet enthalpy
SI.PressuredpPressure difference between inlet and outlet by friction
SI.Pressuredp_hPressure difference between inlet and outlet due to geostatic height difference
SI.PressureDifferencedp_small
Realtime_flow
Realtime_reversed
SI.Velocityv_waterVelocity of the fluid
RealxCoordinate for spatialDistribution
Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_overall_IN_coninCon
Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_overall_IN_varinVar