get_values_from_X Subroutine

public subroutine get_values_from_X(z0, zi, Xvars, x, y, w, P, alpha, beta)

get_values_from_X

Description

Decode logarithmic K-factors and state variables into phase compositions.

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: z0(:)

First limiting feed composition.

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

Second limiting feed composition.

real(kind=pr), intent(in) :: Xvars(size(z0)*2+3)

Packed log-K, log-pressure, alpha, and beta vector.

real(kind=pr), intent(out) :: x(size(z0))

Reconstructed phase-x composition.

real(kind=pr), intent(out) :: y(size(z0))

Reconstructed phase-y composition.

real(kind=pr), intent(out) :: w(size(z0))

Reconstructed reference-phase composition.

real(kind=pr), intent(out) :: P

Pressure [bar].

real(kind=pr), intent(out) :: alpha

Feed interpolation parameter.

real(kind=pr), intent(out) :: beta

Phase-split parameter.


Calls

proc~~get_values_from_x~4~~CallsGraph proc~get_values_from_x~4 get_values_from_X proc~get_z get_z proc~get_values_from_x~4->proc~get_z

Called by

proc~~get_values_from_x~4~~CalledByGraph proc~get_values_from_x~4 get_values_from_X proc~px_envelope_3ph px_envelope_3ph proc~px_envelope_3ph->proc~get_values_from_x~4

Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: Kx((Size(Xvars)-3)/2)
real(kind=pr), private :: Ky((Size(Xvars)-3)/2)
integer, private :: nc

Number of components.

real(kind=pr), private :: z(size(z0))

Feed or overall composition.