Physics-Constrained Neural Network (PcNN): Phase Behavior Modeling for Complex Reservoir Fluids

Yiteng Li, Xupeng He, Zhen Zhang, M. AlSinan, H. Kwak, H. Hoteit
{"title":"Physics-Constrained Neural Network (PcNN): Phase Behavior Modeling for Complex Reservoir Fluids","authors":"Yiteng Li, Xupeng He, Zhen Zhang, M. AlSinan, H. Kwak, H. Hoteit","doi":"10.2118/212209-ms","DOIUrl":null,"url":null,"abstract":"\n The highly nonlinear nature of equation-of-state-based (EOS-based) flash calculations encages high-fidelity compositional simulation, as most of the CPU time is spent on detecting phase stability and calculating equilibrium phase amounts and compositions. With the rapid development of machine learning (ML) techniques, they are growing to substitute classical iterative solvers for speeding up flash calculations.\n However, conventional data-driven neural networks fail to account for physical constraints, like chemical potential equilibrium (equivalent to fugacity equality in the PT flash formulation) and interphase/intraphase mass conservation. In this work, we propose a physics-constrained neural network (PcNN) that first conserves both fugacity equality and mass balance constraints. To ease the inclusion of fugacity equality, it is reformulated in terms of equilibrium ratios and then introduced with a relaxation parameter such that phase split calculations are extended to the single-phase regime. This makes it technologically feasible to incorporate the fugacity equality constraint into the proposed PcNN model without any computational difficulty.\n The workflow for the development of the proposed PcNN model includes four steps. Step 1: Perform the constrained Latin hypercube sampling (LHS) to generate representative mixtures covering a variety of fluid types, including wet gas, gas condensate, volatile oil, and black oil. Step 2: Conduct PT flash calculations using the Peng-Robinson (PR) EOS for each fluid mixture. A wide range of reservoir pressures and temperatures are considered, from which we sample the training data for each fluid mixture through grid search. Step 3: Build an optimized PcNN model by including the fugacity equality and mass conservation constraints in the loss function. Bayesian optimization is used to determine the optimal hyperparameters. Step 4: Validate the PcNN model. In this step, we conduct blind validation by comparing it with the iterative PT flash algorithm.","PeriodicalId":225811,"journal":{"name":"Day 1 Tue, March 28, 2023","volume":"12 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-03-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Day 1 Tue, March 28, 2023","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2118/212209-ms","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The highly nonlinear nature of equation-of-state-based (EOS-based) flash calculations encages high-fidelity compositional simulation, as most of the CPU time is spent on detecting phase stability and calculating equilibrium phase amounts and compositions. With the rapid development of machine learning (ML) techniques, they are growing to substitute classical iterative solvers for speeding up flash calculations. However, conventional data-driven neural networks fail to account for physical constraints, like chemical potential equilibrium (equivalent to fugacity equality in the PT flash formulation) and interphase/intraphase mass conservation. In this work, we propose a physics-constrained neural network (PcNN) that first conserves both fugacity equality and mass balance constraints. To ease the inclusion of fugacity equality, it is reformulated in terms of equilibrium ratios and then introduced with a relaxation parameter such that phase split calculations are extended to the single-phase regime. This makes it technologically feasible to incorporate the fugacity equality constraint into the proposed PcNN model without any computational difficulty. The workflow for the development of the proposed PcNN model includes four steps. Step 1: Perform the constrained Latin hypercube sampling (LHS) to generate representative mixtures covering a variety of fluid types, including wet gas, gas condensate, volatile oil, and black oil. Step 2: Conduct PT flash calculations using the Peng-Robinson (PR) EOS for each fluid mixture. A wide range of reservoir pressures and temperatures are considered, from which we sample the training data for each fluid mixture through grid search. Step 3: Build an optimized PcNN model by including the fugacity equality and mass conservation constraints in the loss function. Bayesian optimization is used to determine the optimal hyperparameters. Step 4: Validate the PcNN model. In this step, we conduct blind validation by comparing it with the iterative PT flash algorithm.
物理约束神经网络(PcNN):复杂油藏流体相行为建模
基于状态方程(eos)的闪存计算具有高度非线性的特性,因此需要进行高保真成分模拟,因为大部分CPU时间都花在检测相位稳定性和计算平衡相位量和组成上。随着机器学习(ML)技术的快速发展,它们正在取代经典的迭代求解器来加速闪存计算。然而,传统的数据驱动神经网络无法考虑物理约束,如化学势平衡(相当于PT闪蒸配方中的逸度相等)和相间/相内质量守恒。在这项工作中,我们提出了一种物理约束神经网络(PcNN),它首先守恒逸度相等和质量平衡约束。为了简化逸度等式的包含,它被重新表述为平衡比,然后引入松弛参数,使相分裂计算扩展到单相状态。这使得将逸度等式约束纳入PcNN模型在技术上是可行的,并且没有任何计算困难。提出的PcNN模型的开发工作流程包括四个步骤。步骤1:执行受限拉丁超立方体采样(LHS),生成涵盖各种流体类型的代表性混合物,包括湿气、凝析油、挥发油和黑油。步骤2:使用Peng-Robinson (PR) EOS对每种流体混合物进行PT闪蒸计算。考虑了储层压力和温度的广泛范围,并通过网格搜索对每种流体混合物的训练数据进行采样。步骤3:在损失函数中加入逸度等式和质量守恒约束,构建优化后的PcNN模型。采用贝叶斯优化方法确定最优超参数。步骤4:验证PcNN模型。在这一步中,我们将其与迭代PT flash算法进行对比,进行盲验证。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信