session_solver#

Module containing a class encapsulating the CFX connection.

Classes:

Solver(**argvals)

Encapsulates a CFX-Solver session.

class ansys.cfx.core.session_solver.Solver(**argvals)#

Bases: BaseSession

Encapsulates a CFX-Solver session.

This object exposes the CFX-Solver in a Pythonic manner.

Methods:

__init__(**argvals)

Instantiates an instance of the BaseSession class.

exit(**kwargs)

Exit session.

get_cfx_version()

Get the CFX version.

get_cmd_name()

Get the CFX command name related to the session.

get_name()

Get the session name.

has_remote_server()

Check if the session can connect to a remote server.

Attributes:

solution

The solution object is used to control the CFX-Solver.

__init__(**argvals)#

Instantiates an instance of the BaseSession class.

Args:

cfx_connection (cfx_connection): Encapsulates a CFX connection. file_transfer_service: Supports file upload and download.

exit(**kwargs) None#

Exit session.

get_cfx_version() CFXVersion#

Get the CFX version.

classmethod get_cmd_name() str | None#

Get the CFX command name related to the session.

classmethod get_name() str | None#

Get the session name.

classmethod has_remote_server() bool#

Check if the session can connect to a remote server.

solution: SolverController#

The solution object is used to control the CFX-Solver. For example, <Solver>.solution.start_run() will start a CFX-Solver run.