一种无矩阵、可微分的PyTorch相场断裂求解器:公式、基准测试与反分析
A matrix-free, differentiable PyTorch solver for phase-field fracture: Formulation, benchmarks, and inverse analysis
AI总结:
提出一种基于PyTorch的无矩阵相场断裂求解器,支持CPU/GPU,通过元素张量收缩和散射累加避免全局刚度矩阵组装,利用隐式微分实现可微性,在基准测试中验证了精度,并通过L-BFGS优化从裂纹模式反演断裂能G_c。
摘要:
本文提出了一种无矩阵、开源的PyTorch求解器,用于在中央处理器(CPU)和图形处理器(GPU)上进行相场断裂模拟,无需自定义编译扩展。在显式动力学路径中,有限元操作被公式化为基于散射累加的元素张量收缩,从而从核心时间步进循环中移除了全局稀疏力学刚度组装。支持Ambrosio-Tortorelli正则化(AT1和AT2)、多种能量分解(谱分解、体积-偏量分解和星凸分解)以及平面应变或平面应力假设。显式力学内核与PyTorch的自动微分引擎(autograd)兼容,而隐式、有界约束的损伤求解被封装在自定义反向规则中。该规则通过共轭梯度(CG)线性求解实现隐式微分,并使内存与内部CG迭代次数无关。同一实现无需修改即可在macOS、Linux和Windows上运行,并已在单个NVIDIA A100 GPU上处理了约$10^6$个节点的网格。该求解器与四个动态断裂案例(直裂纹扩展、剪切诱导偏折、动态分叉和穿孔板中的裂纹-孔洞相互作用)以及两个准静态案例(单边缺口拉伸和带缺口孔板)进行了比较。作为可微性演示,通过PyTorch梯度经过正向求解和有限内存Broyden-Fletcher-Goldfarb-Shanno(L-BFGS)优化,从观察到的裂纹模式中恢复了标量断裂能$G_c$。对于玻璃,经过三个接受的L-BFGS状态后,$G_c$的相对误差低于$10^{-3}$;对于氧化铝,经过两个状态后达到相同精度。该实现可扩展并与可微优化和机器学习组件结合。
英文摘要:
A matrix-free, open-source PyTorch solver is presented for phase-field fracture on central processing units (CPUs) and graphics processing units (GPUs) without custom compiled extensions. In the explicit dynamic pathway, finite-element operations are formulated as element-wise tensor contractions with scatter-based accumulation, removing global sparse mechanics-stiffness assembly from the core time-stepping loop. Both Ambrosio-Tortorelli regularisations (AT1 and AT2), multiple energy decompositions (spectral, volumetric-deviatoric, and star-convex), and plane strain or plane stress assumptions are supported. The explicit mechanics kernels are compatible with PyTorch's automatic differentiation engine (autograd), while the implicit, bound-constrained damage solve is wrapped in a custom backward rule. This rule implements implicit differentiation through the conjugate-gradient (CG) linear solve and keeps memory independent of the internal CG iteration count. The same implementation runs unmodified across macOS, Linux, and Windows, and has been run on meshes of order $10^6$ nodes on a single NVIDIA A100 GPU. The solver is compared against four dynamic fracture cases (straight crack propagation, shear-induced kinking, dynamic branching, and crack-hole interaction in perforated plates) and two quasi-static cases (single-edge notched tension and a notched-holed plate). As a differentiability demonstration, the scalar fracture energy $G_c$ is recovered from observed crack patterns using PyTorch gradients through the forward solve and limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) optimisation. Recovery of $G_c$ with relative error below $10^{-3}$ is achieved after three accepted L-BFGS states for glass and two for alumina. The implementation can be extended and combined with differentiable optimisation and machine-learning components.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。