Spaces:
Runtime error
Runtime error
File size: 326 Bytes
6d6d281 |
1 2 3 4 5 6 7 8 9 10 |
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)}"
|