yaeos__equilibria_flash Module



Functions

public function flash(model, z, t, v_spec, p_spec, k0, iters)

Flash algorithm using sucessive substitutions.

Read more…

Arguments

Type IntentOptional Attributes Name
class(ArModel), intent(in) :: model

Thermodynamic model

real(kind=pr), intent(in) :: z(:)

Global composition (molar fractions)

real(kind=pr), intent(in) :: t

Temperature [K]

real(kind=pr), intent(in), optional :: v_spec

Specified Volume [L/mol]

real(kind=pr), intent(in), optional :: p_spec

Specified Pressure [bar]

real(kind=pr), intent(in), optional :: k0(:)

Initial K factors (y/x)

integer, intent(out), optional :: iters

Number of iterations

Return Value type(EquilibriumState)