zz-zhang-ucb commited on
Commit
1e502cd
·
verified ·
1 Parent(s): 8c61890

Initial dataset card

Browse files
Files changed (1) hide show
  1. README.md +176 -0
README.md ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - physics
4
+ - simulation
5
+ - FEM
6
+ - electromagnetics
7
+ - neural-operator
8
+ - scientific-computing
9
+ size_categories:
10
+ - 100K<n<1M
11
+ pretty_name: MaxwellBench
12
+ ---
13
+
14
+ # MaxwellBench
15
+
16
+ A large-scale benchmark of 2D finite-element electromagnetic simulations for training and evaluating neural operators. Each sample is a complete FEM problem—geometry (unstructured triangular mesh), material properties (nonlinear B-H curves, conductivity), excitation sources, boundary conditions—paired with the solved magnetic flux density **B** field.
17
+
18
+ ## Dataset Summary
19
+
20
+ | Property | Value |
21
+ |---|---|
22
+ | Domain | 2D Electromagnetic FEM |
23
+ | Number of subsets | 14 |
24
+ | Samples per subset | 11000 (10000 train / 1000 val) |
25
+ | Total samples | 154000 |
26
+ | File format | HDF5 (`.h5`) |
27
+ | Simulation types | Stationary, Frequency-domain |
28
+ | Coordinate systems | Cartesian (x, y), Cylindrical axisymmetric (r, z) |
29
+
30
+ ## Subsets
31
+
32
+ | Subset Name | Device Type | Coordinate | Simulation Type |
33
+ |---|---|---|---|
34
+ | `Transformer_2D_UU` | Transformer (UU core) | x, y | Frequency-domain |
35
+ | `Transformer_2D_PQ` | Transformer (PQ core) | r, z | Frequency-domain |
36
+ | `Inductor_2D_I_gap` | Inductor (I core with gap) | x, y | Frequency-domain |
37
+ | `Inductor_2D_EI_multi_gap` | Inductor (EI core, with gaps) | x, y | Frequency-domain |
38
+ | `Inductor_2D_EE_multi` | Inductor (EE core, fixed center gap) | x, y | Frequency-domain |
39
+ | `Inductor_2D_Circular_Small_Gap` | Inductor (circular small core, with gaps) | x, y | Frequency-domain |
40
+ | `Inductor_2D_Circular_Large` | Inductor (circular large core, no gaps) | x, y | Frequency-domain |
41
+ | `Inductor_2D_UU` | Inductor (UU core) | x, y | Frequency-domain |
42
+ | `Electromagnet_2D` ⚠️ | Electromagnet | r, z | Stationary |
43
+ | `ElectromagnetC_wire_2D` | Electromagnet (C core, wire) | x, y | Stationary |
44
+ | `Transformer_2D_L` | Transformer (L core) | x, y | Frequency-domain |
45
+ | `Inductor_2D_EI_multi` | Inductor (EI core, fixed gap) | x, y | Frequency-domain |
46
+ | `Inductor_2D_Circular_Large_Gap` | Inductor (circular large core, with gaps) | x, y | Frequency-domain |
47
+ | `ElectromagnetC_chunk_2D` | Electromagnet (C core, chunk coil) | x, y | Stationary |
48
+
49
+ > ⚠️ **Note:** The `Electromagnet_2D` subset is **not publicly released** as it is closely related to a real business use case. It is listed here for completeness but is excluded from the public download. The public release contains 13 subsets (143,000 samples total).
50
+
51
+ ## Data Format
52
+
53
+ Each sample is stored as an HDF5 file `Data_{i}.h5`. Inside the file, a top-level group is named after the subset (e.g., `Transformer_2D_UU`). The group contains the following structure:
54
+
55
+ ### Attributes
56
+
57
+ | Attribute | Description | Values |
58
+ |---|---|---|
59
+ | `Type` | Simulation type | `"Stationary"` or `"Frequency domain"` |
60
+ | `Coordinate` | Coordinate system | `"x, y"` or `"r, z"` |
61
+
62
+ ### Fields (Mesh & Geometry)
63
+
64
+ Located under `<subset_name>/Fields/`:
65
+
66
+ | Key | Shape | Description |
67
+ |---|---|---|
68
+ | `Nodes` | `(N_n, 3)` | Node coordinates and type: `[p0, p1, node_type]`. `p0, p1` are spatial coordinates; `node_type` indicates boundary/interior. |
69
+ | `Nodes_connectivity` | `(N_conn, 2)` | Edge connectivity (node index pairs). |
70
+ | `Body_elements` | `(N_b, 3)` | Triangular element connectivity (3 node indices per element). |
71
+ | `Body_areas` | `(N_b, 1)` | Area of each triangular element. |
72
+ | `Edge_elements` | `(N_e, 2)` | Edge element connectivity (2 node indices per edge). |
73
+ | `Edge_lengths` | `(N_e, 1)` | Length of each edge element. |
74
+
75
+ ### Materials
76
+
77
+ **Body materials** (`<subset_name>/Materials_body/`): Each named material subgroup contains:
78
+ - An index array mapping body elements to this material.
79
+ - `BH` attribute: B-H curve as a `(K, 2)` array of `[H, B]` pairs (nonlinear permeability).
80
+ - `sigma` attribute: Electrical conductivity (S/m).
81
+
82
+ **Edge materials** (`<subset_name>/Materials_edge/`): Each named material subgroup contains an index array mapping edge elements to this material (used to identify material interfaces).
83
+
84
+ ### Sources
85
+
86
+ Located under `<subset_name>/Sources/`: Each named source subgroup contains:
87
+ - An index array mapping body elements to this source.
88
+ - `magnitude` attribute: Current density magnitude (A/m²).
89
+ - `frequency` attribute: Excitation frequency (Hz). Zero for stationary problems.
90
+ - `phase` attribute: Phase angle (rad).
91
+
92
+ ### Boundaries
93
+
94
+ Located under `<subset_name>/Boundaries/`: Each named boundary subgroup contains:
95
+ - An index array mapping edge elements to this boundary.
96
+ - `normal` attribute: `(2,)` outward normal vector.
97
+ - `type` attribute: Boundary condition type — `"Mag_insulation"` or `"Axial_sym"`.
98
+
99
+ ### Physics (Target Output)
100
+
101
+ Located under `<subset_name>/Physics/`: The solved magnetic flux density field on body elements.
102
+
103
+ **Stationary problems:**
104
+
105
+ | Key | Shape | Description |
106
+ |---|---|---|
107
+ | `realBx_elem` / `realBr_elem` | `(N_b, 1)` | Real part of B in x/r direction |
108
+ | `realBy_elem` / `realBz_elem` | `(N_b, 1)` | Real part of B in y/z direction |
109
+
110
+ **Frequency-domain problems** (additional imaginary components):
111
+
112
+ | Key | Shape | Description |
113
+ |---|---|---|
114
+ | `realBx_elem` / `realBr_elem` | `(N_b, 1)` | Real part of B in x/r direction |
115
+ | `imagBx_elem` / `imagBr_elem` | `(N_b, 1)` | Imaginary part of B in x/r direction |
116
+ | `realBy_elem` / `realBz_elem` | `(N_b, 1)` | Real part of B in y/z direction |
117
+ | `imagBy_elem` / `imagBz_elem` | `(N_b, 1)` | Imaginary part of B in y/z direction |
118
+
119
+ ## Directory Structure
120
+
121
+ ```
122
+ MaxwellBench/
123
+ ├── Transformer_2D_UU/
124
+ │ ├── train/
125
+ │ │ ├── Data_0.h5
126
+ │ │ ├── Data_1.h5
127
+ │ │ └── ... # 10000 files
128
+ │ └── val/
129
+ │ ├── Data_0.h5
130
+ │ └── ... # 1000 files
131
+ ├── Transformer_2D_PQ/
132
+ │ ├── train/
133
+ │ └── val/
134
+ ├── Inductor_2D_I_gap/
135
+ │ ├── train/
136
+ │ └── val/
137
+ └── ... # same structure for all subsets
138
+ ```
139
+
140
+ ## Quick Start
141
+
142
+ ```python
143
+ import h5py
144
+
145
+ subset = "Transformer_2D_UU"
146
+ with h5py.File(f"MaxwellBench/{subset}/train/Data_0.h5", "r") as f:
147
+ sim = f[subset]
148
+
149
+ # Metadata
150
+ sim_type = sim.attrs["Type"] # "Stationary" or "Frequency domain"
151
+ coord = sim.attrs["Coordinate"] # "x, y" or "r, z"
152
+
153
+ # Mesh
154
+ nodes = sim["Fields"]["Nodes"][:] # (N_n, 3)
155
+ connectivity = sim["Fields"]["Nodes_connectivity"][:] # (N_conn, 2)
156
+ elements = sim["Fields"]["Body_elements"][:] # (N_b, 3)
157
+ areas = sim["Fields"]["Body_areas"][:] # (N_b, 1)
158
+
159
+ # Target B field
160
+ Bx = sim["Physics"]["realBx_elem"][:] # (N_b, 1)
161
+ By = sim["Physics"]["realBy_elem"][:] # (N_b, 1)
162
+ ```
163
+ A github repo with dataloader, model, and distributed training pipeline will be published in the future.
164
+
165
+ ## Intended Use
166
+
167
+ MaxwellBench is designed to:
168
+ - Train and benchmark **neural operators** for electromagnetic field prediction.
169
+ - Evaluate **generalization** across device topologies, coordinate systems, and simulation regimes.
170
+ - Support research on **foundation models** for scientific computing / PDE solving.
171
+
172
+ ## Citation
173
+
174
+ If you use MaxwellBench in your work, please cite:
175
+
176
+ > Paper forthcoming. Citation details will be updated upon publication.