How li-yongcheng/fem-pinn works
FEM-PINN is a GraphGym-based training application for graph-neural-network prediction of engineering-structure performance, demonstrated on a door frame. Its principal workflow is to launch training, load configuration and graph data, build a model, train and evaluate it, and aggregate results across seeds. The repository also supplies example GraphGym extension points for model components and training behavior. The README describes the dataset and prediction goal; sampled source shows orchestration and extension-package imports, but not the implementations of the examples or data-loading internals.
Main entry points: __init__.py Custom extensions · main.py Training entrypoint · encoder/example.py Graph encoder · layer/example.py Graph layer
Components 22
Training workflow
- Training entrypoint
main.py - GraphGym runtime
- Data module
- Model builder
- Train and evaluate
- Run aggregation
Model extensions
- Custom extensions
custom_graphgym/__init__.py - Graph encoder
custom_graphgym/encoder/example.py - Graph layer
custom_graphgym/layer/example.py - GNN network
custom_graphgym/network/example.py - Model stage
custom_graphgym/stage/example.py - Prediction head
custom_graphgym/head/example.py - Graph pooling
custom_graphgym/pooling/example.py
Training extensions
- Custom config
custom_graphgym/config/example.py - Custom loader
custom_graphgym/loader/example.py - Custom loss
custom_graphgym/loss/example.py - Custom optimizer
custom_graphgym/optimizer/example.py - Custom activation
custom_graphgym/act/example.py - Graph transforms
custom_graphgym/transform
Inputs and results
- Graph dataset
datasets - Aggregated results
Other components
- Training user
Connections 21
- Training user → Training entrypoint: launches
README.md - Training entrypoint → Custom extensions: imports
main.py - Custom extensions → Graph encoder: exports
custom_graphgym/__init__.py - Custom extensions → Graph layer: exports
custom_graphgym/__init__.py - Custom extensions → GNN network: exports
custom_graphgym/__init__.py - Custom extensions → Model stage: exports
custom_graphgym/__init__.py - Custom extensions → Prediction head: exports
custom_graphgym/__init__.py - Custom extensions → Graph pooling: exports
custom_graphgym/__init__.py - Custom extensions → Custom config: exports
custom_graphgym/__init__.py - Custom extensions → Custom loader: exports
custom_graphgym/__init__.py - Custom extensions → Custom loss: exports
custom_graphgym/__init__.py - Custom extensions → Custom optimizer: exports
custom_graphgym/__init__.py - Custom extensions → Custom activation: exports
custom_graphgym/__init__.py - Custom extensions → Graph transforms: exports
custom_graphgym/__init__.py - Training entrypoint → GraphGym runtime: configures
main.py - Training entrypoint → Data module: creates
main.py - Data module → Graph dataset: loads
- Training entrypoint → Model builder: creates model
main.py - Training entrypoint → Train and evaluate: trains
main.py - Training entrypoint → Run aggregation: aggregates
main.py - Run aggregation → Aggregated results: writes