Skip to content

Commit

Permalink
add try except on fem elem to plate conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Dec 17, 2023
1 parent e391a1b commit 105699c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/ada/fem/formats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,19 @@ def convert_shell_elem_to_plates(elem: Elem, parent: Part) -> list[Plate]:
)
)
else:
plates.append(
Plate.from_3d_points(
f"sh{elem.id}",
[n.p for n in elem.nodes],
fem_sec.thickness,
mat=fem_sec.material,
parent=parent,
try:
plates.append(
Plate.from_3d_points(
f"sh{elem.id}",
[n.p for n in elem.nodes],
fem_sec.thickness,
mat=fem_sec.material,
parent=parent,
)
)
)
except BaseException as e:
logger.error(f"Unable to convert {elem.id=} to plate due to {e}")

return plates


Expand Down

0 comments on commit 105699c

Please sign in to comment.