Skip to content

I can't run Pyansys-math: enter manually the path #128

Answered by clatapie
MayconSilva7 asked this question in Q&A
Discussion options

You must be logged in to vote

As MAPDL is used in the background, it is necessary to have a licensing for that and localize its executable file. This discussion will probably helps you to find out were your ANSYS executable is located.
Once PyMAPDL is correctly set up, you can launch PyAnsys Math. The final code will probably look something like this:

from ansys.mapdl.core import launch_mapdl
import ansys.math.core.math as pymath

new_path = "C:\\Program Files\\ANSYS Inc\\v212\\ANSYS\\bin\\winx64\\ansys222.exe"
mapdl = launch_mapdl(exec_file=new_path)
mm = pymath.AnsMath(mapdl)

or, like this:

from ansys.mapdl import core as pymapdl
import ansys.math.core.math as pymath

new_path = "C:\\Program Files\\ANSYS Inc\\v212…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@clatapie
Comment options

Answer selected by clatapie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants