session#
Fluent meshing session classes.
This package exposes two meshing session types:
Meshingsupports switchingthe running Fluent process to solver mode with
switch_to_solver().
PureMeshingprovidesmeshing capabilities without solver switching, for workflows where meshing and solving run separately.
Both classes inherit the common meshing API from the internal BaseMeshing
class, which extends BaseSession.
Classes:
|
Fluent meshing session with the ability to switch to a solver. |
|
Fluent meshing session without solver-switching capability. |
- class ansys.fluent.core.meshing.session.Meshing(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
Bases:
BaseMeshingFluent meshing session with the ability to switch to a solver.
Extends
BaseMeshingby addingswitch_to_solver(), which transitions the running Fluent process from meshing mode to solver mode and returns aSolverinstance.All attributes and workflow factory methods of
BaseMeshingare available here. Afterswitch_to_solver()is called this object is deactivated and must not be used.Methods:
Switch to solver mode and return a solver session object.
- switch_to_solver()#
Switch to solver mode and return a solver session object. Deactivate this object’s public interface and streaming services.
- Returns:
Solver
- class ansys.fluent.core.meshing.session.PureMeshing(fluent_connection, scheme_eval, file_transfer_service=None, start_transcript=True, launcher_args=None)#
Bases:
BaseMeshingFluent meshing session without solver-switching capability.
Designed for deployments where meshing and solving run as separate processes (e.g. containerised pipelines). All public API is provided by
BaseMeshing.Use
Meshingwhen you also needswitch_to_solver().