ansys.fluent.core.session_pure_meshing#
Module containing class encapsulating Fluent connection.
Classes:
|
Encapsulates a Fluent meshing session. |
- class ansys.fluent.core.session_pure_meshing.PureMeshing(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
Bases:
BaseSession
Encapsulates a Fluent meshing session.
A
tui
object for meshing TUI commanding, andmeshing
andworkflow
objects for access to task-based meshing workflows are all exposed here. Noswitch_to_solver
method is available in this mode.Attributes:
Datamodel root of PMFileManagement.
Datamodel root of PartManagement.
Current meshing workflow.
Datamodel root of meshing.
Datamodel root of meshing_utilities.
Datamodel root of preferences.
Instance of
main_menu
on which Fluent's SolverTUI methods can be executed.Datamodel root of workflow.
Methods:
__init__
(fluent_connection, scheme_eval[, ...])PureMeshing session.
Create a meshing workflow.
Get a new fault-tolerant workflow.
load_workflow
(file_path)Load a saved workflow.
Get a new topology-based meshing workflow.
transfer_mesh_to_solvers
(solvers[, ...])Transfer mesh to Fluent solver instances.
Get a new 2D meshing workflow.
Get a new watertight workflow.
- property PMFileManagement#
Datamodel root of PMFileManagement.
- property PartManagement#
Datamodel root of PartManagement.
- __init__(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
PureMeshing 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_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 theSession
object.
- create_workflow()#
Create a meshing workflow.
- property current_workflow#
Current meshing workflow.
- fault_tolerant()#
Get a new fault-tolerant workflow.
- load_workflow(file_path)#
Load a saved workflow.
- property meshing#
Datamodel root of meshing.
- property meshing_utilities#
Datamodel root of meshing_utilities.
- property preferences#
Datamodel root of preferences.
- topology_based()#
Get a new topology-based meshing workflow.
- Raises:
RuntimeError
If beta features are not enabled in Fluent.
- 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_type
str
,default
“case” “case” or “mesh”
- file_name_stem
str
Optional file name stem
- num_files_to_try
int
,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.
- two_dimensional_meshing()#
Get a new 2D meshing workflow.
- watertight()#
Get a new watertight workflow.
- property workflow#
Datamodel root of workflow.