flory.common.phases
Module providing the Phases class, which captures information about phases.
Classes
Contains information about compositions and relative sizes of many phases. |
- class Phases(volumes, fractions)[source]
Bases:
objectContains information about compositions and relative sizes of many phases.
- Parameters:
volumes¶ (
ndarray) – 1D array with shape \(N_\mathrm{P}\), containing the volume \(J_p\) of each phase.fractions¶ (
ndarray) – 2D array with shape \(N_\mathrm{P} \times N_\mathrm{C}\), containing the volume fractions of the components in each phase \(\phi_{p,i}\). The first dimension must be the same asvolumes.
Public Data Attributes:
Number of phases \(N_\mathrm{P}\).
Number of components \(N_\mathrm{C}\).
Mean fraction averaged over phases \(\bar{\phi}_i\)
Public Methods:
sort()Sort the phases according to the index of most concentrated components.
get_clusters([dist])Find clusters of compositions.
- sort()[source]
Sort the phases according to the index of most concentrated components.
- Returns:
The sorted phases.
- Return type: