Giter VIP home page Giter VIP logo

Comments (12)

akaszynski avatar akaszynski commented on May 25, 2024

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.

from pymapdl.

finngl avatar finngl commented on May 25, 2024

No, I'm on Windows. And I already tried to use prefer_pexpect=True, with no success...

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

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.

from pymapdl.

finngl avatar finngl commented on May 25, 2024

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....

from pymapdl.

finngl avatar finngl commented on May 25, 2024

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?

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

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.

from pymapdl.

finngl avatar finngl commented on May 25, 2024

There's no rush. I might take a look at the code myself and see how I can get around it.

from pymapdl.

mahes2312 avatar mahes2312 commented on May 25, 2024

is it possible to start ansys gui and send the command to it

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

Yes, use open_gui.

from pymapdl.

mahes2312 avatar mahes2312 commented on May 25, 2024

can we send all the commands in GUI or some exceptions are there.

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

Not all commands are available in the GUI. This is noted in ANSYS help see:
APDL Commands

from pymapdl.

akaszynski avatar akaszynski commented on May 25, 2024

Closing due to inactivity. Please open again with specific commands that should be available within pyansys but are not GUI only commands.

from pymapdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.