AvailableServerConfigs
#
- class ansys.dpf.core.server_factory.AvailableServerConfigs#
Define available server configurations.
- LegacyGrpcServer = ServerConfig(CommunicationProtocols.gRPC, legacy=True)
Using gRPC communication through the python module ansys.grpc.dpf.
- InProcess = ServerConfig(CommunicationProtocols.InProcess, legacy=False)
Loading DPF in Process.
- GrpcServer = ServerConfig(CommunicationProtocols.gRPC, legacy=False)
Using gRPC communication through DPF gRPC CLayer Ans.Dpf.GrpcClient.
Examples
>>> from ansys.dpf import core as dpf >>> in_process_config = dpf.AvailableServerConfigs.InProcessServer >>> grpc_config = dpf.AvailableServerConfigs.GrpcServer >>> legacy_grpc_config = dpf.AvailableServerConfigs.LegacyGrpcServer >>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) >>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) >>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False)
Overview#
Import detail#
from ansys.dpf.core.server_factory import AvailableServerConfigs
Attribute detail#
- AvailableServerConfigs.LegacyGrpcServer#
- AvailableServerConfigs.InProcessServer#
- AvailableServerConfigs.GrpcServer#