session_solver#

Module containing class encapsulating Fluent connection.

Classes:

Solver(fluent_connection[, ...])

Encapsulates a Fluent solver session.

class ansys.fluent.core.session_solver.Solver(fluent_connection, file_transfer_service=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[, ...])

Solver session.

build_from_fluent_connection(fluent_connection)

Build a solver session object from fluent_connection object.

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, file_transfer_service=None)#

Solver session.

Args:

fluent_connection (fluent_connection): Encapsulates a Fluent connection. file_transfer_service: Supports file upload and download.

build_from_fluent_connection(fluent_connection)#

Build a solver session object from fluent_connection 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.