How elejeune11/mechanical-mnist works
Mechanical-MNIST is a benchmark dataset and research-code repository for simulating heterogeneous materials and building metamodels from MNIST bitmaps. The main workflow maps bitmaps to material properties, runs finite-element simulations, prepares data, trains models, and evaluates or visualizes predictions. The README also documents four loading scenarios and outputs for strain energy, reaction force, and displacement. Source excerpts show parts of the simulation, preparation, training, and plotting code; links among unsampled components are included only where the README documents them.
Main entry points: mnist_img_train.txt.zip MNIST bitmaps · summary_psi_train_all.txt FEA results · create_metamodels Model outputs · Uniaxial_Extension_FEA_train_FEniCS.py Uniaxial train FEA
Components 21
Finite-element simulations
- Uniaxial train FEA
generate_dataset/Uniaxial_Extension_FEA_train_FEniCS.py - Uniaxial test FEA
generate_dataset/Uniaxial_Extension_FEA_test_FEniCS.py - Equibiaxial train FEA
generate_dataset/Equibiaxial_Extension_FEA_train_FEniCS.py - Equibiaxial test FEA
generate_dataset/Equibiaxial_Extension_FEA_test_FEniCS.py - Compression train FEA
generate_dataset/Confined_Compression_FEA_train_FEniCS.py - Compression test FEA
generate_dataset/Confined_Compression_FEA_test_FEniCS.py - Shear train FEA
generate_dataset/Shear_FEA_train_FEniCS.py - Shear test FEA
generate_dataset/Shear_FEA_test_FEniCS.py - FEA results
data/summary_psi_train_all.txt
Dataset preparation
- MNIST bitmaps
data/mnist_img_train.txt.zip - Prepare model inputs
create_metamodels/set_up_input_data.py - Prepared arrays
create_metamodels
Metamodels
- Energy FNN
create_metamodels/nn_regress_psi_fnn.py - Energy CNN
create_metamodels/nn_regress_psi_cnn.py - PyTorch predictions
create_metamodels/pytorch_model_make_predictions.py - Displacement MLPR
create_metamodels/predict_disp_MLPR.py - Bitmap MLPR
create_metamodels/predict_bitmap_MLPR.py - Model outputs
create_metamodels
Evaluation and plots
- Energy error plots
create_metamodels/plot_nn_error_regress_psi.py - Full-field plots
create_metamodels/plot_full_field.py
Other components
- Researcher
Connections 33
- Researcher → Uniaxial train FEA: runs
- Researcher → Uniaxial test FEA: runs
- MNIST bitmaps → Uniaxial train FEA: defines material
README.md - MNIST bitmaps → Uniaxial test FEA: defines material
README.md - MNIST bitmaps → Equibiaxial train FEA: defines material
README.md - MNIST bitmaps → Equibiaxial test FEA: defines material
README.md - MNIST bitmaps → Compression train FEA: defines material
README.md - MNIST bitmaps → Compression test FEA: defines material
README.md - MNIST bitmaps → Shear train FEA: defines material
README.md - MNIST bitmaps → Shear test FEA: defines material
README.md - Uniaxial train FEA → FEA results: produces
README.md - Uniaxial test FEA → FEA results: produces
README.md - Equibiaxial train FEA → FEA results: produces
README.md - Equibiaxial test FEA → FEA results: produces
README.md - Compression train FEA → FEA results: produces
README.md - Compression test FEA → FEA results: produces
README.md - Shear train FEA → FEA results: produces
README.md - Shear test FEA → FEA results: produces
README.md - FEA results → Prepare model inputs: loads results
README.md - MNIST bitmaps → Prepare model inputs: loads bitmaps
README.md - Prepare model inputs → Prepared arrays: saves arrays
create_metamodels/set_up_input_data.py - Prepared arrays → Energy FNN: trains on
create_metamodels/nn_regress_psi_fnn.py - Prepared arrays → Energy CNN: trains on
create_metamodels/nn_regress_psi_cnn.py - Prepared arrays → PyTorch predictions: loads arrays
create_metamodels/pytorch_model_make_predictions.py - Prepared arrays → Displacement MLPR: trains on
README.md - Prepared arrays → Bitmap MLPR: trains on
README.md - Energy FNN → Model outputs: writes predictions
README.md - Energy CNN → Model outputs: writes predictions
README.md - PyTorch predictions → Model outputs: saves predictions
create_metamodels/pytorch_model_make_predictions.py - Displacement MLPR → Model outputs: writes predictions
README.md - Bitmap MLPR → Model outputs: writes predictions
README.md - Model outputs → Energy error plots: compares energy
create_metamodels/plot_nn_error_regress_psi.py - Model outputs → Full-field plots: plots fields
create_metamodels/plot_full_field.py