ansys.fluent.core.session_solver#

Module containing class encapsulating Fluent connection.

Classes:

Solver(fluent_connection, scheme_eval[, ...])

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: BaseSession

Encapsulates a Fluent solver session.

A tui object for solver TUI commanding, and solver settings objects are all exposed here.

Methods:

__init__(fluent_connection, scheme_eval[, ...])

Solver session.

get_state()

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.

Attributes:

preferences

Datamodel root of preferences.

reduction

Reduction handle.

settings

Root settings object.

svar_data

SolutionVariableData handle.

svar_info

SolutionVariableInfo handle.

system_coupling

System coupling object.

tui

Instance of main_menu on which Fluent's SolverTUI methods can be executed.

workflow

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 SchemeEval to execute Fluent’s scheme code on.

file_transfer_serviceOptional

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 the Session object.

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_namestr

Case file name

property reduction#

Reduction handle.

set_state(state=None, **kwargs)#

Set the state of the object.

property settings#

Root settings object.

property svar_data#

SolutionVariableData handle.

property svar_info#

SolutionVariableInfo handle.

property system_coupling#

System coupling object.

property tui#

Instance of main_menu on which Fluent’s SolverTUI methods can be executed.

property workflow#

Datamodel root for workflow.