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

FIX: Set emissivity value in surface material #5015

Merged
merged 1 commit into from
Aug 8, 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
3 changes: 2 additions & 1 deletion _unittest/test_98_Icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ def test_28_get_all_dielectrics(self):
]

def test_29_assign_surface_material(self):
self.aedtapp.materials.add_surface_material("my_surface", 0.5)
surf_mat = self.aedtapp.materials.add_surface_material("my_surface", 0.5)
assert surf_mat.emissivity.value == 0.5
obj = ["box2", "box3"]
assert self.aedtapp.assign_surface_material(obj, "my_surface")
assert self.aedtapp.assign_surface_material("box", "Fe-cast")
Expand Down
2 changes: 1 addition & 1 deletion pyaedt/modules/MaterialLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def add_surface_material(self, name, emissivity=None):
else:
material = SurfaceMaterial(self._app, name, material_update=False)
if emissivity:
material.emissivity = emissivity
material.emissivity.value = emissivity
material.update()
material._material_update = True
self.logger.info("Material has been added. Edit it to update in Desktop.")
Expand Down
Loading