session_solver#
Module containing class encapsulating Fluent connection.
Classes:
|
Encapsulates a Fluent solver session. |
- class ansys.fluent.core.session_solver.Solver(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
Bases:
BaseSessionEncapsulates a Fluent solver session.
A
tuiobject for solver TUI commanding, and solver settings objects are all exposed here.Methods:
__init__(fluent_connection, scheme_eval[, ...])Solver session.
Get the state of the object.
read_case_lightweight(file_name)Read a case file using light IO mode.
set_state([state])Set the state of the object.
Switch to meshing mode and return a meshing session object.
Attributes:
Datamodel root of preferences.
Reductionhandle.Settings root handle.
SolutionVariableDatahandle.SolutionVariableInfohandle.System coupling object.
Instance of
main_menuon which Fluent's SolverTUI methods can be executed.Datamodel root for workflow.
- __init__(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
Solver session.
- Parameters:
- fluent_connection (:ref:`ref_fluent_connection`):
Encapsulates a Fluent connection.
- scheme_eval: SchemeEval
Instance of
SchemeEvalto execute Fluent’s scheme code on.- file_transfer_service
Optional Service for uploading and downloading files.
- start_transcriptbool,
optional Whether to start the Fluent transcript in the client. The default is
True, in which case the Fluent transcript can be subsequently started and stopped using method calls on theSessionobject.
- get_state()#
Get the state of the object.
- property preferences#
Datamodel root of preferences.
- read_case_lightweight(file_name)#
Read a case file using light IO mode.
- Parameters:
- file_name
str Case file name
- file_name
- property reduction#
Reductionhandle.
- set_state(state=None, **kwargs)#
Set the state of the object.
- property settings#
Settings root handle.
- property svar_data#
SolutionVariableDatahandle.
- property svar_info#
SolutionVariableInfohandle.
- switch_to_meshing()#
Switch to meshing mode and return a meshing session object. Deactivate this object’s public interface and streaming services.
- Returns:
Meshing
- Raises:
AttributeErrorIf beta features are not enabled in Fluent.
- property system_coupling#
System coupling object.
- property tui#
Instance of
main_menuon which Fluent’s SolverTUI methods can be executed.
- property workflow#
Datamodel root for workflow.