数据与分析

内部生产运营软件管理 27,000 口油井

本文介绍了 Oxy 如何开发内部应用程序来处理关键生产运营任务,包括监控、优化、停机记录和油井测试。该应用程序名为 Nexus,允许油井分析师和生产工程师管理的油井数量是 5 年前的两倍。

氧气.jpg
来源:氧气

作者:凯文·福克斯马特·哈克沃斯,SPE;亚历克斯·萨利纳斯亚历克斯·拉赫,SPE;李倩,西方石油公司

本文介绍了 Oxy 如何开发内部应用程序来处理关键生产运营任务,包括监控、优化、停机记录和油井测试。该应用程序名为 Nexus,包括 Oxy 27,000 个活跃生产商和注入井日常运营所需的所有实时油井数据、分析平台、闭环控制和自动化现场流程。超过 50% 的 Oxy 美国陆上员工每月使用 Nexus,每天使用 10%,Nexus 使油井分析师和生产工程师能够管理的油井数量是 5 年前的两倍;因此,它对于 Oxy 的运营成功至关重要。

Oxy 的 ESP 问题
2013 年,Oxy 拥有 2,000 个电潜泵 (ESP) 和 8,000 个游梁泵井。Oxy 与一家油田服务公司达成协议,在 5 年内支付 2700 万美元,使用该供应商的 ESP 监视系统来分析 ESP。除了如此高的成本之外,ESP 故障的总成本是所有游梁泵井的两倍,尽管游梁泵井的数量是游梁泵井的四倍。供应商和 Oxy 之间通过电子邮件和电话进行的沟通效率低下。

Oxy 发现 ESP 故障后,很难查看油井历史记录,因为可用的油井管理软件仅存储 30 天后的日平均值,并且使用速度很慢。此外,软件分析不足以对异常情况进行油井管理。Oxy 决定直接管理其油井,并寻找解决方案来管理这些用户数量少于 30 名的油井。

从小规模开始,敏捷
Oxy 高管决定开发一个定制解决方案,该项目将由石油和天然气生产运营部门内部领导。由一名开发人员和一名业务主管组成的核心团队开始寻找商用软件。经过广泛审查后,他们得出的结论是,现有的商业软件无法为 6,000 多口井创建例外情况和监测图。他们决定使用 OSI PI 和最终被称为 Nexus 的定制应用程序。Nexus 团队得到了信息技术部门、自动化团队、业务部门和中央工程团队的全力支持。

从一开始,团队就知道完全立即设计出这样一个复杂的应用程序是不可能的。因此,Nexus 团队采用了敏捷方法,在解决方案完成之前向最终用户提供解决方案,并根据他们的反馈调整设计。这种迭代方法从第一天开始一直持续到今天,在开发团队和应用程序用户之间创建了一种持续改进应用程序和运营业务流程的文化。

第一步是扩大 OSI PI 的使用并开发标签命名和数据标准。一旦标签数据可用,Nexus 团队就使用 OSI PI SharePoint 插件开发绘图,并使用 Oracle 数据库开发异常。ESP 分析师特别喜欢的功能包括浏览器的易用性、异常识别、清理 OSI PI 数据的能力、Oxy 数据库中的数据集成、行动跟踪器、设备库存、仪表板和与第三方工具的集成。分析师使用了该工具并改进了数据。当工程师意识到 Nexus 使用开放数据模型并且为 Nexus 收集的数据可以用于其他项目时,他们开始使用该工具。

初步结果
Nexus 一实施就开始创造价值。例如,2013 年,Nexus 用户发现一台 ESP 转向错误的方向。2013 年 10 月,方向发生了逆转,泵入口压力开始下降,从而增加了产量并避免了故障。很明显,Nexus 将成为 Oxy 成功的人员、流程和技术的重要组成部分。

2015 年,Oxy 通过终止由外部方管理 ESP 的 5 年期合同,节省了 2700 万美元。与此同时,ESP 运行时间增加了 13%。2016 年,Nexus 增加了气举井,由于离线生产在任何其他系统中都不可见,产量增加了 3,500 BOPD。启用离线生产让管理层认识到 Nexus 不仅可以管理 ESP,还可以改善所有生产运营。此时,Nexus 应用程序对于气举和 ESP 运行良好,但它依赖于 SharePoint 和 OSI PI 插件,而后者的生命周期有限。此外,它是由一名内部开发人员构建的,没有备份。Oxy 必须决定 Nexus 是否将成为一个核心解决方案,或者是否将成为一个可以任其消亡的边缘工具。

