session#
Module containing class encapsulating CFX connection and the Base Session.
Classes:
|
Instantiates a CFX connection. |
- class ansys.cfx.core.session.BaseSession(cfx_connection: CFXConnection, file_transfer_service: Any | None = None)#
Bases:
objectInstantiates a CFX connection.
- Attributes:
- engine_eval: EngineEval
Instance of EngineEval to execute CFX’s CCL code on.
Methods:
__init__(cfx_connection[, file_transfer_service])Instantiates an instance of the
BaseSessionclass.build_from_cfx_connection(cfx_connection[, ...])Build a
BaseSessionobject from acfx_connectionobject.download(file_name[, local_directory])Download a file from the server.
execute_ccl(command[, wait])Execute a CCL command.
exit(**kwargs)Exit the session.
Terminate the CFX session immediately, losing unsaved progress and data.
Get the CFX version.
get_name()Get the session name.
Get the state of the object.
Check if the session can connect to a remote server.
Check if the current session is healthy.
set_state([state])Set the state of the object.
upload(file_name)Upload a file to the server.
Attributes:
- __init__(cfx_connection: CFXConnection, file_transfer_service: Any | None = None)#
Instantiates an instance of the
BaseSessionclass.- Args:
cfx_connection (cfx_connection): Encapsulates a CFX connection. file_transfer_service: Supports file upload and download.
- build_from_cfx_connection(cfx_connection: CFXConnection, file_transfer_service: Any | None = None)#
Build a
BaseSessionobject from acfx_connectionobject.
- get_cfx_version() CFXVersion#
Get the CFX version.
- get_state() StateT#
Get the state of the object.
- property settings#
Root settings object.