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 inside this model.

Parameters

TypeNameDefaultDescription
IntegerN20Number of segments
Geometry
SI.HeightH420Height over which water fall in the pipe
SI.LengthL600Length of the pipe
SI.DiameterD3.3Diameter of the pipe
Initialization
SI.VolumeFlowRateVdot_020Initial flow rate in the pipe

Components

TypeNameDefaultDescription
SI.AreaA_atmD^2*pi/4Pipe are at atm. p.
SI.Area[N]ACenter pipe A
SI.Area[N,4]A_Bounds pipe A
SI.Pressure[N]p_pCenter pressure
SI.Pressuredpdata.rho*data.g*H/NInitial p. step
SI.Pressurep_18e5Input p.
SI.Pressurep_248e5Output p.
SI.Pressure[N,4]p_Bounds p.
SI.LengthdxL/NLength step
SI.Length[N + 4]Bzeros(N + 4)Additional for open channel
SI.MassFlowRate[N]mdotCenter mass flow
SI.MassFlowRate[N,4]mdot_Bounds mass flow
SI.MassFlowRatemdot_RVdot_0*data.rhoInput mdot
SI.MassFlowRatemdot_VVdot_0*data.rhoOutput mdot
Real[N]F_apCentered A*rho
Real[2*N]S_Source term
Real[2*N,4]F_F matrix
Real[N,4]lam1Eigenvalue '+'
Real[N,4]lam2Eigenvalue '-'
Real[N,4]F_ap_Bounds A*rho
SI.Density[N]rhoCentered density
SI.Density[N,4]rho_Bounds density
SI.Velocity[N,4]v_Bounds velocity
SI.Velocity[N]vCentered velocity
SI.VolumeFlowRate[N]VdotCentered volumetric flow
Realtheta1.3Parameter for slope limiter
Real[8,N]U_Bounds states
Real[2*N]UCenter states
Real[N]F_dFriction
Functions.KP07.KPmethodkP
Datadata