Question
You will write a computer program that will compute the pressure given the p/z value. You will accomplish this by yet another newton paphson procedure.
You will write a computer program that will compute the pressure given the p/z value. You will accomplish this by yet another newton paphson procedure. The minimizatin will be performed on the following function: ()=|()()| Here () is the computed value of (p/z) given any pressure and () is the value of (p/z) that we try to find the pressure for. The aim is to find such a pressure that the above function will be zero. In other words, this is a trial and error procedure where we try to find such a pressure that it satisfies the given (p/z) value. The newton raphson algorithm is given below: 1. Read the (). 2. Guess an initial pressure . A good guess would be =() 3. Determine the gas deviation factor for . You can accomplish this by simply using the subroutine that you have written in the first part of the project.
4. Compute the function f() and its derivative f(). 5. Compute the pressure at for the next iteration level: +1=()() 6. Check for the following criteria: |+1| where you can take =105. 7. If the criteria given in STEP 6 is met then STOP ELSE if the criteria is not met, then set =+1 and GOTO step 5 The gas reservoir that we deal with is a volumetric gas reservoir. The production trends show a behavior given with the following relationship: =503525.175 Plot on the same graph, the p/z vs. Gp behavior and the p vs. Gp behavior. Comment on the results. The Gp limits on the graph should be between 0 and 199.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started