arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.06535cs.MScs.NAmath.NA
收藏

偏微分方程的自动化量纲分析

Automated dimensional analysis for PDEs

University of Luxembourg(卢森堡大学)

Michal Habera, Andreas Zilian

AI总结:

提出将物理单位集成到统一形式语言(UFL)的框架,通过符号Quantity类跟踪单位,利用图遍历自动进行一致性检查和无量纲化,改善Navier-Stokes等问题的条件数并检测浮点误差。

摘要:

物理单位是科学计算的基础。然而,许多有限元框架缺乏对量纲分析的内置支持。在这项工作中,我们提出了一个系统框架,将物理单位集成到统一形式语言(UFL)中。我们实现了一个符号化的\texttt{Quantity}类,用于跟踪变分形式中的单位。该实现利用了物理维度的阿贝尔群结构。我们将它们表示为$\mathbb{Q}^n$中的向量,以简化操作并提高性能。一种基于图的访问者模式遍历表达式树,以自动进行一致性检查和因式分解。我们证明,这种自动无量纲化起到了全算子预条件的最简形式的作用。它作为一种物理感知的对角预条件器,在组装前平衡线性系统。Navier-Stokes方程的数值实验表明,这改善了鞍点矩阵的条件数。对Neo-Hooke超弹性的分析突出了在小变形区域中浮点抵消误差的检测。最后,Poisson-Nernst-Planck系统示例说明了如何处理具有导出缩放参数的耦合多物理场问题。尽管该实现针对FEniCSx框架,但概念是通用的,并且易于适应其他使用UFL的有限元库,如Firedrake或DUNE。

英文摘要:

Physical units are fundamental to scientific computing. However, many finite element frameworks lack built-in support for dimensional analysis. In this work, we present a systematic framework for integrating physical units into the Unified Form Language (UFL). We implement a symbolic \texttt{Quantity} class to track units within variational forms. The implementation exploits the abelian group structure of physical dimensions. We represent them as vectors in $\mathbb{Q}^n$ to simplify operations and improve performance. A graph-based visitor pattern traverses the expression tree to automate consistency checks and factorization. We demonstrate that this automated nondimensionalization functions as the simplest form of Full Operator Preconditioning. It acts as a physics-aware diagonal preconditioner that equilibrates linear systems prior to assembly. Numerical experiments with the Navier--Stokes equations show that this improves the condition number of the saddle-point matrix. Analysis of Neo-Hooke hyperelasticity highlights the detection of floating-point cancellation errors in small deformation regimes. Finally, the Poisson--Nernst--Planck system example illustrates the handling of coupled multiphysics problems with derived scaling parameters. Although the implementation targets the FEniCSx framework, the concepts are general and easily adaptable to other finite element libraries using UFL, such as Firedrake or DUNE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