Skip to content

Commit

Permalink
voxelization with quadrature (doc and examples)
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Jan 20, 2025
1 parent d0bd2e3 commit f02ef17
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 16 deletions.
9 changes: 3 additions & 6 deletions docs/format/file_geometry_stl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@
# - check: boolean parameters for checking the STL mesh integrity
# - if true, the STL mesh should represent a closed surface
# - if false, the surface status of the STL mesh is not checked
# - tol: distance between the voxel boundaries and the voxelization test points
# - if non-zero, a clearance is respected between the test points and the voxel boundary
# - if equal to zero, test points can be located on the voxel boundary
# - thr: threshold for the voxelization (in order to keep/exclude voxels)
# - the fraction of test points located inside the shape is computed for each voxel
# - the volume fraction located inside the STL mesh is computed for each voxel
# - if the fraction is greater than the threshold, the voxel is added to the structure
# - pts: number of test points used for the voxelization (for each voxel)
# - if greater than one, several points are used (pts^3 points are created)
# - if one, a single test point is used (in the center the voxel)
# - if equal to one, a single test point is used (in the center the voxel)
# - the Gauss-Legendre quadrature is used to span the points
"param":
"d": [10.0e-3, 10.0e-3, 10.0e-3]
"xyz_min": [-20e-3, -20e-3, -20e-3]
"xyz_max": [+20e-3, +20e-3, +20e-3]
"check": true
"tol": 1.0e-3
"thr": 0.5
"pts": 1

Expand Down
1 change: 0 additions & 1 deletion examples/examples_stl/inductor_air/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"xyz_min": null
"xyz_max": null
"check": true
"tol": 1.0e-6
"thr": 0.5
"pts": 1
"domain_stl":
Expand Down
1 change: 0 additions & 1 deletion examples/examples_stl/inductor_core/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"xyz_min": null
"xyz_max": null
"check": true
"tol": 1.0e-6
"thr": 0.5
"pts": 1
"domain_stl":
Expand Down
1 change: 0 additions & 1 deletion examples/examples_stl/inductor_toroid/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"xyz_min": null
"xyz_max": null
"check": true
"tol": 1.0e-6
"thr": 0.5
"pts": 1
"domain_stl":
Expand Down
1 change: 0 additions & 1 deletion examples/examples_stl/transformer_air/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"xyz_min": null
"xyz_max": null
"check": true
"tol": 1.0e-6
"thr": 0.5
"pts": 1
"domain_stl":
Expand Down
1 change: 0 additions & 1 deletion examples/examples_stl/transformer_core/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"xyz_min": null
"xyz_max": null
"check": true
"tol": 1.0e-6
"thr": 0.5
"pts": 1
"domain_stl":
Expand Down
5 changes: 0 additions & 5 deletions pypeec/data/schema_geometry_stl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- "xyz_min"
- "xyz_max"
- "check"
- "tol"
- "thr"
- "pts"
"properties":
Expand Down Expand Up @@ -40,10 +39,6 @@
"check":
"type": "boolean"
"minimum": 0

"tol":
"type": "number"
"minimum": 0
"thr":
"type": "number"
"minimum": 0
Expand Down

0 comments on commit f02ef17

Please sign in to comment.