Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mostieri/dvs module #494

Merged
merged 46 commits into from
Jan 8, 2025
Merged

Mostieri/dvs module #494

merged 46 commits into from
Jan 8, 2025

Conversation

mariostieriansys
Copy link
Collaborator

Add support for a (py)DVS module in PyEnSight.

The module will attempt to load the actual Python bindings from the Ansys install if the connection is local and an Ansys install location is provided, or a folder containing the bindings is provided.
If both are not provided or they don't work (like using a different python distribution), one can provide a PyEnSight session object to use the dvs module on the remote python interpreter where EnSight is running.

The user can also set the session later, since it might be required, for example, if the servers need to be launched in EnSight for an in-situ session.

The module first of all provides the direct DVS api via the stubs coming from ansys-api-pyensight, which switch between pure module or PyEnSight session depending on the availability.
There are also some simplified interfaces that try to hide as much as possible the DVS complexity, helping to start servers, clients, updates, create part and var definition, or sending data. Some simplified assumptions have been done to make the interfaces simple, like the ranks being split evenly among the servers.
For the connectivity array the input is supposed to be the Simba format. While it can be generalized in the future, one can still use the base DVS API to send the connectivity with the "DVS" format

This will be the base for building a "SimbaDVSGraphicsProtocol" to be used in SImba

The PR will fail for the moment being, for two reasons:

  1. The ansys-api-pyensight version 0.4.3 doesn't exist yet
  2. There is an issue with the CFF reader on linux, that can be reproduced using the latest dev EnSight containers. I guess it is due to the ABI=1 switch. Working on it

@mariostieriansys mariostieriansys merged commit 8accf58 into main Jan 8, 2025
25 checks passed
@mariostieriansys mariostieriansys deleted the mostieri/dvs_module branch January 8, 2025 15:21
mariostieriansys added a commit that referenced this pull request Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants