Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced assignment in all mesh arguments #4477

Merged
merged 7 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions _unittest/test_01_3dlayout_edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,8 @@ def test_03C_voids(self):

def test_04_add_mesh_operations(self):
self.aedtapp.create_setup("HFSS")
setup1 = self.aedtapp.mesh.assign_length_mesh(
"HFSS",
"PWR",
"GND",
)
setup2 = self.aedtapp.mesh.assign_skin_depth(
"HFSS",
"PWR",
"GND",
)
setup1 = self.aedtapp.mesh.assign_length_mesh("HFSS", "PWR", "GND")
setup2 = self.aedtapp.mesh.assign_skin_depth("HFSS", "PWR", "GND")
assert setup1
assert setup2
setup1.props["RestrictElem"] = False
Expand Down
2 changes: 1 addition & 1 deletion _unittest/test_98_Icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def test_56_mesh_priority(self):
custom_x_resolution=400,
custom_y_resolution=500,
)
assert self.aedtapp.mesh.add_priority(entity_type=1, objects=self.aedtapp.modeler.object_names, priority=2)
assert self.aedtapp.mesh.add_priority(entity_type=1, assignment=self.aedtapp.modeler.object_names, priority=2)
assert self.aedtapp.mesh.add_priority(
entity_type=2, component=self.aedtapp.modeler.user_defined_component_names[0], priority=1
)
Expand Down
2 changes: 1 addition & 1 deletion examples/03-Maxwell/Maxwell2D_Electrostatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Assign a surface mesh to the rectangle.

M2D.mesh.assign_surface_mesh_manual(objects=['Ground'], surface_deviation=0.001)
M2D.mesh.assign_surface_mesh_manual(assignment=['Ground'], surface_deviation=0.001)

##################################################################################
# Create, validate and analyze the setup
Expand Down
4 changes: 2 additions & 2 deletions examples/03-Maxwell/Maxwell3D_Choke.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@
# Create the mesh operation.

mesh = m3d.mesh
mesh.assign_skin_depth(objects=[first_winding_list[0], second_winding_list[0], third_winding_list[0]], skin_depth=0.20,
triangulation_max_length="10mm", name="skin_depth")
mesh.assign_skin_depth(assignment=[first_winding_list[0], second_winding_list[0], third_winding_list[0]],
skin_depth=0.20, triangulation_max_length="10mm", name="skin_depth")
mesh.assign_surface_mesh_manual([first_winding_list[0], second_winding_list[0], third_winding_list[0]],
surface_deviation=None, normal_dev="30deg", name="surface_approx")

Expand Down
2 changes: 1 addition & 1 deletion examples/04-Icepak/Icepak_Example.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
# ~~~~~~~~~~~~~~~~~~~
# Assign a mesh region to the heat sink and CPU.

mesh_region = ipk.mesh.assign_mesh_region(objects=["HEAT_SINK", "CPU"])
mesh_region = ipk.mesh.assign_mesh_region(assignment=["HEAT_SINK", "CPU"])
mesh_region.UserSpecifiedSettings = True
mesh_region.MaxElementSizeX = "3.35mm"
mesh_region.MaxElementSizeY = "1.75mm"
Expand Down
4 changes: 2 additions & 2 deletions examples/06-Multiphysics/Hfss_Icepak_Coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@
# edit or review parameter values.

aedtapp.mesh.assign_initial_mesh_from_slider(level=6)
aedtapp.mesh.assign_model_resolution(objects=[o1.name, o3.name], defeature_length=None)
aedtapp.mesh.assign_length_mesh(objects=o2.faces, inside_selection=False, maximum_length=1, maximum_elements=2000)
aedtapp.mesh.assign_model_resolution(assignment=[o1.name, o3.name], defeature_length=None)
aedtapp.mesh.assign_length_mesh(assignment=o2.faces, inside_selection=False, maximum_length=1, maximum_elements=2000)

###############################################################################
# Create excitations
Expand Down
Loading
Loading