How to use a standalone DPF server ?

Hello there,

I'm currently trying to install a standalone DPF server_2024_1_pre0 (related to this discussion: https://discuss.ansys.com/discussion/comment/3461#Comment_3461)

I got the package from https://download.ansys.com/Others/DPF Pre-Release and installed it properly on my computer following the procedure here https://dpf.docs.pyansys.com/version/stable/getting_started/index.html#install-dpf-server.

My questions are:

  • How can I point to this server when I use dpf library in a python script ?
  • Do the Ansys licences used for the 23R2 release also work for this DPF package ?

Many thanks,
Amaury

Tagged:

Answers

  • Paul Profizi
    Paul Profizi Member, Employee Posts: 11
    10 Comments 5 Likes First Anniversary First Answer
    ✭✭✭

    Hello @Amaury Edet,

    To answer your two questions:

    • "How can I point to this server when I use dpf library in a python script": PyDPF should target the DPF installed in your active Python environment, unless you have other Ansys installations on your machine (that is a behavior which will be modified in the next release of PyDPF-Core). In that case, you need to tell PyDPF which DPF install to use by declaring the "ANSYS_DPF_PATH=PATH_TO_DPF_SERVER_2024_1_PRE0_FOLDER" environment variable.
    • The Ansys licenses used for the 23R2 release should also work for this DPF package. Make sure you have correctly set-up the "ANSYS_DPF_ACCEPT_LA" and "ANSYSLMD_LICENSE_FILE" environment variables as described in the documentation page.
  • Amaury Edet
    Amaury Edet Member Posts: 2
    Name Dropper First Comment
    **

    Hi @Paul Profizi ,

    Thanks for your reply. Those were the answers I was looking for.

    I still have an issue concerning the license file:
    I use the environment variable that I used in all my PyAnsys scripts: os.environ["ANSYSLMD_LICENSE_FILE"] = "27004@LIC_WORKBENCH"
    But I got the following error:

    "License check failed. Ensure the server is set using environment variable ANSYSLMD_LICENSE_FILE to point to the server (Example ANSYSLMD_LICENSE_FILE = 1055@my_license_server.ansys.com). Ensure you have valid license increments to use DPF Server. For more information about accepted license increments, see https://dpf.docs.pyansys.com/version/stable/user_guide/getting_started_with_dpf_server.html."

    When I print my E.V, ANSYSLMD_LICENSE_FILE is valid.

    Do you have an idea of what could go wrong ?

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
    100 Answers 500 Comments 250 Likes First Anniversary
    ✭✭✭✭

    Hi @Amaury Edet , this might be a bug of DPF standalone. I've reported this in a Github issue: https://github.com/ansys/pydpf-core/issues/1360

  • Paul Profizi
    Paul Profizi Member, Employee Posts: 11
    10 Comments 5 Likes First Anniversary First Answer
    ✭✭✭

    Hi @Amaury Edet ,

    Just to clarify, could you confirm/try what happens when setting the environment variable ANSYSLMD-LICENSE_FILE globally on your machine before running the script, and not IN the script?