Nexus:具有附加功能的核心解决方案
在审查了 Nexus 的性能后,Oxy 高管将 Nexus 确定为气举和 ESP 监控和例外情况的核心数据源,并认为它是其他人工举升类型的未来解决方案。Nexus 的第一笔官方资金于 2017 年获得,其中包括多年预算和 12 人的开发团队。这使得 Nexus 能够被重新设计为一个企业应用程序,使用标准的 Microsoft 本地服务器以及云,并使用与供应商应用程序用于从 OSI PI 提取和显示数据相同的代码。此外,该团队拥有专注于正常运行时间的资源,并在开发人员不可用时提供备份。幸运的是,最初项目的企业主和开发人员留下来并继续发展用户关系,从而使该工具的第一个版本变得敏捷和成功。
 
什么是 Nexus?
Nexus 有 850 个独立的日常用户监控 27,000 口井。Oxy 美国境内超过 50% 的员工每月使用该软件,每天使用该软件的比例为 10%。它是油井分析人员和操作人员获取信息的主要来源

  • 通过开放平台通信标准控制井并通过实时数据和警报进行监视
  • 设置自动试井并批准自动和手动试井
  • 管理自动和手动停机条目
  • 通过注释、设备文档、人工举升分析、流体分析、修井历史和处理历史跟踪整体现场操作

Nexus 是在标准 Microsoft 服务器上开发的自定义应用程序。异常、闭环控制和高级分析都在 Python 中运行。复杂的可视化是通过嵌入式 Spotfire 报告完成的。Nexus 托管在 Microsoft Azure 中。每个屏幕的加载时间为几秒钟或更短,使分析人员能够快速采取行动并继续进行下一个井。

先进的人工举升分析
Oxy 的数据分析团队与 Oxy 的人工举升专家合作,开发气举、ESP、杆泵、液压(喷射泵)、注入器和流动井的高级分析。这些分析可自动用于所有拥有相关设备和实时数据的油井。此外,Nexus 还根据氧升力相关性提供所有井的每日井底压力估计值。对于每口井,Nexus 都会存储设备详细信息以及分析所需的工程规格。这种高水平的细节需要付出巨大的努力,并由需要数据的人工举升团队保持最新状态。

除了人工举升团队之外,供应商还使用电子表格上传器来上传复杂的设备,例如气举设备。使用 Nexus 设备数据的其他示例包括持续改进流程,例如根本原因故障分析和阀门性能评估。

每天早上,油井分析师都会打开 Nexus 仪表板(图 1),这使他们能够快速确定如何优化油井。分析师可以单击异常来查看油井,然后更改控制器设置或关闭油井以防止损坏或提高产量。

氧气_Fig1.JPG
图1“注入 井仪表板。
来源:氧气

Nexus 高级人工举升、杆泵分析
Oxy 的数据分析团队开发了多种用于杆泵分析的解决方案。例如,已经创建并实现了用于计算井下测力计卡的自定义方程。这些卡可以按计划提取,也可以按需提取。机器学习图像识别用于识别标签和其他卡特征。卡标记是分析人员可以用来按例外情况管理油井的例外情况之一。除了图像识别之外,其他机器学习解决方案还可以识别运行时偏差。

此外,还创建了一个基于物理的广义模型,用于估计斜抽油井的井下测力计卡。与业内常用的其他梁举升分析工具仅适用于直井不同,这种广义模型考虑了 3D 井眼几何形状、粘性流体阻尼、杆与油管之间的摩擦等更多细节的影响,从而导致更现实的估计。开发了适合用途的有限差分求解器和其他内部算法来计算井下卡、流体负载、齿轮箱负载、泵标记、泵效率和各种其他参数。这些项目用于创建异常,分析人员可以使用这些异常来管理许多油井。

Nexus 中的其他高级分析和优化模块包括理想卡模拟器、梁负载卸荷优化器、实时杆柱屈曲检测、泵填充检测、泵关闭控制器位置传感器故障检测以及使用基于物理的建模的其他解决方案方法或机器学习方法。Oxy 已经能够使用这些工具以更低的成本提高产量。

未来的挑战
看起来,让 Nexus 达到目前的状态似乎很容易,或者 Nexus 的未来是确定的,但事实并非如此。未来要求 Oxy 不能忽视 Nexus 是其运营效率的重要组成部分,并且公司能够找到合适的人员来从事这些项目。

打造符合运营需求的产品需要人们具备独特的技能——卓越的工程能力,以及对分析、数据、软件和软件开发生命周期的全面理解。这些人的需求量很大,许多人可能对接受大型软件项目的长期性质犹豫不决。此外,管理支持票证、解决用户问题以及引导定制软件开发的渐进节奏等日常工作需要一定的个人性格。管理定制开发的软件正在成为其自己的石油技术工程专业,如油藏工程和生产工程。石油行业要想在定制软件开发方面取得成功,就必须找到一种方法来鼓励工程师领导这些项目。

