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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
data_files:
|
| 230 |
- split: total
|
| 231 |
path: snapshot/total-*
|
| 232 |
+
license: other
|
| 233 |
+
language:
|
| 234 |
+
- en
|
| 235 |
+
tags:
|
| 236 |
+
- deal
|
| 237 |
+
- neural_operators
|
| 238 |
+
- graph-neural-networks
|
| 239 |
+
pretty_name: Beam3D Elastic Dynamics Dataset
|
| 240 |
---
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
# Beam3D Elastic Dynamics Dataset
|
| 245 |
+
|
| 246 |
+
## Dataset Details
|
| 247 |
+
|
| 248 |
+
### Dataset Description
|
| 249 |
+
|
| 250 |
+
This dataset contains synthetic 3D beam simulations generated with a finite element solver based on `deal.II`.
|
| 251 |
+
|
| 252 |
+
Each sample represents one dynamic simulation of a 3D elastic beam. The simulations include randomized geometry, material properties, damping parameters, and loading conditions.
|
| 253 |
+
|
| 254 |
+
The dataset is intended for scientific machine learning tasks involving elastic dynamics, including surrogate modeling, graph neural networks, neural operators, reduced-order modeling, and spatio-temporal prediction.
|
| 255 |
+
|
| 256 |
+
The dataset is organized into three Hugging Face configurations:
|
| 257 |
+
|
| 258 |
+
| Configuration | Content |
|
| 259 |
+
|---|---|
|
| 260 |
+
| `geometry` | Mesh connectivity, graph connectivity, and static node-level information |
|
| 261 |
+
| `snapshot` | Time-dependent physical fields stored component-wise |
|
| 262 |
+
| `metadata` | Simulation-level scalar parameters |
|
| 263 |
+
|
| 264 |
+
- **Curated by:** FAST Computing
|
| 265 |
+
- **Shared by:** FAST Computing
|
| 266 |
+
- **Language(s):** English
|
| 267 |
+
- **License:** Other
|
| 268 |
+
|
| 269 |
+
---
|
| 270 |
+
|
| 271 |
+
## Uses
|
| 272 |
+
|
| 273 |
+
### Direct Use
|
| 274 |
+
|
| 275 |
+
This dataset can be used for:
|
| 276 |
+
|
| 277 |
+
- training surrogate models for 3D elastic dynamics;
|
| 278 |
+
- training graph neural networks on finite element meshes;
|
| 279 |
+
- training neural operators or sequence models for displacement and velocity prediction;
|
| 280 |
+
- learning the response of elastic beams under different loading conditions;
|
| 281 |
+
- testing reduced-order modeling pipelines;
|
| 282 |
+
- benchmarking scientific machine learning methods on structured simulation data.
|
| 283 |
+
|
| 284 |
+
The dataset is especially suited for methods that use mesh information, graph connectivity, node-level physical quantities, and simulation metadata.
|
| 285 |
+
|
| 286 |
+
### Out-of-Scope Use
|
| 287 |
+
|
| 288 |
+
This dataset should not be used as a validated engineering benchmark for safety-critical structural design.
|
| 289 |
+
|
| 290 |
+
The simulations are synthetic and depend on the numerical assumptions, mesh resolution, material model, and loading conditions used during generation. Any engineering use requires independent verification.
|
| 291 |
+
|
| 292 |
+
---
|
| 293 |
+
|
| 294 |
+
## Dataset Structure
|
| 295 |
+
|
| 296 |
+
The dataset has three configurations:
|
| 297 |
+
|
| 298 |
+
```python
|
| 299 |
+
from datasets import load_dataset
|
| 300 |
+
|
| 301 |
+
repo_id = "fastcomputing/first_beam3d_test_single_split"
|
| 302 |
+
|
| 303 |
+
geometry = load_dataset(repo_id, name="geometry", split="total")
|
| 304 |
+
snapshots = load_dataset(repo_id, name="snapshot", split="total")
|
| 305 |
+
metadata = load_dataset(repo_id, name="metadata", split="total")
|
| 306 |
+
```
|
| 307 |
+
|
| 308 |
+
Each configuration contains one row per simulation sample.
|
| 309 |
+
|
| 310 |
+
---
|
| 311 |
+
|
| 312 |
+
## Configuration: `geometry`
|
| 313 |
+
|
| 314 |
+
The `geometry` configuration stores mesh-related quantities and static node-level information.
|
| 315 |
+
|
| 316 |
+
Each row corresponds to one simulation sample.
|
| 317 |
+
|
| 318 |
+
| Field | Meaning | Expected shape | Type |
|
| 319 |
+
|---|---|---:|---|
|
| 320 |
+
| `sample_id` | Simulation identifier | scalar | `int32` |
|
| 321 |
+
| `points_x` | Node coordinates in x direction | `(N, )` | `float32` |
|
| 322 |
+
| `points_y` | Node coordinates in y direction | `(N, )` | `float32` |
|
| 323 |
+
| `points_z` | Node coordinates in z direction | `(N, )` | `float32` |
|
| 324 |
+
| `cells` | Hexahedral cell connectivity | `(C, 8)` | `int32` |
|
| 325 |
+
| `edge_index` | Directed graph edges extracted from hexahedral cells | `(2, E)` | `int32` |
|
| 326 |
+
| `constraint_mask_x` | Mask identifying constrained displacement components in x| `(N, )` | `int32` |
|
| 327 |
+
| `constraint_mask_y` | Mask identifying constrained displacement components in y| `(N, )` | `int32` |
|
| 328 |
+
| `constraint_mask_z` | Mask identifying constrained displacement components in z| `(N, )` | `int32` |
|
| 329 |
+
| `constraint_value_x` | Prescribed displacement values for constrained components x| `(N, )` | `float32` |
|
| 330 |
+
| `constraint_value_y` | Prescribed displacement values for constrained components y| `(N, )` | `float32` |
|
| 331 |
+
| `constraint_value_z` | Prescribed displacement values for constrained components z| `(N, )` | `float32` |
|
| 332 |
+
| `boundary_id` | Geometric boundary label associated with each node | `(N,)` | `int32` |
|
| 333 |
+
| `node_type` | Semantic node classification | `(N,)` | `int32` |
|
| 334 |
+
|
| 335 |
+
Where:
|
| 336 |
+
|
| 337 |
+
```text
|
| 338 |
+
N = number of mesh nodes
|
| 339 |
+
C = number of hexahedral cells
|
| 340 |
+
E = number of directed graph edges
|
| 341 |
+
```
|
| 342 |
+
|
| 343 |
+
### `points`
|
| 344 |
+
|
| 345 |
+
`points` stores the node coordinates:
|
| 346 |
+
|
| 347 |
+
```text
|
| 348 |
+
points_x[i] = [x_i]
|
| 349 |
+
points_y[i] = [y_i]
|
| 350 |
+
points_z[i] = [z_i]
|
| 351 |
+
```
|
| 352 |
+
|
| 353 |
+
Shape:
|
| 354 |
+
|
| 355 |
+
```text
|
| 356 |
+
(N, )
|
| 357 |
+
```
|
| 358 |
+
|
| 359 |
+
### `cells`
|
| 360 |
+
|
| 361 |
+
`cells` stores the hexahedral finite element connectivity.
|
| 362 |
+
|
| 363 |
+
Each row contains the 8 node indices of one hexahedral cell:
|
| 364 |
+
|
| 365 |
+
```text
|
| 366 |
+
cells[c] = [n0, n1, n2, n3, n4, n5, n6, n7]
|
| 367 |
+
```
|
| 368 |
+
|
| 369 |
+
Shape:
|
| 370 |
+
|
| 371 |
+
```text
|
| 372 |
+
(C, 8)
|
| 373 |
+
```
|
| 374 |
+
|
| 375 |
+
This is not the raw VTK flat cell array.
|
| 376 |
+
|
| 377 |
+
### `edge_index`
|
| 378 |
+
|
| 379 |
+
`edge_index` stores graph connectivity derived from the hexahedral cells.
|
| 380 |
+
|
| 381 |
+
For each hexahedral cell, the 12 standard hexahedron edges are extracted. Both directions are stored for each edge, so the graph is directed:
|
| 382 |
+
|
| 383 |
+
```text
|
| 384 |
+
edge_index[:, e] = [source_node, target_node]
|
| 385 |
+
```
|
| 386 |
+
|
| 387 |
+
Shape:
|
| 388 |
+
|
| 389 |
+
```text
|
| 390 |
+
(2, E)
|
| 391 |
+
```
|
| 392 |
+
|
| 393 |
+
The local hexahedral edges used to build the graph are:
|
| 394 |
+
|
| 395 |
+
```text
|
| 396 |
+
(0, 1), (1, 2), (2, 3), (3, 0),
|
| 397 |
+
(4, 5), (5, 6), (6, 7), (7, 4),
|
| 398 |
+
(0, 4), (1, 5), (2, 6), (3, 7)
|
| 399 |
+
```
|
| 400 |
+
|
| 401 |
+
For each edge `(i, j)`, both `(i, j)` and `(j, i)` are added. Duplicate edges are removed.
|
| 402 |
+
|
| 403 |
+
### `constraint_mask`
|
| 404 |
+
|
| 405 |
+
`constraint_mask_x` identifies which displacement components in x are constrained.
|
| 406 |
+
|
| 407 |
+
Shape:
|
| 408 |
+
|
| 409 |
+
```text
|
| 410 |
+
(N, )
|
| 411 |
+
```
|
| 412 |
+
|
| 413 |
+
Examples:
|
| 414 |
+
|
| 415 |
+
```text
|
| 416 |
+
[1] -> fixed in x node
|
| 417 |
+
[0] -> free node
|
| 418 |
+
```
|
| 419 |
+
|
| 420 |
+
### `constraint_value`
|
| 421 |
+
|
| 422 |
+
`constraint_value_x` stores the prescribed displacement in x value for constrained components.
|
| 423 |
+
|
| 424 |
+
Shape:
|
| 425 |
+
|
| 426 |
+
```text
|
| 427 |
+
(N, )
|
| 428 |
+
```
|
| 429 |
+
|
| 430 |
+
For a homogeneous fixed boundary condition:
|
| 431 |
+
|
| 432 |
+
```text
|
| 433 |
+
constraint_value_x[i] = [0]
|
| 434 |
+
```
|
| 435 |
+
|
| 436 |
+
The `constraint_mask` tells whether a component is constrained.
|
| 437 |
+
The `constraint_value` tells the imposed value.
|
| 438 |
+
|
| 439 |
+
### `boundary_id`
|
| 440 |
+
|
| 441 |
+
`boundary_id` identifies the geometric boundary region associated with each node.
|
| 442 |
+
|
| 443 |
+
Shape:
|
| 444 |
+
|
| 445 |
+
```text
|
| 446 |
+
(N,)
|
| 447 |
+
```
|
| 448 |
+
|
| 449 |
+
It answers:
|
| 450 |
+
|
| 451 |
+
```text
|
| 452 |
+
Which mesh boundary does this node belong to?
|
| 453 |
+
```
|
| 454 |
+
|
| 455 |
+
Example:
|
| 456 |
+
|
| 457 |
+
```text
|
| 458 |
+
boundary_id = 1 -> left beam end
|
| 459 |
+
boundary_id = 2 -> right beam end
|
| 460 |
+
boundary_id = 3 -> loaded surface
|
| 461 |
+
```
|
| 462 |
+
|
| 463 |
+
The exact meaning depends on the mesh labeling used during data generation.
|
| 464 |
+
|
| 465 |
+
### `node_type`
|
| 466 |
+
|
| 467 |
+
`node_type` gives the semantic role of the node in the simulation.
|
| 468 |
+
|
| 469 |
+
Shape:
|
| 470 |
+
|
| 471 |
+
```text
|
| 472 |
+
(N,)
|
| 473 |
+
```
|
| 474 |
+
|
| 475 |
+
Current convention:
|
| 476 |
+
|
| 477 |
+
```text
|
| 478 |
+
0 = internal node
|
| 479 |
+
1 = Dirichlet boundary node
|
| 480 |
+
2 = Neumann boundary node
|
| 481 |
+
3 = boundary node without explicitly assigned boundary condition
|
| 482 |
+
```
|
| 483 |
+
|
| 484 |
+
In short:
|
| 485 |
+
|
| 486 |
+
```text
|
| 487 |
+
boundary_id tells where the node is.
|
| 488 |
+
node_type tells what role the node has.
|
| 489 |
+
```
|
| 490 |
+
|
| 491 |
+
---
|
| 492 |
+
|
| 493 |
+
## Configuration: `snapshot`
|
| 494 |
+
|
| 495 |
+
The `snapshot` configuration stores time-dependent fields.
|
| 496 |
+
|
| 497 |
+
Each row corresponds to one simulation sample and contains the full temporal evolution of the saved physical quantities.
|
| 498 |
+
|
| 499 |
+
The dynamic vector fields are stored component-wise. Acceleration is not stored in the current Hugging Face dataset.
|
| 500 |
+
|
| 501 |
+
| Field | Meaning | Expected shape | Type |
|
| 502 |
+
|---|---|---:|---|
|
| 503 |
+
| `sample_id` | Simulation identifier | scalar | `int32` |
|
| 504 |
+
| `time` | Saved output times | `(T,)` | `float32` |
|
| 505 |
+
| `displacement_x` | x-component of nodal displacement | `(T, N)` | `float32` |
|
| 506 |
+
| `displacement_y` | y-component of nodal displacement | `(T, N)` | `float32` |
|
| 507 |
+
| `displacement_z` | z-component of nodal displacement | `(T, N)` | `float32` |
|
| 508 |
+
| `velocity_x` | x-component of nodal velocity | `(T, N)` | `float32` |
|
| 509 |
+
| `velocity_y` | y-component of nodal velocity | `(T, N)` | `float32` |
|
| 510 |
+
| `velocity_z` | z-component of nodal velocity | `(T, N)` | `float32` |
|
| 511 |
+
| `body_force_x` | x-component of nodal body force | `(T, N)` | `float32` |
|
| 512 |
+
| `body_force_y` | y-component of nodal body force | `(T, N)` | `float32` |
|
| 513 |
+
| `body_force_z` | z-component of nodal body force | `(T, N)` | `float32` |
|
| 514 |
+
| `traction_x` | x-component of nodal surface traction | `(T, N)` | `float32` |
|
| 515 |
+
| `traction_y` | y-component of nodal surface traction | `(T, N)` | `float32` |
|
| 516 |
+
| `traction_z` | z-component of nodal surface traction | `(T, N)` | `float32` |
|
| 517 |
+
|
| 518 |
+
Where:
|
| 519 |
+
|
| 520 |
+
```text
|
| 521 |
+
T = number of saved output times
|
| 522 |
+
N = number of mesh nodes
|
| 523 |
+
```
|
| 524 |
+
|
| 525 |
+
Examples:
|
| 526 |
+
|
| 527 |
+
```text
|
| 528 |
+
displacement_x[k][i] = x-displacement of node i at time step k
|
| 529 |
+
displacement_y[k][i] = y-displacement of node i at time step k
|
| 530 |
+
velocity_y[k][i] = y-velocity of node i at time step k
|
| 531 |
+
traction_y[k][i] = y-component of the surface traction at node i and time step k
|
| 532 |
+
```
|
| 533 |
+
|
| 534 |
+
To reconstruct a full vector field:
|
| 535 |
+
|
| 536 |
+
```python
|
| 537 |
+
import numpy as np
|
| 538 |
+
|
| 539 |
+
u = np.stack(
|
| 540 |
+
[
|
| 541 |
+
dyn["displacement_x"],
|
| 542 |
+
dyn["displacement_y"],
|
| 543 |
+
dyn["displacement_z"],
|
| 544 |
+
],
|
| 545 |
+
axis=-1,
|
| 546 |
+
)
|
| 547 |
+
|
| 548 |
+
print(u.shape)
|
| 549 |
+
# (T, N, 3)
|
| 550 |
+
```
|
| 551 |
+
|
| 552 |
+
The same convention can be used for velocity, body force, and traction.
|
| 553 |
+
|
| 554 |
+
---
|
| 555 |
+
|
| 556 |
+
## Configuration: `metadata`
|
| 557 |
+
|
| 558 |
+
The `metadata` configuration stores scalar simulation parameters and bookkeeping information.
|
| 559 |
+
|
| 560 |
+
Each row corresponds to one simulation sample.
|
| 561 |
+
|
| 562 |
+
### Execution and file information
|
| 563 |
+
|
| 564 |
+
| Field | Meaning |
|
| 565 |
+
|---|---|
|
| 566 |
+
| `sample_id` | Simulation identifier |
|
| 567 |
+
| `valid` | Whether the simulation sample is valid |
|
| 568 |
+
| `sample_name` | Sample folder name |
|
| 569 |
+
| `sample_dir` | Sample directory |
|
| 570 |
+
| `geo_path` | Path to the `.geo` geometry file |
|
| 571 |
+
| `mesh_path` | Path to the mesh file |
|
| 572 |
+
| `result_dir` | Directory containing solver outputs |
|
| 573 |
+
| `mpi_np` | Number of MPI processes used |
|
| 574 |
+
| `solver_executable` | Solver executable path or name |
|
| 575 |
+
| `gmsh_executable` | Gmsh executable path or name |
|
| 576 |
+
| `solution_file_type` | Type of solution file used, for example `.pvtu` |
|
| 577 |
+
| `n_solution_files` | Number of solution files found |
|
| 578 |
+
| `first_solution_file` | First solution file |
|
| 579 |
+
| `last_solution_file` | Last solution file |
|
| 580 |
+
|
| 581 |
+
### Material parameters
|
| 582 |
+
|
| 583 |
+
| Field | Meaning |
|
| 584 |
+
|---|---|
|
| 585 |
+
| `E` | Young's modulus |
|
| 586 |
+
| `nu` | Poisson's ratio |
|
| 587 |
+
| `lambda` | First Lamé parameter |
|
| 588 |
+
| `mu` | Second Lamé parameter |
|
| 589 |
+
| `rho` | Density |
|
| 590 |
+
| `c_damp` | Damping coefficient |
|
| 591 |
+
|
| 592 |
+
### Loading parameters
|
| 593 |
+
|
| 594 |
+
| Field | Meaning |
|
| 595 |
+
|---|---|
|
| 596 |
+
| `F0` | Nominal force amplitude |
|
| 597 |
+
| `traction_type` | Type of applied surface traction |
|
| 598 |
+
| `spatial_profile` | Spatial profile of the applied traction |
|
| 599 |
+
| `traction_amplitude_y_nominal_uniform` | Nominal uniform traction amplitude in the y direction |
|
| 600 |
+
| `frequency_hz` | Loading frequency, if applicable |
|
| 601 |
+
| `phase` | Loading phase, if applicable |
|
| 602 |
+
| `load_start_time` | Start time of the applied load |
|
| 603 |
+
| `load_end_time` | End time of the applied load |
|
| 604 |
+
| `load_center_x` | Load center coordinate in x |
|
| 605 |
+
| `load_center_y` | Load center coordinate in y |
|
| 606 |
+
| `load_center_z` | Load center coordinate in z |
|
| 607 |
+
| `load_sigma_x` | Load width in x for Gaussian profiles |
|
| 608 |
+
| `load_sigma_y` | Load width in y for Gaussian profiles |
|
| 609 |
+
| `load_sigma_z` | Load width in z for Gaussian profiles |
|
| 610 |
+
| `load_center_x_rel` | Relative load center coordinate in x |
|
| 611 |
+
| `load_center_z_rel` | Relative load center coordinate in z |
|
| 612 |
+
| `load_sigma_x_rel` | Relative Gaussian width in x |
|
| 613 |
+
| `load_sigma_z_rel` | Relative Gaussian width in z |
|
| 614 |
+
| `moving_direction` | Direction of motion for moving loads |
|
| 615 |
+
| `load_velocity` | Physical velocity of the moving load |
|
| 616 |
+
| `load_velocity_rel` | Relative velocity of the moving load |
|
| 617 |
+
| `impact_time` | Central time of the impact or pulse load |
|
| 618 |
+
| `impact_duration` | Duration of the impact or pulse load |
|
| 619 |
+
|
| 620 |
+
Some parameters may be unused depending on the selected `traction_type`. They are still stored to keep a fixed schema across all samples.
|
| 621 |
+
|
| 622 |
+
### Geometry and mesh parameters
|
| 623 |
+
|
| 624 |
+
| Field | Meaning |
|
| 625 |
+
|---|---|
|
| 626 |
+
| `L` | Beam length |
|
| 627 |
+
| `H` | Beam height |
|
| 628 |
+
| `B` | Beam width |
|
| 629 |
+
| `A` | Cross-sectional area |
|
| 630 |
+
| `I` | Second moment of area |
|
| 631 |
+
| `nx` | Nominal number of mesh divisions in x |
|
| 632 |
+
| `ny` | Nominal number of mesh divisions in y |
|
| 633 |
+
| `nz` | Nominal number of mesh divisions in z |
|
| 634 |
+
| `lc` | Nominal mesh size |
|
| 635 |
+
|
| 636 |
+
### Boundary, time, and storage information
|
| 637 |
+
|
| 638 |
+
| Field | Meaning |
|
| 639 |
+
|---|---|
|
| 640 |
+
| `dirichlet_boundary_ids` | Boundary IDs with Dirichlet conditions |
|
| 641 |
+
| `neumann_boundary_ids` | Boundary IDs with Neumann conditions |
|
| 642 |
+
| `dt` | Time step size |
|
| 643 |
+
| `t_end` | Final simulation time |
|
| 644 |
+
| `output_dt` | Output time interval |
|
| 645 |
+
| `n_nodes` | Number of nodes read from the output mesh |
|
| 646 |
+
| `n_cells` | Number of cells read from the output mesh |
|
| 647 |
+
| `n_edges` | Number of directed graph edges |
|
| 648 |
+
| `n_saved_times` | Number of saved output times |
|
| 649 |
+
| `snapshot_storage_format` | Storage format used for snapshot fields |
|
| 650 |
+
|
| 651 |
+
---
|
| 652 |
+
|
| 653 |
+
## Dataset Creation
|
| 654 |
+
|
| 655 |
+
### Curation Rationale
|
| 656 |
+
|
| 657 |
+
The dataset was created to provide simulation data for machine learning models that learn the dynamic response of 3D elastic structures.
|
| 658 |
+
|
| 659 |
+
The goal is to expose models to different combinations of geometry, material properties, damping, and loading conditions, while keeping a consistent data structure across samples.
|
| 660 |
+
|
| 661 |
+
### Source Data
|
| 662 |
+
|
| 663 |
+
The data are fully synthetic. They are generated by numerical finite element simulations of 3D elastic beams.
|
| 664 |
+
|
| 665 |
+
#### Data Collection and Processing
|
| 666 |
+
|
| 667 |
+
For each simulation:
|
| 668 |
+
|
| 669 |
+
1. A set of input parameters is sampled.
|
| 670 |
+
2. A 3D beam mesh is generated or loaded.
|
| 671 |
+
3. The linear elastodynamic problem is solved with `deal.II`.
|
| 672 |
+
4. The mesh and physical fields are exported to `.pvtu` or `.vtu` files.
|
| 673 |
+
5. The exported simulation data are converted into Hugging Face datasets.
|
| 674 |
+
|
| 675 |
+
The governing equation is the linear elastodynamic equation:
|
| 676 |
+
|
| 677 |
+
```text
|
| 678 |
+
c * du/dt - div(sigma(u)) = f
|
| 679 |
+
```
|
| 680 |
+
|
| 681 |
+
where:
|
| 682 |
+
|
| 683 |
+
| Symbol | Meaning |
|
| 684 |
+
|---|---|
|
| 685 |
+
| `u(x,t)` | Displacement field |
|
| 686 |
+
| `du/dt` | Velocity field |
|
| 687 |
+
| `rho` | Material density |
|
| 688 |
+
| `c` | Damping coefficient |
|
| 689 |
+
| `f(x,t)` | Body force |
|
| 690 |
+
| `sigma(u)` | Linear elastic stress tensor |
|
| 691 |
+
|
| 692 |
+
The material is linear, isotropic, and elastic.
|
| 693 |
+
|
| 694 |
+
The stress tensor is:
|
| 695 |
+
|
| 696 |
+
```text
|
| 697 |
+
sigma(u) = lambda * tr(epsilon(u)) * I + 2 * mu * epsilon(u)
|
| 698 |
+
```
|
| 699 |
+
|
| 700 |
+
with:
|
| 701 |
+
|
| 702 |
+
```text
|
| 703 |
+
epsilon(u) = 0.5 * (grad(u) + grad(u)^T)
|
| 704 |
+
```
|
| 705 |
+
|
| 706 |
+
The Lamé parameters `lambda` and `mu` are computed from Young's modulus `E` and Poisson's ratio `nu`.
|
| 707 |
+
|
| 708 |
+
Continuous parameters are sampled using Latin Hypercube Sampling in a normalized space `[0, 1]^d`. Each sampled value is then mapped to its physical range using either a uniform or log-uniform transformation.
|
| 709 |
+
|
| 710 |
+
#### Who are the source data producers?
|
| 711 |
+
|
| 712 |
+
The source data are produced automatically by the simulation pipeline. No human-generated text, personal data, or user-generated content is included.
|
| 713 |
+
|
| 714 |
+
---
|
| 715 |
+
|
| 716 |
+
## Personal and Sensitive Information
|
| 717 |
+
|
| 718 |
+
This dataset does not contain personal, sensitive, or private information.
|
| 719 |
+
|
| 720 |
+
All samples are generated synthetically from numerical simulations.
|
| 721 |
+
|
| 722 |
+
---
|
| 723 |
+
|
| 724 |
+
## Bias, Risks, and Limitations
|
| 725 |
+
|
| 726 |
+
The dataset is limited by the numerical model and simulation setup used to generate it.
|
| 727 |
+
|
| 728 |
+
Main limitations include:
|
| 729 |
+
|
| 730 |
+
- the material model is linear elastic and isotropic;
|
| 731 |
+
- the results depend on the mesh resolution;
|
| 732 |
+
- the loading profiles are limited to the implemented traction models;
|
| 733 |
+
- the data are synthetic and may not represent experimental noise or real structural uncertainty;
|
| 734 |
+
- the dataset should not be treated as a certified engineering benchmark;
|
| 735 |
+
- acceleration may be computed by the solver but is not stored in the current Hugging Face dataset.
|
| 736 |
+
|
| 737 |
+
### Recommendations
|
| 738 |
+
|
| 739 |
+
Users should verify the assumptions of the dataset before using it for engineering or scientific conclusions.
|
| 740 |
+
|
| 741 |
+
For machine learning research, users should consider:
|
| 742 |
+
|
| 743 |
+
- checking the distribution of geometry, material, and loading parameters;
|
| 744 |
+
- normalizing physical quantities before training;
|
| 745 |
+
- validating models on held-out simulations;
|
| 746 |
+
- avoiding extrapolation far outside the sampled parameter ranges;
|
| 747 |
+
- verifying mesh consistency when using graph-based models.
|
| 748 |
+
|
| 749 |
+
---
|
| 750 |
+
|
| 751 |
+
## Loading Profiles
|
| 752 |
+
|
| 753 |
+
Possible values of `traction_type` include:
|
| 754 |
+
|
| 755 |
+
| `traction_type` | Meaning |
|
| 756 |
+
|---|---|
|
| 757 |
+
| `uniform` | Uniform surface traction |
|
| 758 |
+
| `gaussian_step` | Spatial Gaussian load active over a time window |
|
| 759 |
+
| `gaussian_harmonic` | Spatial Gaussian load with harmonic time dependence |
|
| 760 |
+
| `gaussian_pulse` | Spatial Gaussian load with pulse-like time dependence |
|
| 761 |
+
| `moving_gaussian` | Gaussian load moving along a prescribed direction |
|
| 762 |
+
|
| 763 |
+
Possible values of `spatial_profile` include:
|
| 764 |
+
|
| 765 |
+
| `spatial_profile` | Meaning |
|
| 766 |
+
|---|---|
|
| 767 |
+
| `uniform` | No spatial localization |
|
| 768 |
+
| `x` | Gaussian localization along x only |
|
| 769 |
+
| `xz` | Gaussian localization along x and z |
|
| 770 |
+
|
| 771 |
+
A negative sigma value may be used to disable localization in one direction. For example:
|
| 772 |
+
|
| 773 |
+
```text
|
| 774 |
+
load_sigma_z < 0
|
| 775 |
+
```
|
| 776 |
+
|
| 777 |
+
means that the load is uniform along the z direction.
|
| 778 |
+
|
| 779 |
+
---
|
| 780 |
+
|
| 781 |
+
## Minimal Usage Example
|
| 782 |
+
|
| 783 |
+
```python
|
| 784 |
+
from datasets import load_dataset
|
| 785 |
+
import numpy as np
|
| 786 |
+
|
| 787 |
+
repo_id = "fastcomputing/first_beam3d_test_single_split"
|
| 788 |
+
|
| 789 |
+
geometry = load_dataset(repo_id, name="geometry", split="total")
|
| 790 |
+
snapshot = load_dataset(repo_id, name="snapshot", split="total")
|
| 791 |
+
metadata = load_dataset(repo_id, name="metadata", split="total")
|
| 792 |
+
|
| 793 |
+
sample_idx = 0
|
| 794 |
+
|
| 795 |
+
geom = geometry[sample_idx]
|
| 796 |
+
dyn = snapshot[sample_idx]
|
| 797 |
+
meta = metadata[sample_idx]
|
| 798 |
+
|
| 799 |
+
points_x = np.asarray(geom["points_x"], dtype=np.float32)
|
| 800 |
+
points_y = np.asarray(geom["points_y"], dtype=np.float32)
|
| 801 |
+
points_z = np.asarray(geom["points_z"], dtype=np.float32)
|
| 802 |
+
cells = np.asarray(geom["cells"], dtype=np.int64)
|
| 803 |
+
edge_index = np.asarray(geom["edge_index"], dtype=np.int64)
|
| 804 |
+
|
| 805 |
+
u = np.stack(
|
| 806 |
+
[
|
| 807 |
+
np.asarray(dyn["displacement_x"], dtype=np.float32),
|
| 808 |
+
np.asarray(dyn["displacement_y"], dtype=np.float32),
|
| 809 |
+
np.asarray(dyn["displacement_z"], dtype=np.float32),
|
| 810 |
+
],
|
| 811 |
+
axis=-1,
|
| 812 |
+
)
|
| 813 |
+
|
| 814 |
+
x = np.stack(
|
| 815 |
+
[
|
| 816 |
+
np.asarray(dyn["points_x"], dtype=np.float32),
|
| 817 |
+
np.asarray(dyn["points_y"], dtype=np.float32),
|
| 818 |
+
np.asarray(dyn["points_z"], dtype=np.float32),
|
| 819 |
+
],
|
| 820 |
+
axis=-1,
|
| 821 |
+
)
|
| 822 |
+
|
| 823 |
+
print("points:", points.shape) # (N, 3)
|
| 824 |
+
print("cells:", cells.shape) # (C, 8)
|
| 825 |
+
print("edge_index:", edge_index.shape) # (2, E)
|
| 826 |
+
print("u:", u.shape) # (T, N, 3)
|
| 827 |
+
print("metadata keys:", meta.keys())
|
| 828 |
+
```
|
| 829 |
+
|
| 830 |
+
---
|
| 831 |
+
|
| 832 |
+
## Dataset Card Authors
|
| 833 |
+
|
| 834 |
+
FAST Computing
|
| 835 |
+
System theme
|
| 836 |
+
TOS
|
| 837 |
+
Privacy
|
| 838 |
+
About
|
| 839 |
+
Careers
|
| 840 |
+
Models
|