Result of a multiphase equilibrium calculation.
Holds the feed, conditions, main-phase compositions and kinds, plus a reference phase used in the generalized multiphase formulation.
integer :: phase
result = pt_mp_flash(model, z, P, T)
do phase = 1, result%np
print *, result%kinds_x(phase), result%x_l(phase, :)
end do
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | P |
Pressure [bar] |
|||
| real(kind=pr), | public | :: | T |
Temperature [K] |
|||
| real(kind=pr), | public, | allocatable | :: | betas(:) |
Phase fractions: |
||
| character(len=14), | public | :: | kind_w |
Kind of the reference phase |
|||
| character(len=14), | public, | allocatable | :: | kinds_x(:) |
Kinds of the main phases |
||
| integer, | public | :: | np |
Number of main phases (excluding the reference phase) |
|||
| real(kind=pr), | public, | allocatable | :: | w(:) |
Mole fractions of the reference phase |
||
| real(kind=pr), | public, | allocatable | :: | x_l(:,:) |
Mole fractions of the main phases, shape |
||
| real(kind=pr), | public, | allocatable | :: | z(:) |
Global composition |