Replies: 1 comment 4 replies
-
Hi @germa89, @GuillemBarroso. The default behavior is to connect in-process. To handle all possible connection possibilities, you can take a look at https://dpf.docs.pyansys.com/examples/00-basic/11-server_types.html. Basically, if you don't set anything, the communication will be done in-process. You can change this default with the FYI @PProfizi |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
As far as I know there are 2 ways to connect to DPF: InProcess and gRPC.
To connect to gRPC, we use
dpf.connect_to_server(ip, port)
.What would be the case for
InProcess
.Furthermore, the way to connect to
InProcess
relies on any envvar or MAPDL directory where it looks for the binaries??I ask because I need to implement DPF to read PyMAPDL results and I need to handle both cases, local (Inprocess,grpc) and remote (grpc). So I need to be able to tell PyMAPDL how to connect to each of one and how.
The workflow I want to achieve is:
So I need:
dpf.connect_to_inprocess
functionConnectionError
Pinging @rafacanton @PProfizi @GuillemBarroso @cbellot000
Beta Was this translation helpful? Give feedback.
All reactions