Skip to content

Latest commit

 

History

History
56 lines (28 loc) · 2.54 KB

README.md

File metadata and controls

56 lines (28 loc) · 2.54 KB

data

This directory contains simulation data and setup details for five mechanical models: OnceClampedBeam, TwiceClampedBeam, TwistingBeam, Liver and LeftVentricle.

The above datasets have been already been processed into a format suitable for running emulation, as described in the parent directory README.md.

For completeness, data processing code is provided here. This code is contained inside data_process_utils.py, which can be called using data_main.py as is detailed below. The requirement formats for the raw unprocessed data to allow the above scripts to run are detailed in DATA_FORMAT_REQUIREMENTS.md. We also provide an example of an unprocessed dataset generated using FEniCS in TwistingBeamUnprocessed.

Note that an "unprocessed" dataset will still require some pre-processing of the results from e.g. FEniCS - for an example of how to apply this pre-processing, see FenicsMeshProcessingLV.ipynb.

For more details on augmented graph graph generation (i.e. the use of virtual nodes/edges), see Section 2.3 of Dalton et. al (2022) and the associated GitHub repository.

Processing Data

All datasets were processes by calling data_main.py with default parameters. For instance, to process the data in TwistingBeamUnprocessed, run:

python -m data_main --data_dir="TwistingBeamUnprocessed"

Directory Layout

Files:

Main script for processing raw data into format suitable for PIGNN emulation

Utility functions for processing raw data

Details of the required format for raw data

Subdirectories:

Models used in Section 3.1 of the manuscript

Model with 343 nodes used in Section 3.2 of the manuscript

Model used in Section 3.3 of the manuscript

Slighly different model to that used in Section 3.4 of the manuscript - for details, see the README in parent directory