Simulating Pressure Transient(FORTRAN 95)

  • Thread starter Thread starter Tom0395
  • Start date Start date
  • Tags Tags
    Pressure
Click For Summary
SUMMARY

This discussion centers on simulating pressure transients in pipelines using FORTRAN 95. The user, Tom, is experiencing issues with a program designed for gradual valve closure (Program 3), where the downstream pressure trend is incorrect, appearing as a straight line instead of a mirrored image along the x-axis. In contrast, Program 1, which simulates instantaneous valve closure, functions correctly. Tom seeks assistance in diagnosing the issue with Program 3 and is open to suggestions for improving his post for better responses.

PREREQUISITES
  • Understanding of FORTRAN 95 programming
  • Knowledge of fluid dynamics and pressure transient analysis
  • Familiarity with numerical methods for simulating physical systems
  • Experience with interpreting pressure data in pipeline systems
NEXT STEPS
  • Review the implementation of the closure function in Program 3 for potential errors
  • Investigate numerical stability and convergence issues in FORTRAN simulations
  • Learn about pressure transient analysis techniques in pipeline systems
  • Explore debugging strategies for FORTRAN code to identify logical errors
USEFUL FOR

Engineers and researchers involved in pipeline design, fluid dynamics specialists, and programmers working with FORTRAN 95 who are focused on simulating pressure transients in fluid systems.

Tom0395
Messages
1
Reaction score
0
Hi,

I am currently working on a project to simulate pressure surges in pipelines, and I was hoping if someone could point out what is wrong with the second code.

There are 2 scenarios that I am focusing on right now, one is where the valve closes instantaneously and the closure function is a step. Please refer to P1.jpg which is attached, and ignore the valve on the right. The second is for gradual valve closure with the same scenario as P1.jpg, and the closure function is linear as seen in C1.jpg. The codes for both programs are given in Program1.txt and Program3.txt respectively.

For Program 1, I am not having any problems, but for Program 3, the upstream pressure is okay while downstream pressure trend is a straight line when it should have been something close to a mirror image along x axis.

Really appreciate your help here. Thanks.

Regards,
Tom

PS. I was wondering if I should post this somewhere instead. If i should please let me know! Thank you.\
 

Attachments

  • P1.jpg
    P1.jpg
    6.2 KB · Views: 493
  • c1.jpg
    c1.jpg
    25.3 KB · Views: 487
  • Program1.txt
    Program1.txt
    5.6 KB · Views: 499
  • Program3.txt
    Program3.txt
    8.4 KB · Views: 503
Engineering news on Phys.org
Thanks for the post! Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 45 ·
2
Replies
45
Views
7K
Replies
7
Views
3K
  • · Replies 20 ·
Replies
20
Views
11K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
27K
  • · Replies 6 ·
Replies
6
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K