Module containing the Phase class and sub-classes.

Phase#

In fluid simulations, a phase defines the physical state of a given species.

class ansys.dpf.post.phase.Phase(name: str, id: int)#

Physical state of a given species in a fluid simulation.

property name: str#

Return the name of the phase.

property id: int#

Return the ID of the phase.

class ansys.dpf.post.phase.PhasesDict(simulation: Simulation)#

Dictionary of phases available in the fluid simulation.

Accepts either phase name or phase ID as key.