simulationflow2 / modules /simulation.py
karthikmn's picture
Create simulation.py
6d6d281 verified
raw
history blame contribute delete
326 Bytes
from ansys.mapdl.core import launch_mapdl
def run_simulation(script_path):
try:
mapdl = launch_mapdl()
mapdl.input(script_path)
return "Simulation completed successfully. Results are stored in ANSYS output directory."
except Exception as e:
return f"Error during simulation: {str(e)}"