与供应商产品相比,开发人员没有 Nexus 认证,也没有可用的人才库。任何裁员、退休或人员流失都会导致多个季度的发展放缓,直到团队实力得以重建。此外,这些类型的高技能开发人员有很多选择,因此保留策略对于内部应用程序的生存非常重要。这些问题成为一种新型的运营风险,其中定制的基本运营应用程序必须像任何其他石油和天然气资产一样拥有关键的专业知识和维护。

原文链接/jpt
Data & Analytics

In-House Production Operations Software Manages 27,000 Wells

This article describes how Oxy developed an in-house application to handle critical production operations tasks including surveillance, optimization, downtime entry, and well testing. The application, called Nexus, allows well analysts and production engineers to manage twice the number of wells they were able to manage just 5 years ago.

Oxy.jpg
Source: Oxy

By Kevin Fox; Matt Hackworth, SPE; Alex Salinas; Alex Lach, SPE; and Qian Li, Occidental Petroleum

This article describes how Oxy developed an in-house application to handle critical production operations tasks including surveillance, optimization, downtime entry, and well testing. The application, called Nexus, includes all real-time well data, an analytics platform, closed-loop control, and the automated field processes needed for the daily operation of Oxy’s 27,000 active producers and injectors. Used monthly by more than 50% of Oxy’s US onshore employees and daily by 10%, Nexus allows well analysts and production engineers to manage twice the number of wells they were able to manage just 5 years ago; thus, it has become critical to Oxy’s operating success.

Oxy’s ESP Problem
In 2013, Oxy had 2,000 electrical-submersible-pump (ESP) and 8,000 beam-pump wells. Oxy had an agreement with an oilfield service company to pay $27 million over 5 years to analyze the ESPs using the vendor’s ESP surveillance system. In addition to this high cost, the total ESP failure cost was double that of all the beam-pump wells, even though there were four times as many beam pumps. Communication between the vendor and Oxy was inefficient through email and phone calls.

After Oxy noticed an ESP failure, it was difficult to view the well history because the available well-management software only stored daily averages after 30 days and was slow to use. Additionally, the analytics in software were not sufficient to manage wells by exception. Oxy decided to manage its wells directly and looked for solutions to manage these wells with fewer than 30 users.

Starting Small and Agile
Oxy executives decided to develop a custom solution with a project that would be led from inside the oil and gas production operations department. The core team of one developer and one business lead started a search for commercially available software. After an extensive review, they concluded that the available commercial software could not create exceptions and surveillance plots for more than 6,000 wells. They decided to use OSI PI and a customized application that eventually would become known as Nexus. The Nexus team had full support from the information technology department, the automation team, the business units, and the central engineering group.

From the start the team knew that designing a complicated application like this completely right away was impossible. Thus, the Nexus team used the agile approach, where solutions were provided to the end users before they were complete and designs were adjusted based on their feedback. This iterative approach was used from Day 1 and continues through today, creating a culture among the development team and the application users of continuous improvement to both the application and the business processes in operations.

The first step was expanding the use of OSI PI and developing a tag naming and data standard. Once the tag data were available, the Nexus team developed plots using an OSI PI SharePoint plugin and exceptions using the Oracle database. Functionalities that the ESP well analysts especially liked included the ease of use through their browser, identification of exceptions, the ability to clean up OSI PI data, integration of data from Oxy’s databases, an action tracker, an equipment inventory, dashboards, and integrations with third-party tools. Well analysts used the tool and improved the data. Engineers started using the tool when they realized that Nexus used an open data model and the data collected for Nexus could be used for other projects.

Initial Results
Nexus started delivering value as soon as it was implemented. For example, in 2013, Nexus users found that one ESP was turning in the wrong direction. The direction was reversed in October 2013, and pump intake pressure started decreasing, which increased production and avoided a failure. Right away, it was clear that Nexus would be an important part of the people, process, and technology that would make Oxy successful.

In 2015, Oxy saved $27 million dollars by terminating a 5-year contract for an outside party to manage ESPs. At the same time, ESP runtime increased by 13%. In 2016, gas-lift wells were added to Nexus, which increased production by 3,500 BOPD because of offline production that was not visible in any other system. Bringing on that offline production allowed management to see that Nexus was not just for managing ESPs but could improve all production operations. At this point, the Nexus application worked well for gas lift and ESPs, but it was dependent on SharePoint and an OSI PI plugin, which had a limited life span. Additionally, it was built by one in-house developer with no backup. Oxy had to decide if Nexus was going to be a core solution or if it was going to be a fringe tool that could be allowed to wither away.

Nexus: A Core Solution With Added Capability
After reviewing Nexus’ performance, Oxy executives identified Nexus as the core data source for surveillance and exceptions for gas lift and ESPs and deemed it the future solution for other artificial lift types. The first official funding for Nexus came in 2017 with a multiyear budget and a 12‑person development team. This allowed Nexus to be redesigned as an enterprise application using standard Microsoft on-premise servers as well as the cloud with the same code that vendor applications use to pull and show data from OSI PI. Additionally, this team had the resources to focus on uptime and had backup when a developer was unavailable. Fortunately, the business owner and developer from the initial project stayed on and continued to grow the user relationships that allowed the first version of the tool to be agile and successful.
 
