Write a general program that performs numerical integration

Assignment Help Mechanical Engineering
Reference no: EM131290173

Topic: Pressure Loss in Production Tubing

Consider a producer well with TVD of 6250 ft. (Depth of completed zone from the surface). in a formation that has pore pressure gradient of 0.48 psi/ft. (assumed linear for simplicity). Flowing bottom hole pressure is maintained at 2000 psi where the fluid density is 0.001 ppg. The well index for this specific producer is estimated to be 4 bbl/day/psi. Assume that the fully turbulent, single-phase compressible flow of produced fluid inside the production tubing (ID = 2.5") to the wellhead would result in linear gradient in the fluid density of 1.6 x 10-4 ppg/ft (density decreases due to fluid compressibility at lower pressures) while the fluid viscosity remains constant (= 3 cP). The governing equation for the pressure loss per unit length of the production tubing has two main contributions: hydrostatic pressure head (due to gravity) and frictional pressure loss (due to fluid viscosity):

dp/dx = ρg + ƒρV2/2D

Use the following Blasius correlation for friction factor: ?? = 0.0791Re-0.25; Re = ρVD/μ

HINT: Production rate = Well Index *(Pressure Drawdown). Maintain same "mass" flow rate throughout the production tubing.

Task 1: Write a general program that performs numerical integration for N given data points using Newton-Cotes formulae.

Task 2: Write a main subroutine that reads in the given data from the input deck on the spreadsheet, call the general numerical integration subroutine, and output the pressure gradient along the tubing using 25 and 50 nodes to determine the flowing wellhead pressure.

Plot the pressure vs. depth to show the pressure traverse curves at different discretizations.

Break the Main code into several subroutines:

Sub Wellbore
Dim rhs_1(n), rhs_2(n)
Dim dt, dx, mu, ct as double
...
Call Initialize
Call friction factor
...
Call NumericalIntegration(dx, rhs_1, rhs_2, integration, Pwh)
... Call Output
End

Reference no: EM131290173

Questions Cloud

What was the total capital balance for the partnership : Cleary, Wasser, and Nolan formed a partnership on January 1, 2012, with investments of $100,000, $150,000, and $200,000, respectively. For division of income, they agreed to interest of 10% of the beginning capital balance each year, What was the tot..
What is aztec products'' operating cycle and cash conversion : If Aztec could shorten its CCC by 5 days, would it be best to reduce the inventory holding period, reduce the receivable collection period, or extend the accounts payable period?
Maximum life of the drive in block-flashes : You have a SSD that uses a 4 KB page and 64 pages per block.  If your drive size is 200 GB, how many blocks are there? With the drive as specified above, if each block can sustain 50000 flashes, what is the maximum life of the drive in block-flashe..
How did the marketer distribute the sales promotion : How did the marketer distribute the sales promotion? What was the purpose of the sales promotion, and was it effective?
Write a general program that performs numerical integration : PETE 2060 - Write a general program that performs numerical integration for N given data points using Newton-Cotes formulae and Write a main subroutine that reads in the given data from the input deck on the spreadsheet.
Is there a growing trend toward distance selling : What procedure do businesses in your country usually follow for selecting the right candidate for sales roles? Candidate selection techniques can vary; is there a common approach?
How many units of safety stock should vargas hold : What is the firm's reorder point for the item of inventory being evaluated? (Hint: Be sure to include the safety stock.)
Identify system vulnerabilities : If known vulnerabilities in software are entry points for an attacker, why are the software vulnerabilities not corrected before the software is released? Should hackers be hired by companies to identify system vulnerabilities?
What is credit scoring : What are the key variables to consider when evaluating potential changes in a firm's credit standards? Why are only variable costs of sales included when estimating the firm's average investment in accounts receivable?

Reviews

len1290173

11/25/2016 4:06:28 AM

?Topic: Pressure Loss in Production Tubing Detailed Question: ALL INSTRUCTIONS AND INFORMATION ARE UPLOADED PLEASE NOTE: Excel with visual basic (VB) will be the main platform for programming in this project. THIS PROJECT IS ABOUT ONLY ONE TOPIC; Pressure Loss in Production Tubing , BUT IT HAS TO BE DONE INTO 2 EXCEL FILES ( ONE IS THE MAIN PROJECT, THE OTHER ONE IS SAME TOPIC BUT JUST BONUS WORK)?

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd