Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simulating Pressure Transient(FORTRAN 95)

  1. Sep 28, 2014 #1
    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.\
     

    Attached Files:

  2. jcsd
  3. Oct 3, 2014 #2
    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?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Simulating Pressure Transient(FORTRAN 95)
Loading...