OpenLab Drilling Simulator_User Manual

pdf

School

University of British Columbia *

*We aren’t endorsed by this school

Course

PHYSICAL C

Subject

Mechanical Engineering

Date

Dec 6, 2023

Type

pdf

Pages

16

Uploaded by MegaHareMaster574

Report
openlab.app Version 14. April 2021
2 The Web Enabled Drilling Simulator of OpenLab is based on NORCE’s computer models of well flow and drillstring mechanics. With the Web Enabled Drilling Simulator, these computer models are made available through an intuitive interface. Although the computer models behind the simulator are among the world’s most detailed models of their kind, we have tried to create an environment where you can easily run simulations and handle the results. We hope you will find this document and the cases useful. For more information about OpenLab Drilling, you are welcome to find more information on openlab.app . BEFORE YOU GET STARTED
3 C ONTENTS Cases 4 Use case 1: Back Pressure Managed Pressure Drilling 4 Use Case 2: Circulating a kick 9 Use Case 3: Cuttings Transport 15
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
4 C ASES U SE CASE 1: B ACK P RESSURE M ANAGED P RESSURE D RILLING The back pressure Managed Pressure Drilling (MPD) method, sometimes called Constant Bottom Hole Pressure MPD, is expected to be known. Please read the literature on this topic if not. One relevant paper can be found here . Part 1 1. Create a new configuration named “My default MPD case” based on the offshore type of rig template “InclinedWell_2500m”. Check that your open hole diameter is 8 ½ inch. Check that your mud density is 1.65 sg. 2. Create a new simulation named “My first manual BHP control”. Under “ Initial Condition check that the bit depth is close to 2500 meter at the start of simulation. Under the “Drilling Incidents”, choose “No influx and loss”. Press Create new simulation. 3. Set the Main pump flow rate to 2000 L/min and start the simulation (press the Run Simulation in real time). Check that your Bottom Hole Pressure reaches approximately 358 ± 1 bar when the circulation is steady at 2000 L/min. 4. Open the MPD control bar and adjust your MPD choke opening so that your Bottom Hole Pressure increases to 380 ± 1 bar. Check that your MPD choke opening needs to be approximately 14 % to achieve 380 ± 1 bar when circulating at 2000 L/min. Observe that your ECD is very close to (or exceeding) the fracture pressure gradient. 5. Keep the simulation running until you have answered Question A below. QUESTIONS: A: From the Add/remove graphs button (upper right corner of the screen), add the depth-based temperature profile. Then, simulate for a longer time (run in fast-forward mode), e.g. 10 minutes or longer. How does the dynamic temperature affect the Bottom Hole Pressure? What adjustments would you need to do on the MPD choke opening to maintain 380 bar? B:
5 Why is the ECD high (and approaching infinity) in the upper part of the well? Part 2 1. Go to the configuration of the Geology- Geopressure Editor in your current configuration (“My default MPD case”). Check that the pore pressure gradient is varying between 1.3 and 1.4 sg in the open hole section. 2. Go to the Fluid Editor and change the fluid Density to 1.3 sg. 3. Create a new simulation named “My second manual BHP control”. 4. Start your simulation with the Main pump flow rate set to 2000 L/min. Check that your Bottom Hole Pressure is reaching approximately 284 ± 1 bar when circulating at 2000 L/min. Observe from the ECD graph that your ECD is now below the pore pressure (underbalanced) in parts of the open hole section. 5. Change your MPD choke opening to 11%. Check that your ECD now exceeds the pore pressure in the entire open hole section. QUESTIONS: A: What would have happened in real life when the well was underbalanced and if the formation in the open hole contained hydrocarbons? B: What characteristics of the formation would have affected the severity of the situation? Part 3 We will continue to use the configuration “My default MPD case” and keep the fluid density 1.3 s.g. 1. Create a new simulation named “My kick simulation”. Choose “ Drilling Incidents - Influx and loss ”, and choose the “Based on geopressure” option. Create your simulation. 2. Set the Main pump flow rate to 2000 L/min and the MPD choke opening to 11% and start the simulation (press the Run Simulation in real time). Run for 2 minutes and pause the simulation (use the fast forward mode). With the “Add/remove graphs” button, Open the Time graph “Flow rate”, Reservoir flow , and “pit Volumes”, and the Depth graph “ Gas volume . 3. Change your MPD choke opening to 30% and resume the simulation (Press play button). Run the simulation for 1 minute and pause the simulation.
6 Observe that there is a kick in the lower part of the well. You have now created a small gas kick. The gas will continue to enter the well unless we take immediate actions. Increasing the back pressure again with the MPD choke is our fastest response. 4. Change your MPD choke opening back to 11% and resume the simulation (Press play button). Run the simulation for 1 minute and pause the simulation. Observe from the “ Gas volume ” and “ECD” graph that the well is now over-balanced and that the gas is transported up in the well. QUESTIONS: A: Based on the Pit volume, could we have detected the kick? Are there other indications (measurements/sensors) that indicated a kick? Part 4 a - Automated back-pressure MPD (using Matlab) 1. Create a new configuration named “My Matlab MPD case” based on the offshore type of rig template “InclinedWell_2500m”. 2. Start Matlab (ver 2016b or later). Download the Matlab package from the OpenLab web page , unzip on your computer and set this folder as your working directory in Matlab. 3. Open the file “ GetLoginData .m ”. Here you need to specify the “ username ”, api-key and “licenseguid” . These are found in OpenLab in the Settings menu under My Profile in the Web client (Top right corner); choose “Generate Matlab login script” and paste the script into the Matlab file. 4. Open the file “FlowSweep_BHPControl.m”. Change “ ConfigurationName” to “My Matlab MPD case”. At “ SimulationName” you can enter a name of your choice or keep the default. To initialize a simulation, you need to set the initial parameters which are the same as when you create a new simulation in the web client. We have already done this for you in the example files in Matlab. In FlowSweep_BHPControl.m . It looks something like this : [username, api_key, license_guid] = GetLoginData(); ConfigurationName = ‘ My Matlab MPD case’ ; SimulationName = 'Flow sweep with bhp control (Matlab)' ; InitialBitDepth = 2500; % [m] You are now ready to simulate from Matlab. The case we are using in this part is a flow sweep (flow is ramped down and up) and a PI control algorithm is used to maintain a constant bottom hole pressure.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
7 5. Press the Run button in Matlab or enter “FlowSweep_BHPControl” in the command window in Matlab. A simulation should now start, and you should see this in the command window. Observe from the “Bottom Hole Pressure” graph that the bottom hole pressure becomes stable at 380 bar throughout the automated BHP control sequence (which in this case starts at 100 seconds). You can run until the simulation stops (defined by the variable “ MaxTimeSteps in FlowSweep_BHPControl.m). If you want to terminate the simulation, you can enter Ctrl+c in the Matlab command window. 6. Go back to OpenLab in your web browser and open the configuration named “My Matlab MPD case”. On the list of simulations, you should now see a new simulation with the name that you have specified from Matlab. The results can be viewed and downloaded from OpenLab, or you can use Matlab to save, plot and present your results. QUESTIONS: A: What is the minimum MPD choke opening required to maintain 380 bar bottom hole pressure during the flow sweep? B: In Matlab, in the file FlowSweep_BHPControl.m, change the reference pressure (named ReferenceBHPPressure) from 380 bar to 390 bar, and run the flow sweep again. What is the minimum MPD choke opening required to maintain 390 bar bottom hole pressure during the flow sweep? C:
8 In Matlab, in the file FlowSweep_BHPControl.m, change the reference pressure (named ReferenceBHPPressure) back to 380 bar. Change the Proportional gain, Kp, from (-0.015) to (-0.005). Run the flow sweep again. What is the effect on the Flow rate out of the well during the sequence? D: Keep the reference pressure (ReferenceBHPPressure) at 380 bar. Change the Proportional gain, Kp, from (-0.015) to (-0.024). Run the flow sweep again. How well does the PI controller perform now compared to the original settings? Part 4 b - Automated back-pressure MPD (using Python) 1. Create a new configuration named “My Python MPD case” based on the offshore type of rig template “InclinedWell_2500m”. 2. Download the python openlab client from the OpenLab web page . 3. Extract the files and navigate to the directory containing setup.py. 4. Run “pip install .” from the command land in this directory. This will install th e OpenLab python client and all its dependencies. 5. Open the file “examples/sweep.py” and change config_name to the configuration name you entered in step 7 (“My Python MPD case”). 6. The first time you run the openlab http_client, you will be prompted to specify the username ”, api-key and “licenseguid” . These are found in OpenLab in the Settings menu under My Profile in the Web client (Top right corner); choose “Generate Matlab login script” and paste the script into the Matlab file. 1. Alternatively, you can pass these in directly when initializing the http_client, i.e. “session = openlab.http_client(username= “email address”, apikey= “api key”, licenseguid= “license guid”) You are now ready to simulate from Python. The case we are using in this part is a flow sweep (flow is ramped down and up) and a PI control algorithm is used to maintain a constant bottom hole pressure. 7. From a command line in the same directory as above, run “python examples/sweep.py”. A simulation should now start, and you should plots pop up as well as seeing this in the command window.
9 Observe from the “Bottom Hole Pressure” graph that the bottom hole pressure becomes stable at 380 bar throughout the automated BHP control sequence (which in this case starts at 100 seconds). You can run until the simulation stops (defined by the variable “ MaxTimeSteps in examples/sweep.py). If you want to terminate the simulation, you can enter Ctrl+c in the command window. 8. Go back to OpenLab in your web browser and open the configurat ion named “My Python MPD case”. On the list of simulations, you should now see a new simulation with the name that was specified in the python script. The results can be viewed and downloaded from OpenLab, or you can use python to save and present your results. QUESTIONS: A: What is the minimum MPD choke opening required to maintain 380 bar bottom hole pressure during the flow sweep? B: In the examples/sweep.py file, change the reference pressure (named referenceBHPPressure) from 380 bar to 390 bar, and run the flow sweep again. What is the minimum MPD choke opening required to maintain 390 bar bottom hole pressure during the flow sweep? C: In the examples/sweep.py file, change the reference pressure (named referenceBHPPressure) back to 380 bar. Change the Proportional gain, Kp, from (-0.010) to (-0.005). Run the flow sweep again. What is the effect on the Flow rate out of the well during the sequence? D: Keep the reference pressure (referenceBHPPressure) at 380 bar. Change the Proportional gain, Kp, from (-0.010) to (-0.024). Run the flow sweep again. How well does the PI controller perform now compared to the original settings? U SE C ASE 2: C IRCULATING A KICK Part 1
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
10 1. Create a new configuration named “My default influx case” based on the offshore type of rig template “InclinedWell_2500m”. Check from the Geopressure pressure gradient (can be found under the “Geology” tab) that the pore pressure is varying between 1.3 and 1.4 sg in the open hole section. 2. Go to the Fluid Editor and change the density of Fluid 1 to 1.36 sg. 3. Create a new simulation named “My first kick simulation”. Choose “Drilling Incidents - Influx and loss”, and tick the “Based on geopressure” . Create your simulation. 4. Without changing any of the setpoints, start the simulation. Run the simulation until time has reached approximately 2 minutes (use fast-forward) and press the Pause button. Open the “Gas volume” graph and observe that there is gas in the lower part of th e well: Open the “Add/remove graphs” modal and make your selection: Remember to save graph selection as default before closing the “Add/remove graphs” modal . 5. Without changing any of the setpoints, continue the simulation. Run the simulation until time has reached approximately 5 minutes (use fast-forward) and press the Pause button. Observe from the “Reservoir flow” graph that the “Total influx mass” has reached a value around between 10-30 kg. You have now created a small gas kick . We will use this case for Part 2. Do not stop the simulation, but keep it paused before Part 2. QUESTIONS: A: This was a gas kick. What is the effect on the density of the fluid in the annulus? B: Would it be possible to detect this kick? (What instrumentation would be needed?) Part 2 Use your simulation named “My first kick simulation” that you created in Part 1. Observe from the “Gas volume” graph that there is gas in the lower part of the well. 1. Continue your simulation but with “Main pump flow rate” set to 1000 L/min. You are now transporting the gas up in the annulus. 2. Pause the simulation after it has reached 10 minutes (use fast-forward). QUESTIONS:
11 A: When you started the pump at 1000 L/min, how did it affect the flow rate from the Reservoir? B: Your ECD is still very close to the pore pressure. What do you think will happen if you continue to circulate out the gas keeping the Main pump flow rate at 1000 L/min and not changing any of the other setpoints? Part 3 In the current version of the simulator, we do not allow circulation through a choke line . Instead we use the MPD choke to add back-pressure and allow formation gas to be circulated through the MPD choke. In real life a kick would normally be circulated through the choke line, dependent on the size of the influx. However, the basics around the circulation procedure will be the same. The following example is therefore the MPD version of the Wait & Weight method . 1. Use your existing configuration named “My default influx case” based on the offshore type of rig template “InclinedWell_2500m”. 2. Go to the Fluid Editor and change the density of Fluid 1 to 1.33 sg (based on Generic OBM 1) 3. Create a new simulation named “My MPD kick circulation” with the bit at 2500 meter depth. Under the “Influx and loss”, Choose “Based on geopressure”. Create your simulation. 4. Start your simulation with Main pump flow rate at 2500 L/min. Run the simulation until time has reached approximately 1 minute (use fast-forward if you want) and press the Pause button. Observe from the “ECD” graph that your well pressure is balanced against the formation pressure. 5. Continue your simulation but change the Main pump flow rate to 1000 L/min. Run the simulation until time has reached approximately 2 minutes (use fast-forward) and press the Pause button. Observe from the “Gas volume” graph that there is gas in the lower part of the well. Reducing flow rate from 2500 to 1000 L/min has reduced the ECD, causing influx to the well. Observe from the “Stand Pipe Pressure” graph the pump pressure at 1000 L/min. This is going to be your slow-rate-friction-pressure, 𝑃_???𝑤 , in the circulation procedure. In this case you should get in the region 35 bar. You have now created a gas kick. We will circulate it out using the MPD choke and replace the mud with heavier mud to regain overbalance. 6. Change your “Main pump flow” rate to 0 L/min. 7. Close the BOP and run the simulation until time has reached approximately 3 minutes and press the Pause button. Observe from the “Reservoir flow rate” graph that the gas influx has stopped. During a well shut-in, the pressure in the wellbore stabilizes, and the formation pressure equals the hydrostatic pressure, plus the added pressure needed at the top of the hole (shut-in drill pipe and
12 casing) to avoid influx. The drill pipe at this time is full of known-density fluid. Therefore, the formation pressure can be calculated using the shut-in drill pipe pressure (SIDPP). 8. Change your Main pump flow rate to 200 L/min. Run the simulation until time has reached approximately 3 ½ minutes and then press the Pause button. This is to open the non-return flow valve on the BHA. 9. Change your Main pump flow rate to 0 L/min. Run the simulation until time has reached approximately 4 minutes and then press the Pause button. We will now find the shut-in drill pipe pressure. In this case it cannot be measured directly since we have circulated after we closed the BOP, in order to open the non-return valve. This is how you find the shut-in drill pipe pressure in this case: o Read the drill pipe pressure from the “Stand pipe” graph. This will depend on the amount of influx and how much the BOP pressure has increased during the shut-in when you opened the non-return valve. If you have followed the steps carefully, you should have approximately 20 bar stand pipe pressure now. o However, to find the shut-in drill pipe pressure you need to extract the increase in BOP pressure during the opening of the non-return valve. The BOP pressure increased from approximately 37 to 49 bar during this time. Therefore, the amount of pressure to extract from the stand pipe pressure is 12 bar. o The shut-in drill pipe pressure is therefore 20 bar minus 12 bar, equals 8 bar. Calculate your kill mud weight 𝛿_?𝑖?? by using the formula: 𝛿_?𝑖?? = 𝛿_0 + 𝑃_𝑆𝐼𝐷𝑃 ⁄ (9.81 ∗ 𝑉???𝑖𝑐𝑎? 𝐷???ℎ ) + 𝛿_𝑆𝑎???𝑦 Here, 𝛿_(_0) is your initial fluid density (1330 kg/m3 in SI units in this case) and 𝛿_(_𝑆𝑎???𝑦) is a safety margin. In this case we can use 𝛿_(_𝑆𝑎???𝑦) = 20 ??/?3 , (0.02 s.g). The Vertical Depth can be found from either the Geopressure Editor or the Wellpath Editor. In this case, the depth of the influx zone is around 2000 meter Vertical Depth. In this case we get: 𝛿_?𝑖?? = 1330 + (10 ∗ 10^5) ⁄ (9.81 ∗ 2000 ) + 20 = 1401 ??/?3 10. In your simulation view, activate the “Control active pit” and set the “Active pit density” to 1401 kg/m3. (1,40 s.g.). 11. Set “Main pump flow rate” to 1000 L/min. This is your kill rate. In this example you should have read approximately 35 bar stand pipe pressure when circulating at 1000 L/min. 12. Set the MPD choke opening to 10%. 13. Start the simulation and run 10 seconds and press pause. This is to avoid the bottom hole pressure to decrease before circulation through the MPD choke is obtained. 14. Open the BOP. 15. Start the simulation and adjust the MPD choke opening carefully so that your Stand pipe pressure is equal to 𝑃_???𝑤 + 𝑃_𝑆𝐼𝐷𝑃 . In this case 35 bar + 8 bar = 43 bar. Note: Instead of using the slider to adjust the choke opening, use the up/down arrows, or scroll with your mouse. In this example you may start with choke opening at 10% and then adjust choke opening manually until you reach 43 bar on your Stand pipe pressure. 16. Continue to circulate with 1000 L/min while carefully adjusting the choke opening so that Stand pipe pressure is following a (more or less) linear curve from 43 bar to 35 bar when the
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
13 kill mud passes the bit. This should take about 25 minutes (based on the inner volume of the drill string and the flow rate). Note 1: You need to gradually decrease the MPD choke opening to reduce SPP linearly to 35 bar. Note 2: The simulation speed in OpenLan may run slower now because of the kill fluid. 17. Continue to circulate while constantly adjusting your MPD choke opening to keep 35 bar Stand pipe pressure as gas is circulated out of the well and the kill mud has filled the entire annulus. (Should take around 2 ½ hours simulation steps). Note: Depending on your user account and simulation limit, the maximum number of time-steps may not allow a full well control simulation. Screenshot from an OpenLab simulation for Use Case 2: Part 3.
14 The Wait and weight method: Source ONGC Well (http://www.ongcindia.com)
15 U SE C ASE 3: C UTTINGS T RANSPORT To learn about how to start drilling please open the User guide and Chapter 3.3 under the section “Example on how to start drilling”. Part 1 1. Create a new configuration named “My default drilling case” based on the offshore type of rig template “InclinedWell_2500m”. 2. Create a new simulation named “My first drilling simulation” with out changing any other settings. Create your simulation. 3. Start your simulation with Main pump flow rate set to 2200 L/min and Surface RPM at 120 rpm. Run the simulation until time has reached approximately 1 minute (use fast-forward) and press the Pause button. You then need to set bit on bottom to apply weight on bit. 4. Set Top of string speed to a positive value and run the simulation until “Bit depth” is identical to “Total well depth”. Then press the Pause button. You should see something like this: You are now ready to drill. 5. Apply weight on bit by setting ROP to 20 m/h (65 ft/h). 6. Continue your simulation with Main pump flow rate 2200 L/min, Surface RPM 120 rpm and ROP 20 m/hr. Run the simulation until time has reached approximately 10 minutes (use fast- forward) and press the Pause button. Observe from the “Cuttings transport” graph that there are cuttings in suspension from the bit up to 2000 meter. (Open the “Add/Remove graph” modal on the top right corner to select graphs.) Observe from the “Cuttings bed” graph that there are cuttings accumulated in a cuttings bed around 2000 meter depth. 7. Change Main pump flow rate to 2500 L/min and run the simulation until time has reached approximately 11 minutes. Observe from the “Cuttings bed” and the “Cuttings transport” graph that the cuttings bed have been eroded and that cuttings are now transported. 8. Decrease Surface RPM from 120 to 100 and run the simulation until cuttings bed starts to accumulate again in cuttings bed. Stop the simulation. QUESTIONS:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
16 A: Why is the cuttings bed building around 2000 meter depth? B: What are the most important drilling parameters that affect cuttings transport?