Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,11 +58,18 @@ def execute_script():
|
|
| 58 |
f.write(apdl_script)
|
| 59 |
|
| 60 |
# Define ANSYS execution command
|
| 61 |
-
ansys_command = [
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
]
|
| 67 |
|
| 68 |
try:
|
|
|
|
| 58 |
f.write(apdl_script)
|
| 59 |
|
| 60 |
# Define ANSYS execution command
|
| 61 |
+
#ansys_command = [
|
| 62 |
+
# "ansys", # Replace with the full path to your ANSYS executable
|
| 63 |
+
# "-b", # Batch mode
|
| 64 |
+
# "-i", script_file, # Input script
|
| 65 |
+
# "-o", "output.log" # Output log
|
| 66 |
+
ansys_command = [
|
| 67 |
+
"C:\\Program Files\\ANSYS Inc\\v211\\ansys.exe", # Replace with actual path
|
| 68 |
+
"-b",
|
| 69 |
+
"-i", script_file,
|
| 70 |
+
"-o", "output.log"
|
| 71 |
+
]
|
| 72 |
+
|
| 73 |
]
|
| 74 |
|
| 75 |
try:
|