connect#

ansys.systemcoupling.core.connect(host, port, connection_type=ConnectionType.SECURE_LOCAL)#

Connect to an instance of System Coupling already running in server mode.

Parameters:
hoststr

IP address of the system running the System Coupling instance.

portint

Port on which to connect to System Coupling.

connection_type: ConnectionType, optional

Specifies the type of connection to make with System Coupling. See ConnectionType for available options. This must be compatible with the mode in which the server was started. The default is a secure local connection. This will not work with some older versions of System Coupling or versions that have not been updated with service pack releases. In these cases, an insecure connection type must be specified.

Returns:
ansys.systemcoupling.core.session.Session

Session object, providing access to a set up and solve API controlling a remote System Coupling instance.

Return type:

Session