Skip to content

ANSYS install used by DPF #1280

Closed Answered by PProfizi
agrishin asked this question in Q&A
Nov 13, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @agrishin,

To know which ANSYS installation your PyDPF script is going to use, you can try out the following script which starts a server with the default logic and then prints out its version and path where DLLs will be used:

import ansys.dpf.core as dpf

server = dpf.start_local_server()
print(server.version)
print(server.ansys_path)

That makes me think I should wrap this in a one-liner for easier use, as well as in a "diagnostic" tool which would give a summary of everything going on.

The environment variable mentioned by @mikerife is ANSYS_DPF_PATH. It can be used to set a default ANSYS install to use anytime DPF tries to start a server.

What you can otherwise do is define it at t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
Answer selected by PProfizi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants