使用 FEM 和自动微分工具在 Python 中最小化非线性能量
Minimization of Nonlinear Energies in Python Using FEM and Automatic Differentiation Tools
AI总结:
本文利用 FEM 与自动微分在 Python 中实现非线性能量最小化,通过 p-Laplacian、Ginzburg-Landau 和 Neo-Hookean 基准验证,大规模问题速度较 MATLAB 快约十倍。
摘要:
本文研究了 Python 生态系统求解非线性能量最小化问题的能力,重点关注从传统 MATLAB 方法向 Python 高级计算工具(如自动微分)的过渡。我们通过分析三个基准问题——p-Laplacian、Ginzburg-Landau 模型和 Neo-Hookean 超弹性——展示了 Python 最小化非线性能量的精简方法。该方法仅需提供能量泛函本身,使其成为求解此类问题的简单而高效的途径。结果表明,对于大规模问题,其实现比 MATLAB 实现快约十倍。我们的发现凸显了 Python 在科学计算中的高效性和易用性,确立其作为实现复杂数学模型和加速数值模拟开发的优选。
英文摘要:
This contribution examines the capabilities of the Python ecosystem to solve nonlinear energy minimization problems, with a particular focus on transitioning from traditional MATLAB methods to Python's advanced computational tools, such as automatic differentiation. We demonstrate Python's streamlined approach to minimizing nonlinear energies by analyzing three problem benchmarks - the p-Laplacian, the Ginzburg-Landau model, and the Neo-Hookean hyperelasticity. This approach merely requires the provision of the energy functional itself, making it a simple and efficient way to solve this category of problems. The results show that the implementation is about ten times faster than the MATLAB implementation for large-scale problems. Our findings highlight Python's efficiency and ease of use in scientific computing, establishing it as a preferable choice for implementing sophisticated mathematical models and accelerating the development of numerical simulations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。