Demo091224 / simulators /ansys_simulation.py
SuriRaja's picture
Update simulators/ansys_simulation.py
7185cf6 verified
raw
history blame contribute delete
299 Bytes
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