Hi everyone,
I am trying to learn and build a proper automation workflow for ANSYS Mechanical using PyAnsys (PyMechanical).
My goal is to automate the Mechanical workflow using Python.
My setup
ANSYS Mechanical 2025 R2 (v252) – Student Version
Python 3.10
ansys-mechanical-core = 0.11.8
Windows Os
VS Code
What works
I am able to successfully launch and control ANSYS Fluent from VS Code using PyFluent.
Python environment and VS Code interpreter are working correctly.
The problem
When I try to launch ANSYS Mechanical using PyMechanical, I consistently face connection / launch issues.
Typical errors I encounter:
Mechanical executable path not detected automatically
gRPC / transport-related errors (when using newer PyMechanical versions)
Path validation errors even when specifying AnsysWBU.exe
I downgraded PyMechanical to 0.11.8 to avoid secure gRPC issues (since Mechanical 2025 R2 does not support secure gRPC unless SP03+), but I still cannot reliably launch or attach to Mechanical.
What I want to understand
Is there a recommended / stable way to automate Mechanical 2025 R2 Student version using PyAnsys?
Are there known limitations of PyMechanical with the Student edition (unlike Fluent)?
Is there a straightforward, supported workflow (local launch, attach to running session, batch mode, etc.) that I should follow?
Are there any specific executable paths, environment variables, or settings required for Student installations?
Is full automation is not supported for Student Mechanical?
I would really appreciate it if someone could share:
A working example for Mechanical 2025 R2
Or a clear explanation of current limitations and best practices