Closed finngl closed 4 years ago
Using Linux? ANSYS corba is a bit more limited than using pexpect
. You can get around this by setting prefer_pexpect=True
when initializing ansys:
import pyansys
ansys = pyansys.ANSYS(prefer_pexpect=True)
I'll add something in the docs about this error.
No, I'm on Windows. And I already tried to use prefer_pexpect=True
, with no success...
I changed the error reporting to raise an exception when commands couldn't run through CORBA. Before they were just warnings in the logger.
If possible, please send me the input file that you're using and I'll take a look at it. It might be necessary to run this command non-interactively. See the documentation for how to do that.
Ah, I see. So ANSYS does not support all commands through CORBA? I've tried to search for a list of what commands that are or are not supported this way - haven't been able to finde one....
I've tried to use ansys.non-interactive as described in the documentation. Unfortunately, I keep getting 'permission denied' errors when attempting to write to tmp.inp. It doesn't help to delete the file first or uncheck its read-only flag. Have you tested this on Windows?
CORBA documentation has been lacking from ANSYS, which makes writing a python module to support it quite difficult. There's a few thousand APDL commands and I have not yet tested all of them. Conversion of the verification files is an ongoing process.
I'll have to test the non_interactive feature in Windows. I honestly can't test it fully each time on both Linux and Windows for each release, especially as I can't get a copy of ANSYS on Travis CI and Appveyor. Functional testing ends up being local and only on major releases.
Either way, I'll have to debug this, make list of non-supported CORBA commands, and then raise a meaningful exception when it does so people know how to deal with them.
There's no rush. I might take a look at the code myself and see how I can get around it.
is it possible to start ansys gui and send the command to it
Yes, use open_gui
.
can we send all the commands in GUI or some exceptions are there.
Not all commands are available in the GUI. This is noted in ANSYS help see: APDL Commands
Closing due to inactivity. Please open again with specific commands that should be available within pyansys but are not GUI only commands.
After upgrading PyAnsys from version 0.29.0 to 0.31.2, certain APDL commands now fails; f. ex. SECBLOCK.
Error message says 'APDL command not supported in aaS'