EI、Scopus 收录
中文核心期刊

基于深度强化学习的笛卡尔网格自适应方法

DEEP REINFORCEMENT LEARNING FOR ADAPTIVE CARTESIAN MESH REFINEMENT

  • 摘要: 在笛卡尔网格数值模拟中, 物理量急剧变化的区域往往采用网格自适应加密以确保计算精度. 然而, 传统的基于梯度的自适应标准依赖于预定义的阈值, 可能会导致过度细化, 造成网格数量增加太多影响计算效率. 此外, 现有深度强化学习(Deep Reinforcement Learning, DRL)驱动的网格自适应加密(Adaptive Mesh Refinement, AMR)方法主要面向有限元框架, 难以直接迁移至有限差分体系, 且自适应决策与网格光顺的耦合机制尚未纳入强化学习框架. 针对这一问题, 本文设计了强化学习智能体的观测空间, 建立了基于积分形式的奖励函数, 使智能体学习符合有限差分数值特性的自适应策略. 并将相邻网格层级差纳入观测空间, 构造光顺惩罚项嵌入奖励函数, 使智能体在执行细化/粗化操作的同时主动满足光顺约束, 实现自适应决策与网格光顺的同步执行. 所提出的强化学习方法在基准模拟算例中进行了评估. 结果表明, 在有限的网格预算下, 深度强化学习生成的网格能更有效地捕捉物理量梯度, 从而产生更低的误差值. 此外, 智能体在执行细化操作的同时还能满足缓冲层条件, 从而显著提高网格利用率和计算效率. 我们将深度强化学习方法与所开发的加权最小二乘悬挂新生单元插值算法结合, 进行了静止和运动边界的非定常流动问题求解, 验证了该方法的有效性和泛化能力.

     

    Abstract: In numerical simulations using Cartesian grids, regions with sharp variations in physical quantities are typically refined adaptively to ensure computational accuracy. However, conventional gradient-based adaptation criteria rely on predefined thresholds, which may lead to excessive refinement and an undue increase in mesh count, thereby impairing computational efficiency. Furthermore, existing deep reinforcement learning (Deep Reinforcement Learning, DRL) driven adaptive mesh refinement (Adaptive Mesh Refinement, AMR) methods are primarily designed for finite element frameworks, making them difficult to directly transfer to finite difference systems, and the coupling mechanism between adaptive decision-making and mesh smoothing has not yet been incorporated into the reinforcement learning framework. To address this issue, we design an observation space for the reinforcement learning agent, establish a reward function in integral form, and enable the agent to learn an adaptation strategy consistent with the numerical properties of finite difference methods. Additionally, the adjacency level difference is incorporated into the observation space, and a smoothing penalty term is constructed and embedded into the reward function, allowing the agent to actively satisfy smoothing constraints while executing refinement or coarsening operations, thereby achieving synchronized adaptive decision-making and mesh smoothing. The proposed reinforcement learning approach is evaluated on benchmark simulation cases. Results demonstrate that, under a limited mesh budget, the meshes generated by deep reinforcement learning capture physical gradients more effectively, leading to lower error levels. Moreover, the agent satisfies buffer layer conditions while executing refinement operations, significantly improving mesh utilization and computational efficiency. The DRL method is integrated with a developed weighted least squares interpolation algorithm for newly created hanging nodes, and successfully applied to unsteady flow problems with stationary and moving boundaries, achieving favorable results.

     

/

返回文章
返回