Skip to content

Commit

Permalink
Maint: update for 24R2 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair authored Jul 10, 2024
1 parent 1daa887 commit bcd59f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cheat_sheets/pymechanical_cheat_sheet/pymechanical_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mechanical = pymechanical.launch_mechanical()
# BREAK BLOCK
# Standalone Mechanical from a local or remote terminal
ansys-mechanical -r 241 --port 10000 -g
ansys-mechanical -r 242 --port 10000 -g
# BREAK BLOCK
import ansys.mechanical.core as pymechanical
# #Note: The following code uses port 10000, but you can specify an alternative port if required.
Expand All @@ -20,8 +20,8 @@
# BREAK BLOCK
from ansys.mechanical.core import find_mechanical

wb_exe = find_mechanical(241)[0]
# 'Ansys Inc\\v241\\aisol\\bin\\winx64\\AnsysWBU.exe'
wb_exe = find_mechanical(242)[0]
# 'Ansys Inc\\v242\\aisol\\bin\\winx64\\AnsysWBU.exe'
mechanical = launch_mechanical(
exec_file=wb_exe, verbose_mechanical=True, batch=True)
print(mechanical)
Expand Down Expand Up @@ -70,7 +70,7 @@
# BREAK BLOCK
from ansys.mechanical.core import App

app = App(version=241)
app = App(version=242)
print(app)
# BREAK BLOCK

Expand Down Expand Up @@ -99,5 +99,5 @@
Logger)

Configuration.configure(level=logging.WARNING, to_stdout=True)
app = App(version=241)
app = App(version=242)
Logger.error("message")

0 comments on commit bcd59f1

Please sign in to comment.