modelElasticPenstock

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Here is example of using the KP function to solve hyperbolic PDE (here, model for penstock with compressible water and elastic walls is used).

All calculation of the variables that is used for defining eigenvalues, source term S and vector F are implemented in additional function BasicEquation which used one time for centered values and then for boundary values.

Parameters

TypeNameDefaultDescription
IntegerN20
Geometry
SI.HeightH420Height over which water fall in the pipe
SI.LengthL600Length of the pipe
SI.DiameterD3.3Diameter from the input side of the pipe
Initialization
SI.VolumeFlowRateVdot_020Initial flow rate in the pipe, m3/s

Components

TypeNameDefaultDescription
Datadata
SI.AreaA_atmD^2*pi/4
SI.Pressure[N]p_p
SI.Pressuredpdata.rho*data.g*H/N
SI.Pressurep_18e5
SI.Pressurep_248e5
SI.Pressure[N,4]p_
SI.LengthdxL/N
SI.Length[N + 4]Bzeros(N + 4)
SI.MassFlowRate[N]mdot
SI.MassFlowRate[N,4]mdot_
SI.MassFlowRatemdot_RVdot_0*data.rho
SI.MassFlowRatemdot_VVdot_0*data.rho
Real[8,N]U_
Real[2*N]S_
Real[2*N,4]F_
Real[N,4]lam1
Real[N,4]lam2
SI.VolumeFlowRate[N]Vdot
Realtheta1.3
Real[2*N]U
Real[N]F_d
BasicEquationbasic
Functions.KP07.KPmethodkP
BasicEquationbasicMid