modelPenstock

Model of the penstock with elastic walls and compressible water. Simple Staggered grid scheme

Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions), OpenHPL.Icons.Pipe (Pipe icon), OpenHPL.Interfaces.TwoContacts (Model of two connectors).

Information

This is a more detaied model of the pipe that can be use for proper modeling of penstock. (This model does not work well. Instead PenstockKP model can be used.)

The model for the penstock with the elastic walls and compressible water with simple discretization method (Staggered grid). The geometry of the penstock is described due to figure:

Conservation laws are usually solved by Finite-volume methods. With the Finite volume method, we divide the grid into small control volumes or control cells and then apply the conservation laws. The discretization method is based on Staggered grid scheme, where the penstock is divided in N segments, with input and output pressure as a boundary conditions. Can be describe as the follow figure:

Parameters

TypeNameDefaultDescription
Icon
Booleanslanted (from Pipe)falseDisplay slanted icon instead
Geometry
SI.HeightH420Height over which water fall in the pipe, m
SI.LengthL600length of the pipe, m
SI.DiameterD_i3.3Diametr from the input side of the pipe
SI.DiameterD_oD_iDiametr from the output side of the pipe
Initialization
SI.VolumeFlowRateVdot_020Initial volume flow rate
Discretization
IntegerN20Number of segments

Connectors

TypeNameDefaultDescription
Contact_ii (from TwoContacts)Inlet contact (positive design flow direction is from i to o)
Contact_oo (from TwoContacts)Outlet contact (positive design flow direction is from i to o)

Components

TypeNameDefaultDescription
DatadataUsing standard data set
SI.DiameterdD0.5*(D_i + D_o)
SI.Diameter[N]Dlinspace(D_i + dD/2, D_o - dD/2, N)
SI.Diameter[N + 1]D_linspace(D_i, D_o, N + 1)
SI.Area[N]AD.^2*pi/4
SI.Area[N + 1]A_D_.^2*pi/4
SI.Area[N - 2]A_m
SI.AreaA_m_end
SI.AreaA_m_first
SI.Pressurep_i
SI.Pressurep_o
SI.Pressure[N - 1]p_
SI.Pressuredpdata.rho*data.g*H/N
SI.Pressure[N - 2]p_m
SI.LengthdxL/N
SI.Length[N - 2]Per_m
SI.MassFlowRatemdot_R
SI.MassFlowRatemdot_V
SI.MassFlowRate[N - 2]mdot
SI.MassFlowRate[N]m_exp
Real[N - 1]F_ap
Real[N - 2]F_m
Real[N]F_exp
Real[N - 2]p_eps_m
Real[3,N - 2]Ap_m
RealF_m_end
RealF_m_first
SI.Force[N - 2]F_g
SI.Force[N - 2]F_p
SI.Density[N - 2]rho_m
SI.Densityrho_m_end
SI.Densityrho_m_first
SI.Velocity[N]v_exp
SI.VolumeFlowRate[N - 2]V_p_out
SI.VolumeFlowRateV_p_out_end