PDESolve for transients in gas pipelines
- June 5, 2023
- 2 replies
- 2609 views
Dears,
I'm stuck on learning how to apply a real PDE problem. It is an application that I can observe in my daily life involving gas, the effect of a pressure wave caused by a transient in a gas pipeline when a valve is abruptly closed at the end of the pipeline.
Reading several technical papers on this matter, many numerical simulations of fast transients have been performed to solve the partial differential equation for transient flows in horizontal gas pipelines. Dorao (2011) [1], like many authors, starts the discussion with this system of PDE:


I was thinking (naive?) that I could simply solve this using the PDE Solver, but after many trials and errors, I came to a halt. I´m stuck setting the initial conditions right for the solver:

T0=-0s is during a steady state. Flow, velocity, and density all are the same for the length of pipe L, from L0 at the (inlet) and L1 (outlet), as this is before the transient.
After this, the flow stops:
T1=+0s is the outlet valve closed. Flow, velocity, and density are zero at L1 (outlet), but remain flowing at L0.
It is considered that no gas mass enters the system, hence this is just a simplification for the pulse wave formed by the transient.
[1] https://www.sciencedirect.com/science/article/abs/pii/S1875510011000059
Any help is highly appreciated.
Best regards,
Fred

