arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.16964math.NAcs.NA
收藏

DDFEM:一个用于漫射区域方法的 Python 软件包

DDFEM: A Python Package for Diffuse Domain Methods

Mathematics Institute, University of Warwick(华威大学数学研究所)

Luke Benfield, Andreas Dedner

AI总结:

本文提出可扩展 Python 包 ddfem,用相场、有符号距离函数和 UFL 将复杂区域上的 PDE 转换为漫射区域形式,并支持多类边界条件组合及与现有有限元求解器兼容。

摘要:

在复杂区域上求解偏微分方程(PDE)可能带来显著的计算挑战。漫射区域方法(DDM)是一种替代方案,它将偏微分方程重新表述在一个更大、更简单的区域上。原始几何通过相场函数加以表示,并由此嵌入问题中。本文介绍 ddfem,这是一个可扩展的 Python 软件包,旨在提供一个将 PDE 转换为漫射区域表述的框架。我们的目标是让多种不同漫射区域方法的应用更易于使用且更加直接。ddfem 软件包包含通过组合有符号距离函数来直观定义复杂区域的功能,并为一般的二阶发展方程提供多种 DDM 转换器。此外,我们提出了一种新方法,用于在不同边界段上组合多种不同类型的边界条件。该方法通过应用由多个相场导出的归一化权重,来组合漫射区域表述中的附加边界项。我们的软件包所提供的区域定义和漫射区域转换被设计为可与大量现有有限元求解器兼容,且无需修改代码。用户提供的原始(非线性)PDE 以及在扩展区域上得到的转换后 PDE,均使用统一形式语言 UFL 定义;UFL 是一种被许多软件包采用的领域特定语言。我们的实验使用 Dune-Fem 框架进行。

英文摘要:

Solving partial differential equations (PDEs) on complex domains can present significant computational challenges. The Diffuse Domain Method (DDM) is an alternative that reformulates the partial differential equations on a larger, simpler domain. The original geometry is embedded into the problem by representing it with a phase-field function. This paper introduces DDFEM, an extensible Python package to provide a framework for transforming PDEs into a Diffuse Domain formulation. We aim to make the application of a variety of different Diffuse Domain approaches more accessible and straightforward to use. The DDFEM package includes features to intuitively define complex domains by combining signed distance functions and provides a number of Diffuse Domain transformers for general second-order evolution equations. In addition, we present a new approach for combining multiple boundary conditions of different types on distinct boundary segments. This is achieved by applying a normalised weighting, derived from the component signed distance functions, to combine the additional boundary terms in the Diffuse Domain formulations without requiring additional phase fields. The domain definition and Diffuse Domain transformation provided by our package are designed to be compatible with a wide range of existing finite element solvers without requiring code alterations. Both the original (non-linear) PDEs provided by the user and the resulting transformed PDEs on the extended domain are defined using the Unified Form Language (UFL). Here we focus on the software implementation and demonstrate its effectiveness across a range of problems.

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

↑