Skip to content

Commit d1b6b7b

Browse files
Extend crash datapipe, readers, and update README (#1194)
* update license headers- second try * modularize reader * configurable features, node features as a dict of tensors * update readme * formatting * add vtp reader, update readme * add crash animation * readme reformatting * update readme * add roof crash and crushcan results * readme formatting * add roof crash and crushcan results * add roof crash and crushcan results * readme references * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/README.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update examples/structural_mechanics/crash/vtp_reader.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * address review comments * formatting --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 8d018f1 commit d1b6b7b

22 files changed

+939
-163
lines changed
4.17 MB
Loading

docs/img/crash/crushcan.gif

1.49 MB
Loading

docs/img/crash/roof_crash.gif

579 KB
Loading

examples/structural_mechanics/crash/README.md

Lines changed: 249 additions & 27 deletions
Large diffs are not rendered by default.

examples/structural_mechanics/crash/conf/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ experiment_desc: "unified training recipe for crash models"
2525
run_desc: "unified training recipe for crash models"
2626

2727
defaults:
28+
- reader: vtp #d3plot
2829
- datapipe: point_cloud # will be overridden by model configs
2930
- model: transolver_autoregressive_rollout_training
3031
- training: default

examples/structural_mechanics/crash/conf/datapipe/graph.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
# limitations under the License.
1616

1717
_target_: datapipe.CrashGraphDataset
18+
_convert_: all
1819
data_dir: ${training.raw_data_dir}
1920
name: crash_train
2021
split: train
2122
num_samples: ${training.num_training_samples}
2223
num_steps: ${training.num_time_steps}
23-
wall_node_disp_threshold: 1.0
24+
features: [thickness]

examples/structural_mechanics/crash/conf/datapipe/point_cloud.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
# limitations under the License.
1616

1717
_target_: datapipe.CrashPointCloudDataset
18+
_convert_: all
1819
data_dir: ${training.raw_data_dir}
1920
num_samples: ${training.num_training_samples}
2021
num_steps: ${training.num_time_steps}
21-
wall_node_disp_threshold: 1.0
22+
features: [thickness]

examples/structural_mechanics/crash/conf/model/mgn_autoregressive_rollout_training.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
_target_: rollout.MeshGraphNetAutoregressiveRolloutTraining
18+
_convert_: all
1819

1920
input_dim_nodes: 7 # pos(3) + vel(3) + thickness(1)
2021
input_dim_edges: 4 # dx, dy, dz, distance

examples/structural_mechanics/crash/conf/model/mgn_one_step_rollout.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
_target_: rollout.MeshGraphNetAutoregressiveRolloutTraining
18+
_convert_: all
1819

1920
input_dim_nodes: 7 # pos(3) + vel(3) + thickness(1)
2021
input_dim_edges: 4 # dx, dy, dz, distance

examples/structural_mechanics/crash/conf/model/mgn_time_conditional.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616

1717
_target_: rollout.MeshGraphNetTimeConditionalRollout
18+
_convert_: all
1819

1920
input_dim_nodes: 5 # pos(3) + thickness(1) + time(1)
2021
input_dim_edges: 4 # dx, dy, dz, distance

0 commit comments

Comments
 (0)