Downloads · 30 days
0
guanwencan/Transformer-PINN
Transformer-PINN is a machine learning model from guanwencan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Code for paper: Mechanism of micro-damage evolution in rocks under multiple coupled cyclic stresses
Downloads · 30 days
0
Access
Public
Updated Nov 27, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py134 KB · 94%
From the Hugging Face model README
Code for paper: Mechanism of micro-damage evolution in rocks under multiple coupled cyclic stresses
Python 3.8+, PyTorch 2.0+, numpy, pandas, scikit-learn, matplotlib
Install: pip install -r requirements.txt
5D feature vector: pH (1-7), FN (5-40), FT (10-40), T (25-900), phase (0 or 1)
72D angular distribution representing crack count per 5-degree bin
Training:
python train.py
Inference:
python inference.py
model.py - network architecture
data_loader.py - data processing
train.py - training script
inference.py - prediction script
Mogi-Coulomb yield criterion
Weibull strength distribution
Energy-based damage evolution
D0 = 1 - (1-Dft)(1-Dch)(1-Dth)
lambda = 1 - D0