pyANSYS Installation procedure for Linux environment

Options

We are using Ansys mechanical and fluent of version 2022R2 in HPC linux machine
Do we have pyANSYS incorporated with the above package or do we need to install separately?

If we need to install separately, could you please share the procedure to install in linux machine.

We could only find for Windows (https://dpf.docs.pyansys.com/version/stable/getting_started/index.html)

Also please share pre-requisites launch job in pyANSYS.

Thanks.

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 804
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    Hi @Siva-Kumar SEKAR , PyAnsys works in client-server mode (for most of the packages). The server is shipped with the standard installation, but you will have to install the client part (ie the one you install from pip install, see https://dpf.docs.pyansys.com/version/stable/getting_started/install.html).

  • Siva-Kumar SEKAR
    Siva-Kumar SEKAR Member Posts: 3
    Name Dropper First Comment
    Options

    Hello Pernelle

    Thank you for the installation procedure.
    We have installed pyANSYS in our linux environment.

    Could you please share pyANSYS sample commands to launch a simulation job?

    Thanks.

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 804
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    Hi @Siva-Kumar SEKAR , each documentation of each PyAnsys package shows how to do that. Note - before you referenced a link to the PyDPF documentation. PyDPF does not _simulate _anything, it extracts data from files (usually, result files) and enables manipulating and plotting this data.

  • Siva-Kumar SEKAR
    Siva-Kumar SEKAR Member Posts: 3
    Name Dropper First Comment
    Options

    Hello @Pernelle Marone-Hitz ,

    Thank you for your feedback.

    Can you share the license requirement for pyANSYS?

    Thanks

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 804
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    Hi @Siva-Kumar SEKAR , PyAnsys itself does not consume a license. The Ansys products that you call through PyAnsys will. For PyDPF, the license consumption will depend on whether you're using Entry or Premium operator. This is explained in the PyDPF documentation.

  • CollinsJnr
    CollinsJnr Member Posts: 17
    First Comment Name Dropper
    Options

    @Pernelle Marone-Hitz

    Please I have a question about using pyansys on Linux HPC

    from the cheat sheet for pymechanical, I can use the code below to find where AnsysWBU.exe is located on Windows computer;

    from ansys.mechanical.core import find_mechanical

    wb_exe = find_mechanical(241)[0]

    'Ansys Inc\v241\aisol\bin\winx64\AnsysWBU.exe'

    On Linux I have tried to do same code:

    from ansys.mechanical.core import find_mechanical

    wb_exe = find_mechanical(232)[0]

    but it returns an empty string:

    I have checked the folder

    /Ansys Inc/v232/aisol/bin/linx64/*

    but I did not fine the AnsysWBU.exe

    My question then is, is there a different way to find the .exe file or is this file different for Linux?

    Thank you in advance

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 804
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    @CollinsJnr Please create a new post for this as the topics are different. Thank you