What Is Nexus?
Nexus has 850 unique daily users monitoring 27,000 wells. It is used monthly by over 50% of Oxy’s US onshore employees and daily by 10%. It is the main source for well analysts and operators to

  • Control wells via the Open Platform Communications standard and surveil with real-time data and alarms
  • Set up automated well tests and approve automated and manual well tests
  • Manage automated and manual downtime entry
  • Track overall field operations with notes, equipment documentation, artificial lift analysis, fluid analysis, workover history, and treatment history

Nexus is a custom application developed on standard Microsoft servers. Exceptions, closed-loop control, and advanced analytics all run in Python. Complex visualizations are accomplished through embedded Spotfire reports. Nexus is hosted in Microsoft Azure. Each screen loads in a few seconds or less, making it possible for an analyst to act quickly and move on to the next well.

Advanced Artificial Lift Analysis
Oxy’s data analytics teams have worked with Oxy’s artificial lift specialists to develop advanced analysis for gas lift, ESP, rod pump, hydraulic (jet pumps), injectors, and flowing wells. These analyses are automatically available for all wells that have the relevant equipment and real-time data. Additionally, Nexus provides estimated daily bottomhole pressure for all wells based on an Oxy lift correlation. For each well, Nexus stores equipment details with the engineering specifications required for analysis. This high level of detail requires significant effort and is kept up to date by the artificial lift teams that need the data.

In addition to the artificial lift teams, vendors use spreadsheet uploaders to upload complicated equipment such as gas lift equipment. Other examples of using Nexus’ equipment data are continuous improvement processes such as root-cause-failure analysis and valve-performance evaluations.

Each morning, well analysts open their Nexus dashboard (Fig. 1), which allows them to quickly identify how to optimize their wells. Analysts can click on an exception to view the well, then change controller settings or shut down the well to prevent damage or to improve production.

Oxy_Fig1.JPG
Fig. 1—Injection well dashboard.
Source: Oxy

Nexus Advanced Artificial Lift, Rod Pump Analysis
Oxy’s data analytics team has developed a variety of solutions for rod pump analysis. For example, a custom equation to calculate downhole dynamometer cards has been created and implemented. These cards are pulled on a schedule and can also be pulled on demand. Machine learning image recognition is used to identify tagging and other card features. Card tagging is one of the exceptions analysts can use to manage the wells by exception. In addition to image recognition, other machine learning solutions identify runtime deviations.

Additionally, a generalized physics-based model has been created that estimates downhole dynamometer cards for deviated rod-pumped wells. Unlike other beam lift analysis tools commonly used in the industry that only apply to vertical wells, such a generalized model considers the effects of 3D wellbore geometry, viscous fluid damping, friction between the rod and the tubing, and more detail, thus it leads to a more realistic estimation. A fit-for-purpose finite-difference solver and other in-house algorithms were developed to calculate downhole cards, fluid load, gearbox loading, pump tagging, pump efficiency, and various other parameters. These items are used to create exceptions that analysts can use to manage many wells.

Other advanced analysis and optimization modules in Nexus include the Ideal Card Simulator, Beam Load Shed Optimizer, real-time rod-string buckling detection, pump fillage detection, pump off controller position sensor malfunction detection, and other solutions by either using physics-based modeling methods or machine learning approaches. Oxy has been able to use these tools to improve production at lower cost.

Future Challenges
It might seem that getting Nexus to its current state was easy or that the future of Nexus is certain, but that is not the case. The future requires that Oxy not lose sight of Nexus being a large part of its operational efficiency and that the company can find the appropriate people to work on these projects.

Crafting a product that aligns with operational requirements requires people with a unique blend of skills—excellence in engineering coupled with a comprehensive understanding of analytics, data, software, and the software development lifecycle. These individuals are in high demand, and many may be hesitant to embrace the long-term nature of a major software project. Additionally, the routine of managing support tickets, addressing user concerns, and navigating the gradual pace of custom software development requires a certain personal disposition. Managing custom-developed software is becoming its own petrotechnical engineering specialty like reservoir engineering and production engineering. For the oil industry to succeed in custom software development, it must find a way to encourage engineers to lead these projects.

In contrast to vendor products, there is no Nexus certification for developers or available talent pool. Any layoffs, retirements, or attrition will slow down development for multiple quarters until the team strength can be rebuilt. Additionally, these types of highly skilled developers have many options, so retention strategies are important for the survival of an in-house application. These issues become a new type of operational risk, where a custom-made, essential operations application must have key expertise and maintenance just like any other oil and gas asset.