Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maint: update for 24R2 #73

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -100,5 +100,5 @@
Logger)

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