Skip to content

Commit

Permalink
lift example with the new mesh checks
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Oct 3, 2024
1 parent da4272d commit f33d6d8
Show file tree
Hide file tree
Showing 26 changed files with 182 additions and 142 deletions.
12 changes: 7 additions & 5 deletions examples/examples_png/gerber/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
"use_resample": true
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["coil"], "domain_keep": ["src"]}
- {"domain_resolve": ["coil"], "domain_keep": ["sink"]}
"domain_connection":
"connect": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
14 changes: 8 additions & 6 deletions examples/examples_png/inductor_gap/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict": []
"domain_connection":
"cond": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["coil"], ["core"]], "connected": false}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["coil", "src", "sink"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
14 changes: 8 additions & 6 deletions examples/examples_png/inductor_pot/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,13 @@
- [+11.75e-3, +11.75e-3, +01.92e-3]
- [+11.75e-3, +11.75e-3, +03.83e-3]
- [+11.75e-3, +11.75e-3, +05.75e-3]
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict": []
"domain_connection":
"cond": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["coil"], ["core"]], "connected": false}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["coil", "src", "sink"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
10 changes: 6 additions & 4 deletions examples/examples_png/inductor_spiral/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict": []
"domain_connection":
"domain_connected":
"connect": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
15 changes: 8 additions & 7 deletions examples/examples_png/iron_core/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict": []
"domain_connection":
"cond": {"domain_group": [["wire"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["gnd"]], "connected": true}
"insulation": {"domain_group": [["wire"], ["core"]], "connected": false}
"domain_connected":
"conductor": {"domain_group": [["wire"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["wire", "src", "sink"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
14 changes: 8 additions & 6 deletions examples/examples_png/shield/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@
- [+05.00e-3, +10.00e-3, +08.00e-3]
- [+10.00e-3, +10.00e-3, -08.00e-3]
- [+10.00e-3, +10.00e-3, +08.00e-3]
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict": []
"domain_connection":
"cond": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["coil"], ["core"]], "connected": false}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["coil", "src", "sink"], ["core"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
12 changes: 7 additions & 5 deletions examples/examples_shape/busbar/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["copper"], "domain_keep": ["src"]}
- {"domain_resolve": ["copper"], "domain_keep": ["sink"]}
"domain_connection":
"connect": {"domain_group": [["copper"], ["src"], ["sink"]], "connected": true}
"domain_connected":
"conductor": {"domain_group": [["copper"], ["src"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
15 changes: 9 additions & 6 deletions examples/examples_shape/coplanar/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["copper"], "domain_keep": ["src_a", "sink_a"]}
- {"domain_resolve": ["copper"], "domain_keep": ["src_b", "sink_b"]}
"domain_connection":
"front": {"domain_group": [["src_a"], ["sink_a"]], "connected": true}
"back": {"domain_group": [["src_b"], ["sink_b"]], "connected": true}
"domain_connected":
"conductor_a": {"domain_group": [["src_a"], ["sink_a"]], "connected": true}
"conductor_b": {"domain_group": [["src_b"], ["sink_b"]], "connected": true}
"insulation": {"domain_group": [["src_a", "sink_a"], ["src_b", "sink_b"]], "connected": false}
"domain_adjacent":
"terminal_a": {"domain_group": [["src_a"], ["sink_a"]], "connected": false}
"terminal_b": {"domain_group": [["src_b"], ["sink_b"]], "connected": false}
28 changes: 16 additions & 12 deletions examples/examples_shape/parallel/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@
"shape_data":
"diameter": 0.5e-3
"coord": [[0.0e-3, -1.0e-3]]
"src_1":
"src_a":
-
"shape_layer": ["src"]
"shape_operation": "add"
"shape_type": "pad"
"shape_data":
"diameter": 0.5e-3
"coord": [[0.0e-3, +1.0e-3]]
"src_2":
"src_b":
-
"shape_layer": ["src"]
"shape_operation": "add"
"shape_type": "pad"
"shape_data":
"diameter": 0.5e-3
"coord": [[0.0e-3, -1.0e-3]]
"sink_1":
"sink_a":
-
"shape_layer": ["sink"]
"shape_operation": "add"
"shape_type": "pad"
"shape_data":
"diameter": 0.5e-3
"coord": [[0.0e-3, +1.0e-3]]
"sink_2":
"sink_b":
-
"shape_layer": ["sink"]
"shape_operation": "add"
Expand All @@ -74,13 +74,17 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["wire"], "domain_keep": ["src_1", "src_2"]}
- {"domain_resolve": ["wire"], "domain_keep": ["sink_1", "sink_2"]}
"domain_connection":
"connect_1": {"domain_group": [["wire"], ["src_1"], ["sink_1"]], "connected": true}
"connect_2": {"domain_group": [["wire"], ["src_2"], ["sink_2"]], "connected": true}
- {"domain_resolve": ["wire"], "domain_keep": ["src_a", "src_b"]}
- {"domain_resolve": ["wire"], "domain_keep": ["sink_a", "sink_b"]}
"domain_connected":
"conductor_a": {"domain_group": [["src_a"], ["sink_a"]], "connected": true}
"conductor_b": {"domain_group": [["src_b"], ["sink_b"]], "connected": true}
"insulation": {"domain_group": [["src_a", "sink_a"], ["src_b", "sink_b"]], "connected": false}
"domain_adjacent":
"terminal_a": {"domain_group": [["src_a"], ["sink_a"]], "connected": false}
"terminal_b": {"domain_group": [["src_b"], ["sink_b"]], "connected": false}
26 changes: 13 additions & 13 deletions examples/examples_shape/parallel/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@

"material_def":
"wire":
"domain_list": ["src_1", "src_2", "sink_1", "sink_2", "wire"]
"domain_list": ["src_a", "src_b", "sink_a", "sink_b", "wire"]
"material_type": "electric"
"orientation_type": "isotropic"
"var_type": "lumped"
"source_def":
"src_1":
"domain_list": ["src_1"]
"src_a":
"domain_list": ["src_a"]
"source_type": "current"
"var_type": "lumped"
"src_2":
"domain_list": ["src_2"]
"src_b":
"domain_list": ["src_b"]
"source_type": "current"
"var_type": "lumped"
"sink_1":
"domain_list": ["sink_1"]
"sink_a":
"domain_list": ["sink_a"]
"source_type": "voltage"
"var_type": "lumped"
"sink_2":
"domain_list": ["sink_2"]
"sink_b":
"domain_list": ["sink_b"]
"source_type": "voltage"
"var_type": "lumped"
"sweep_config":
Expand All @@ -37,7 +37,7 @@
"material_val":
"wire": {"rho_re": 1.75e-8, "rho_im": 0.0}
"source_val":
"src_1": {"I_re": +1.0, "I_im": 0.0, "Y_re": 0.0, "Y_im": 0.0}
"src_2": { "I_re": -1.0, "I_im": 0.0, "Y_re": 0.0, "Y_im": 0.0 }
"sink_1": {"V_re": 0.0, "V_im": 0.0, "Z_re": 0.0, "Z_im": 0.0}
"sink_2": {"V_re": 0.0, "V_im": 0.0, "Z_re": 0.0, "Z_im": 0.0}
"src_a": {"I_re": +1.0, "I_im": 0.0, "Y_re": 0.0, "Y_im": 0.0}
"src_b": { "I_re": -1.0, "I_im": 0.0, "Y_re": 0.0, "Y_im": 0.0 }
"sink_a": {"V_re": 0.0, "V_im": 0.0, "Z_re": 0.0, "Z_im": 0.0}
"sink_b": {"V_re": 0.0, "V_im": 0.0, "Z_re": 0.0, "Z_im": 0.0}
15 changes: 9 additions & 6 deletions examples/examples_shape/trace/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,17 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["copper"], "domain_keep": ["src_front"]}
- {"domain_resolve": ["copper"], "domain_keep": ["src_back"]}
- {"domain_resolve": ["copper"], "domain_keep": ["sink"]}
"domain_connection":
"top": {"domain_group": [["copper"], ["src_front"], ["sink"]], "connected": true}
"bottom": {"domain_group": [["copper"], ["src_back"], ["sink"]], "connected": true}
"domain_connected":
"conductor_front": {"domain_group": [["src_front"], ["sink"]], "connected": true}
"conductor_back": {"domain_group": [["src_back"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal_front": {"domain_group": [["src_front"], ["sink"]], "connected": false}
"terminal_back": {"domain_group": [["src_back"], ["sink"]], "connected": false}
12 changes: 7 additions & 5 deletions examples/examples_shape/wire/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["wire"], "domain_keep": ["src"]}
- {"domain_resolve": ["wire"], "domain_keep": ["sink"]}
"domain_connection":
"connect": {"domain_group": [["wire"], ["src"], ["sink"]], "connected": true}
"domain_connected":
"conductor": {"domain_group": [["wire"], ["src"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
12 changes: 7 additions & 5 deletions examples/examples_stl/inductor_air/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["coil"], "domain_keep": ["src"]}
- {"domain_resolve": ["coil"], "domain_keep": ["sink"]}
"domain_connection":
"connect": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
13 changes: 8 additions & 5 deletions examples/examples_stl/inductor_core/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["coil"], "domain_keep": ["src"]}
- {"domain_resolve": ["coil"], "domain_keep": ["sink"]}
"domain_connection":
"coil": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["coil", "src", "sink"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
20 changes: 11 additions & 9 deletions examples/examples_stl/inductor_toroid/geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"xyz_min": null
"xyz_max": null
"domain_stl":
"wire": [{"scale": 1.0, "offset": [0.0, 0.0, 0.0], "filename": !path "stl/wire.stl"}]
"coil": [{"scale": 1.0, "offset": [0.0, 0.0, 0.0], "filename": !path "stl/coil.stl"}]
"src": [ { "scale": 1.0, "offset": [ 0.0, 0.0, 0.0 ], "filename": !path "stl/src.stl" } ]
"sink": [ { "scale": 1.0, "offset": [ 0.0, 0.0, 0.0 ], "filename": !path "stl/sink.stl" } ]
"core": [{"scale": 1.0, "offset": [0.0, 0.0, 0.0], "filename": !path "stl/core.stl"}]
Expand All @@ -22,13 +22,15 @@
"use_resample": false
"resampling_factor": [1, 1, 1]
"pts_cloud": []
"check_cloud": true
"check_conflict": true
"check_connection": true
"resolve_cloud": true
"resolve_conflict": true
"check_integrity": true
"random_resolution": false
"domain_conflict":
- {"domain_resolve": ["wire"], "domain_keep": ["src"]}
- {"domain_resolve": ["wire"], "domain_keep": ["sink"]}
"domain_connection":
"wire": {"domain_group": [["src"], ["sink"], ["wire"]], "connected": true}
"core": {"domain_group": [["wire"], ["core"]], "connected": false}
- {"domain_resolve": ["coil"], "domain_keep": ["src"]}
- {"domain_resolve": ["coil"], "domain_keep": ["sink"]}
"domain_connected":
"conductor": {"domain_group": [["coil"], ["src"], ["sink"]], "connected": true}
"core": {"domain_group": [["core"], ["coil", "src", "sink"]], "connected": false}
"domain_adjacent":
"terminal": {"domain_group": [["src"], ["sink"]], "connected": false}
2 changes: 1 addition & 1 deletion examples/examples_stl/inductor_toroid/problem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"material_def":
"coil":
"domain_list": ["src", "sink", "wire"]
"domain_list": ["src", "sink", "coil"]
"material_type": "electric"
"orientation_type": "isotropic"
"var_type": "lumped"
Expand Down
Loading

0 comments on commit f33d6d8

Please sign in to comment.