Extended residual-adaptive physics-informed neural network experiments for phase-field fracture prediction.
This repository contains a research prototype for learning fracture and damage evolution with physics-informed neural networks. It explores a two-stage workflow that starts from a baseline phase-field PINN and extends it with domain decomposition, interface consistency, and residual-based adaptive sampling around the crack region.
Physics-informed neural networks are attractive for mechanics problems because they can encode governing equations and physical constraints. Fracture problems are especially challenging because the solution develops sharp localised damage, strong gradients, and crack-tip singular behaviour.
This project investigates whether domain decomposition and adaptive sampling can improve PINN reliability for phase-field fracture prediction.
The X-RAS-PINN workflow combines:
- a displacement network and damage network
- phase-field fracture energy terms
- domain partitioning into crack-near and far-field regions
- interface losses for consistency between subdomains
- residual/adaptive sampling guided by strain energy density and damage gradients
- ablation experiments for partitioning, interface loss, and adaptive sampling
solver_pinn.py- baseline phase-field PINN componentssolver_xras.py- X-RAS-PINN domain-decomposition and adaptive-sampling solverconfig.py- shared configuration for debug and full experimentsRun_experiments.py- experiment runner for baseline, ablation, and parameter sweepstest_sent_pinn.py- baseline SENT-with-notch experimenttest_sent_xras.py- X-RAS phase-2 experimentsphase1_phase2_bridge.py- workflow bridge between training stagesoutputs/- generated checkpoints and comparison figures
python -m venv .venv
source .venv/bin/activate
pip install torch numpy matplotlib
python Run_experiments.py --exp phase1 --mode debug
python Run_experiments.py --exp ablation --mode debugFor a fuller run:
python Run_experiments.py --exp all --mode full- baseline phase-field PINN for a notched specimen
- X-RAS-PINN with domain decomposition and interface loss
- ablation without interface loss
- ablation without residual adaptive sampling
- comparison between baseline and X-RAS midline predictions
- scientific machine learning
- physics-informed neural networks
- phase-field fracture modelling
- domain decomposition
- adaptive sampling
- PyTorch experimentation
- model evaluation and ablation design
Research prototype. The repository is intended to document exploratory experiments rather than provide a polished simulation package.