时间和空间离散化对伴随算子的影响:平稳和瞬态饱和流的例子

IF 4.2 2区 环境科学与生态学 Q1 WATER RESOURCES
Antoine Collet , Irina Sin , Hervé Chauris , Valérie Langlais , Olivier Regnault
{"title":"时间和空间离散化对伴随算子的影响:平稳和瞬态饱和流的例子","authors":"Antoine Collet ,&nbsp;Irina Sin ,&nbsp;Hervé Chauris ,&nbsp;Valérie Langlais ,&nbsp;Olivier Regnault","doi":"10.1016/j.advwatres.2025.105070","DOIUrl":null,"url":null,"abstract":"<div><div>This study compares the continuous (<em>differentiate - then - discretize</em>) and discrete (<em>discretize - then - differentiate</em>) adjoint derivation approaches in the context of adjoint-based automatic optimization. The objective is to study some of the pitfalls associated with spatial and temporal discretization of the adjoint state method, the accuracy of the resulting gradient estimate, and its impact on the convergence cost to reach the optimum solution. It is illustrated in the context of a classical and well documented saturated flow problem. We first present insights of the complete formulations and discretizations of the saturated transient and stationary flow equations, the continuous adjoint equations and their counterparts the discrete adjoint equations for the finite volume method, showing it on the example of Voronoi type mesh. The reference gradient to check both derivation and implementation is computed by finite difference approximation. The consistency between the continuous and discrete adjoint methods is found to depend on the discretization scheme used to solve the forward problem. The time discretization scheme used in the forward problem is preserved in the adjoint equations, and affects both the adjoint terminal condition and the gradient expressions. This is not apparent in the continuous approach. Reproductible numerical applications are provided through the PyRTID python code. The use of a variable time step affects the time derivative of the adjoint equations, and also impacts the analytical expression of the gradient with respect to the initial hydraulic head (initial state). The discretization of the adjoint sources is also critical when simulated values are interpolated both spatially and temporally to match observations. The derivations become more complex when observation errors are correlated and when the observation sampler is non-linear. Numerical experiments show that the use of an incorrect adjoint formulation can lead to incorrect gradients with shifts in both amplitude and localization. Investigation of agreement with the finite difference approximation shows that, if implemented correctly, the residuals between the adjoint state method and the finite difference gradients must be white noise following a zero-centered Gaussian distribution with a standard deviation several orders of magnitude smaller than the gradient values. Mesh refinement has no effect on the gradient accuracy. The main conclusion is that the <em>discretize-then-differentiate</em> approach is constrained on the discretized space contrary to the <em>differentiate-then-discretize</em> as the former integrates the discretization of the forward problem. The <em>discretize-then-differentiate</em> approach makes the derivation more explicit, particularly with respect to boundary conditions, and it is therefore advised regardless of the problem at hand.</div></div>","PeriodicalId":7614,"journal":{"name":"Advances in Water Resources","volume":"205 ","pages":"Article 105070"},"PeriodicalIF":4.2000,"publicationDate":"2025-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Impact of time and spatial discretization on adjoint operators: Example of stationary and transient saturated flows\",\"authors\":\"Antoine Collet ,&nbsp;Irina Sin ,&nbsp;Hervé Chauris ,&nbsp;Valérie Langlais ,&nbsp;Olivier Regnault\",\"doi\":\"10.1016/j.advwatres.2025.105070\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>This study compares the continuous (<em>differentiate - then - discretize</em>) and discrete (<em>discretize - then - differentiate</em>) adjoint derivation approaches in the context of adjoint-based automatic optimization. The objective is to study some of the pitfalls associated with spatial and temporal discretization of the adjoint state method, the accuracy of the resulting gradient estimate, and its impact on the convergence cost to reach the optimum solution. It is illustrated in the context of a classical and well documented saturated flow problem. We first present insights of the complete formulations and discretizations of the saturated transient and stationary flow equations, the continuous adjoint equations and their counterparts the discrete adjoint equations for the finite volume method, showing it on the example of Voronoi type mesh. The reference gradient to check both derivation and implementation is computed by finite difference approximation. The consistency between the continuous and discrete adjoint methods is found to depend on the discretization scheme used to solve the forward problem. The time discretization scheme used in the forward problem is preserved in the adjoint equations, and affects both the adjoint terminal condition and the gradient expressions. This is not apparent in the continuous approach. Reproductible numerical applications are provided through the PyRTID python code. The use of a variable time step affects the time derivative of the adjoint equations, and also impacts the analytical expression of the gradient with respect to the initial hydraulic head (initial state). The discretization of the adjoint sources is also critical when simulated values are interpolated both spatially and temporally to match observations. The derivations become more complex when observation errors are correlated and when the observation sampler is non-linear. Numerical experiments show that the use of an incorrect adjoint formulation can lead to incorrect gradients with shifts in both amplitude and localization. Investigation of agreement with the finite difference approximation shows that, if implemented correctly, the residuals between the adjoint state method and the finite difference gradients must be white noise following a zero-centered Gaussian distribution with a standard deviation several orders of magnitude smaller than the gradient values. Mesh refinement has no effect on the gradient accuracy. The main conclusion is that the <em>discretize-then-differentiate</em> approach is constrained on the discretized space contrary to the <em>differentiate-then-discretize</em> as the former integrates the discretization of the forward problem. The <em>discretize-then-differentiate</em> approach makes the derivation more explicit, particularly with respect to boundary conditions, and it is therefore advised regardless of the problem at hand.</div></div>\",\"PeriodicalId\":7614,\"journal\":{\"name\":\"Advances in Water Resources\",\"volume\":\"205 \",\"pages\":\"Article 105070\"},\"PeriodicalIF\":4.2000,\"publicationDate\":\"2025-08-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Advances in Water Resources\",\"FirstCategoryId\":\"93\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0309170825001848\",\"RegionNum\":2,\"RegionCategory\":\"环境科学与生态学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"WATER RESOURCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Advances in Water Resources","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0309170825001848","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"WATER RESOURCES","Score":null,"Total":0}
引用次数: 0

