Spaces:
Sleeping
Sleeping
File size: 299 Bytes
708aaa2 7185cf6 708aaa2 |
1 2 3 4 5 6 7 8 9 10 |
from ansys.mapdl.core import launch_mapdl
def run_ansys_simulation(apdl_file):
mapdl = launch_mapdl()
mapdl.input(apdl_file)
max_stress = mapdl.get_value("NODE", 0, "S", "EQV")
deformation = mapdl.get_value("NODE", 0, "U", "SUM")
mapdl.exit()
return max_stress, deformation
|