ForceASR / README.md
fabiencasenave's picture
Upload dataset
c35ba62 verified
metadata
license: cc-by-4.0
task_categories:
  - graph-ml
pretty_name: ForceASR dataset
tags:
  - physics learning
  - geometry learning
dataset_info:
  features:
    - name: Base_2_2/Zone
      list:
        list: int64
    - name: Base_2_2/Zone/Elements_QUAD_4/ElementConnectivity
      list: int64
    - name: Base_2_2/Zone/Elements_QUAD_4/ElementConnectivity_times
      list: float64
    - name: Base_2_2/Zone/Elements_QUAD_4/ElementRange
      list: int64
    - name: Base_2_2/Zone/Elements_QUAD_4/ElementRange_times
      list: float64
    - name: Base_2_2/Zone/GridCoordinates/CoordinateX
      list: float32
    - name: Base_2_2/Zone/GridCoordinates/CoordinateX_times
      list: float64
    - name: Base_2_2/Zone/GridCoordinates/CoordinateY
      list: float32
    - name: Base_2_2/Zone/GridCoordinates/CoordinateY_times
      list: float64
    - name: Base_2_2/Zone/PointData/Displacement_X
      list: float32
    - name: Base_2_2/Zone/PointData/Displacement_X_times
      list: float64
    - name: Base_2_2/Zone/PointData/Displacement_Y
      list: float32
    - name: Base_2_2/Zone/PointData/Displacement_Y_times
      list: float64
    - name: Base_2_2/Zone/PointData/PhaseField
      list: float32
    - name: Base_2_2/Zone/PointData/PhaseField_times
      list: float64
    - name: Base_2_2/Zone/PointData/materialID
      list: float32
    - name: Base_2_2/Zone/PointData/materialID_times
      list: float64
    - name: Base_2_2/Zone_times
      list: float64
    - name: Global/config
      list: string
    - name: Global/fracture energy
      list: float32
    - name: Global/fref
      list: float32
    - name: Global/fref_times
      list: float64
    - name: Global/pfThres
      list: float32
    - name: Global/pfThres_times
      list: float64
    - name: Global/strain energy
      list: float32
    - name: Global/total energy
      list: float32
    - name: Global/x-force
      list: float32
    - name: Global/y-force
      list: float32
  splits:
    - name: res_SENS
      num_bytes: 3436764375
      num_examples: 28
  download_size: 1927341954
  dataset_size: 3436764375
configs:
  - config_name: default
    data_files:
      - split: res_SENS
        path: data/res_SENS-*

https://i.ibb.co/gZtL8VrY/force-ASR-samples.gif

data_production:
  physics: phase-field fracture models for brittle fracture
  script: Subset 'res-SENS' of the initial dataset, 1/5th time steps, converted to
    PLAID format for standardized access; no changes to data content.
  type: simulation
legal:
  license: cc-by-4.0
  owner: RK 2423 FRASCAL (https://zenodo.org/records/7445749)
plaid:
  version: 0.1.10.dev114+gcbd3fd46f.d20251014

Example of commands:

from datasets import load_dataset
from plaid.bridges import huggingface_bridge

repo_id = "chanel/dataset"
pb_def_name = "pb_def_name" #`pb_def_name` is to choose from the repo `problem_definitions` folder

# Load the dataset
hf_datasetdict = load_dataset(repo_id)

# Load addition required data
flat_cst, key_mappings = huggingface_bridge.load_tree_struct_from_hub(repo_id)
pb_def = huggingface_bridge.load_problem_definition_from_hub(repo_id, pb_def_name)

# Efficient reconstruction of plaid samples
for split_name, hf_dataset in hf_datasetdict.items():
    for i in range(len(hf_dataset)):
        sample = huggingface_bridge.to_plaid_sample(
            hf_dataset,
            i,
            flat_cst[split_name],
            key_mappings["cgns_types"],
        )

# Extract input and output features from samples:
for t in sample.get_all_mesh_times():
    for path in pb_def.get_in_features_identifiers():
        sample.get_feature_by_path(path=path, time=t)
    for path in pb_def.get_out_features_identifiers():
        sample.get_feature_by_path(path=path, time=t)

This dataset was generated in PLAID, we refer to this documentation for additional details on how to extract data from sample objects.