摘要

在基于伴随的自动优化中,对连续(微分-离散)和离散(离散-微分)伴随导数方法进行了比较。目的是研究伴随状态法时空离散化的一些缺陷、梯度估计的准确性及其对达到最优解的收敛代价的影响。它是在一个经典的和充分记录的饱和流动问题的背景下说明。我们首先提出了饱和瞬态和稳态流动方程、连续伴随方程及其对应的有限体积法离散伴随方程的完整公式和离散化的见解,并以Voronoi型网格为例进行了展示。用有限差分逼近法计算了用于验证推导和实现的参考梯度。发现连续和离散伴随方法之间的一致性取决于用于求解正演问题的离散化方案。在伴随方程中保留了正演问题中所用的时间离散化格式,并且对伴随端点条件和梯度表达式都有影响。这在连续方法中并不明显。通过PyRTID python代码提供了可重现的数值应用程序。变量时间步长的使用会影响伴随方程的时间导数,也会影响梯度相对于初始水头(初始状态)的解析表达式。当模拟值在空间和时间上插值以匹配观测值时,伴随源的离散化也很关键。当观测误差相关时,当观测采样器为非线性时,推导过程变得更加复杂。数值实验表明,使用不正确的伴随公式会导致不正确的梯度,并且振幅和局部化都会发生变化。对与有限差分近似的一致性的研究表明,如果执行正确,伴随状态法与有限差分梯度之间的残差必须是服从零中心高斯分布的白噪声,其标准差比梯度值小几个数量级。网格细化对梯度精度没有影响。主要结论是,与先微分后离散的方法相反,先离散后离散的方法受到离散空间的约束,因为前者集成了正问题的离散化。先离散后微分的方法使推导更显式,特别是关于边界条件,因此无论手头的问题如何,都建议这样做。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Impact of time and spatial discretization on adjoint operators: Example of stationary and transient saturated flows
This study compares the continuous (differentiate - then - discretize) and discrete (discretize - then - differentiate) adjoint derivation approaches in the context of adjoint-based automatic optimization. The objective is to study some of the pitfalls associated with spatial and temporal discretization of the adjoint state method, the accuracy of the resulting gradient estimate, and its impact on the convergence cost to reach the optimum solution. It is illustrated in the context of a classical and well documented saturated flow problem. We first present insights of the complete formulations and discretizations of the saturated transient and stationary flow equations, the continuous adjoint equations and their counterparts the discrete adjoint equations for the finite volume method, showing it on the example of Voronoi type mesh. The reference gradient to check both derivation and implementation is computed by finite difference approximation. The consistency between the continuous and discrete adjoint methods is found to depend on the discretization scheme used to solve the forward problem. The time discretization scheme used in the forward problem is preserved in the adjoint equations, and affects both the adjoint terminal condition and the gradient expressions. This is not apparent in the continuous approach. Reproductible numerical applications are provided through the PyRTID python code. The use of a variable time step affects the time derivative of the adjoint equations, and also impacts the analytical expression of the gradient with respect to the initial hydraulic head (initial state). The discretization of the adjoint sources is also critical when simulated values are interpolated both spatially and temporally to match observations. The derivations become more complex when observation errors are correlated and when the observation sampler is non-linear. Numerical experiments show that the use of an incorrect adjoint formulation can lead to incorrect gradients with shifts in both amplitude and localization. Investigation of agreement with the finite difference approximation shows that, if implemented correctly, the residuals between the adjoint state method and the finite difference gradients must be white noise following a zero-centered Gaussian distribution with a standard deviation several orders of magnitude smaller than the gradient values. Mesh refinement has no effect on the gradient accuracy. The main conclusion is that the discretize-then-differentiate approach is constrained on the discretized space contrary to the differentiate-then-discretize as the former integrates the discretization of the forward problem. The discretize-then-differentiate approach makes the derivation more explicit, particularly with respect to boundary conditions, and it is therefore advised regardless of the problem at hand.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Advances in Water Resources
Advances in Water Resources 环境科学-水资源
CiteScore
9.40
自引率
6.40%
发文量
171
审稿时长
36 days
期刊介绍: Advances in Water Resources provides a forum for the presentation of fundamental scientific advances in the understanding of water resources systems. The scope of Advances in Water Resources includes any combination of theoretical, computational, and experimental approaches used to advance fundamental understanding of surface or subsurface water resources systems or the interaction of these systems with the atmosphere, geosphere, biosphere, and human societies. Manuscripts involving case studies that do not attempt to reach broader conclusions, research on engineering design, applied hydraulics, or water quality and treatment, as well as applications of existing knowledge that do not advance fundamental understanding of hydrological processes, are not appropriate for Advances in Water Resources. Examples of appropriate topical areas that will be considered include the following: • Surface and subsurface hydrology • Hydrometeorology • Environmental fluid dynamics • Ecohydrology and ecohydrodynamics • Multiphase transport phenomena in porous media • Fluid flow and species transport and reaction processes
×
引用
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学术官方微信