3Dsimulation / simulators /ansys_simulation.py
karthikmn's picture
Create ansys_simulation.py
064c922 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