session_pure_meshing#

Module containing class encapsulating Fluent connection.

Classes:

PureMeshing(fluent_connection)

Encapsulates a Fluent meshing session.

class ansys.fluent.core.session_pure_meshing.PureMeshing(fluent_connection)#

Bases: BaseSession

Encapsulates a Fluent meshing session. A tui object for meshing TUI commanding, and meshing and workflow objects for access to task-based meshing workflows are all exposed here. No switch_to_solver method is available in this mode.

Attributes:

PMFileManagement

Datamodel root of PMFileManagement.

PartManagement

Datamodel root of PartManagement.

meshing

Datamodel root of meshing.

preferences

Datamodel root of preferences.

r

rules

tui

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

workflow

Datamodel root of workflow.

Methods:

__init__(fluent_connection)

PureMeshing session.

fault_tolerant([dynamic_interface])

transfer_mesh_to_solvers(solvers[, ...])

Transfer mesh to Fluent solver instances.

watertight([dynamic_interface])

property PMFileManagement#

Datamodel root of PMFileManagement.

property PartManagement#

Datamodel root of PartManagement.

__init__(fluent_connection)#

PureMeshing session.

Args:

fluent_connection (fluent_connection): Encapsulates a Fluent connection.

fault_tolerant(dynamic_interface=True)#
property meshing#

Datamodel root of meshing.

property preferences#

Datamodel root of preferences.

r = 'PMFileManagement'#
rules = ['workflow', 'meshing', 'PartManagement', 'PMFileManagement']#
transfer_mesh_to_solvers(solvers, file_type='case', file_name_stem=None, num_files_to_try=1, clean_up_mesh_file=True, overwrite_previous=True)#

Transfer mesh to Fluent solver instances.

Parameters:
solversiterable

Sequence of solver instances

file_typestr, default “case”

“case” or “mesh”

file_name_stemstr

Optional file name stem

num_files_to_tryint, default 1

Optional number of files to try to write, each with a different generated name. Defaults to 1

clean_up_mesh_file: bool, default True

Whether to remove the file at the end

overwrite_previous: bool, default True

Whether to overwrite the file if it already exists

Returns
——-
None
property tui#

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

watertight(dynamic_interface=True)#
property workflow#

Datamodel root of workflow.