meshing_workflow#
Meshing workflow specialization of the Workflow module that wraps and extends the core functionality.
Classes:
|
Provides a specialization of the workflow wrapper for a newly created workflow. |
|
Provides fault-tolerant meshing specialization of the workflow wrapper. |
|
Provides a specialization of the workflow wrapper for a loaded workflow. |
|
Provides meshing specialization of the workflow wrapper that extends the core functionality in an object-oriented manner. |
|
Provides topology-based meshing specialization of the workflow wrapper. |
|
Provides 2D meshing specialization of the workflow wrapper. |
|
Provides watertight meshing specialization of the workflow wrapper. |
|
Provides an enum of supported Fluent meshing workflow modes. |
Functions:
|
Get the currently active workflow in the PyFluent-native interface. |
- class ansys.fluent.core.meshing.meshing_workflow.CreatedWorkflow(session, initialize=True)#
Bases:
WorkflowProvides a specialization of the workflow wrapper for a newly created workflow.
Methods:
__init__(session[, initialize])Initialize a
CreatedWorkflowinstance.- __init__(session, initialize=True)#
Initialize a
CreatedWorkflowinstance.- Parameters:
- session
PureMeshing|Meshing Meshing session object.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- class ansys.fluent.core.meshing.meshing_workflow.FaultTolerantMeshingWorkflow(session, initialize=True)#
Bases:
MeshingWorkflow,objectProvides fault-tolerant meshing specialization of the workflow wrapper.
Methods:
__init__(session[, initialize])Initialize FaultTolerantMeshingWorkflow.
Attributes:
Access part-management in fault-tolerant mode.
Access part-management in fault-tolerant mode.
Access the part-management file-management object in fault-tolerant mode.
Access the part-management file-management object in fault-tolerant mode.
- __init__(session, initialize=True)#
Initialize FaultTolerantMeshingWorkflow.
- Parameters:
- session
PureMeshing|Meshing The meshing session.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- property part_management: PyMenu | None#
Access part-management in fault-tolerant mode.
- Returns:
PyMenu|NonePart-management.
- property parts: PyMenu | None#
Access part-management in fault-tolerant mode.
- Returns:
PyMenu|NonePart-management.
- class ansys.fluent.core.meshing.meshing_workflow.LoadedWorkflow(session, file_path=None, initialize=True)#
Bases:
WorkflowProvides a specialization of the workflow wrapper for a loaded workflow.
Methods:
__init__(session[, file_path, initialize])Initialize a
LoadedWorkflowinstance.- __init__(session, file_path=None, initialize=True)#
Initialize a
LoadedWorkflowinstance.- Parameters:
- session
PureMeshing|Meshing Meshing session object.
- file_path: os.PathLike[str | bytes] | str | bytes
Path to the saved workflow file.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- class ansys.fluent.core.meshing.meshing_workflow.MeshingWorkflow(session, workflow_type, initialize=True)#
Bases:
WorkflowProvides meshing specialization of the workflow wrapper that extends the core functionality in an object-oriented manner.
See the workflow API for details of the underlying workflow object.
Methods:
__init__(session, workflow_type[, initialize])Initialize MeshingWorkflow.
- __init__(session, workflow_type, initialize=True)#
Initialize MeshingWorkflow.
- Parameters:
- session
PureMeshing|Meshing The meshing session.
- workflow_type: str
Workflow type to initialize it.
- initialize: bool
Flag to initialize the workflow, defaults to True.
- session
- class ansys.fluent.core.meshing.meshing_workflow.TopologyBasedMeshingWorkflow(session, initialize=True)#
Bases:
MeshingWorkflow,objectProvides topology-based meshing specialization of the workflow wrapper.
Methods:
__init__(session[, initialize])Initialize TopologyBasedMeshingWorkflow.
- __init__(session, initialize=True)#
Initialize TopologyBasedMeshingWorkflow.
- Parameters:
- session
PureMeshing|Meshing Meshing session object.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- class ansys.fluent.core.meshing.meshing_workflow.TwoDimensionalMeshingWorkflow(session, initialize=True)#
Bases:
MeshingWorkflow,objectProvides 2D meshing specialization of the workflow wrapper.
Methods:
__init__(session[, initialize])Initialize TwoDimensionalMeshingWorkflow.
- __init__(session, initialize=True)#
Initialize TwoDimensionalMeshingWorkflow.
- Parameters:
- session
PureMeshing|Meshing Meshing session object.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- class ansys.fluent.core.meshing.meshing_workflow.WatertightMeshingWorkflow(session, initialize=True)#
Bases:
MeshingWorkflow,objectProvides watertight meshing specialization of the workflow wrapper.
Methods:
__init__(session[, initialize])Initialize WatertightMeshingWorkflow.
- __init__(session, initialize=True)#
Initialize WatertightMeshingWorkflow.
- Parameters:
- session
PureMeshing|Meshing The meshing session.
- initialize: bool
Flag to initialize the workflow, defaults to True. Set this to False if you are connecting to an existing meshing session which has been initialized and want to avoid re-initializing the workflow.
- session
- class ansys.fluent.core.meshing.meshing_workflow.WorkflowMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
EnumProvides an enum of supported Fluent meshing workflow modes.
Attributes:
FAULT_TOLERANT_MESHING_MODE(session[, ...])TOPOLOGY_BASED_MESHING_MODE(session[, ...])TWO_DIMENSIONAL_MESHING_MODE(session[, ...])WATERTIGHT_MESHING_MODE(session[, initialize])- FAULT_TOLERANT_MESHING_MODE(session, initialize=True) = <class 'ansys.fluent.core.meshing.meshing_workflow.FaultTolerantMeshingWorkflow'>#
- TOPOLOGY_BASED_MESHING_MODE(session, initialize=True) = <class 'ansys.fluent.core.meshing.meshing_workflow.TopologyBasedMeshingWorkflow'>#
- TWO_DIMENSIONAL_MESHING_MODE(session, initialize=True) = <class 'ansys.fluent.core.meshing.meshing_workflow.TwoDimensionalMeshingWorkflow'>#
- WATERTIGHT_MESHING_MODE(session, initialize=True) = <class 'ansys.fluent.core.meshing.meshing_workflow.WatertightMeshingWorkflow'>#
- ansys.fluent.core.meshing.meshing_workflow.get_current_workflow(workflow_root, current_workflow, workflow_factories, load_workflow_handle)#
Get the currently active workflow in the PyFluent-native interface.
- Parameters:
- workflow_root
PyMenu Root workflow datamodel object.
- current_workflow
WorkfloworNone Currently cached workflow instance.
- workflow_factories
dict Mapping of workflow type names to factory functions.
- load_workflow_handle
callable() Function to load a workflow from file.
- workflow_root
- Returns:
WorkflowThe currently active workflow instance.
- Raises:
RuntimeErrorIf no workflow is initialized.