Datasets:
The dataset viewer is not available for this split.
Error code: TooBigContentError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Dataset Card
This dataset contains a single huggingface split, named 'all_samples'.
The samples contains a single huggingface feature, named called "sample".
Samples are instances of plaid.containers.sample.Sample. Mesh objects included in samples follow the CGNS standard, and can be converted in Muscat.Containers.Mesh.Mesh.
Example of commands:
from datasets import load_dataset
from plaid.containers.sample import Sample
import pickle
# Load the dataset
hf_dataset = load_dataset("PLAID-datasets/2D_ElastoPlastoDynamics", split="all_samples")
# Get split ids
ids_train = hf_dataset.description["split"]['train']
ids_test = hf_dataset.description["split"]['test']
# Get inputs/outputs names
in_scalars_names = hf_dataset.description["in_scalars_names"]
out_fields_names = hf_dataset.description["out_fields_names"]
# Get samples
sample = Sample.model_validate(pickle.loads(hf_dataset[ids_train[0]]["sample"]))
sample_2 = Sample.model_validate(pickle.loads(hf_dataset[ids_test[0]]["sample"]))
# Examples data retrievals
# time steps
time_steps = sample.get_all_mesh_times()
# inputs
nodes = sample.get_nodes()
elements = sample.get_elements()
# outputs
for time in time_steps:
for fn in [`U_x` and `U_y`]:
field = sample.get_field(fn, time = time)
field = sample.get_field(`EROSION_STATUS`, location="CellCenter", time = time)
# Get the mesh and convert it to Muscat
from Muscat.Bridges import CGNSBridge
CGNS_tree = sample.get_mesh(time = 0.)
mesh = CGNSBridge.CGNSToMesh(CGNS_tree)
print(mesh)
Dataset Details
Dataset Description
This dataset contains 2D dynamic non-linear structural mechanics with a non-linear non-local constitutive law.
The variablity in the samples is the geometry (mesh). Outputs of interest are 3 transient fields: x and y components of the displacement at the nodes and the erosion status at the elements.
Dataset created using the PLAID library and datamodel, version 0.1.
- Language: PLAID
- License: cc-by-sa-4.0
- Owner: Safran
Dataset Sources
- Repository: Zenodo
- Downloads last month
- 94