Spaces:
Sleeping
Sleeping
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 | |