modelDynamicPipe

A simple dynamic pipe with heating/cooling

Information

This is probably the simplest model of a dynamic heated/cooled pipe.

Governing equations

The equations "on paper" are:

min = mout

pin - pout = deltaP=K.min|min|

dU/dt = mout.hout - min.hin + Q

Representing the conservation of mass, momentum and energy where

U = m.u is the internal energy

m is the mass of the fluid inside the pipe

u is the specific internal energy defined as cp.T or h - p/rho

Assumptions

  • The fluid is incompressible (constant density) and thus the mass balance is static.
  • The specific enthalpy of the fluid leaving the pipe is defined without considering the fluid velocity term.

Parameters

TypeNameDefaultDescription
RealKdp_nominal/m_flow_nominal^2Pressure drop coefficient
RealV0.1Volume of stored fluid [m3]
Realrho1000Density of fluid — assumed constant for simplicity [kg/m3]
Nominal values
Realdp_nominal0.5Nominal pressure drop [bar]
Realm_flow_nominal1Nominal mass flow rate [kg/s]

Connectors

TypeNameDefaultDescription
Interfaces.FluidPortport_a
Interfaces.FluidPortport_b

Components

TypeNameDefaultDescription
RealQ_flow0Heat flow rate into the pipe [kW]
RealUInternal energy [kJ]
RealuSpecific internal energy — a fluid property [kJ/kg]
RealmMass of stored fluid [kg]
RealpPressure of fluid leaving the pipe [bar]
RealhSpecific enthalpy of fluid leaving the pipe