lambda1 Function

public function lambda1(model, X, s, z0, zi, u, u_new, P)

Uses

  • proc~~lambda1~~UsesGraph proc~lambda1 lambda1 module~yaeos__math_linalg yaeos__math_linalg proc~lambda1->module~yaeos__math_linalg module~yaeos__constants yaeos__constants module~yaeos__math_linalg->module~yaeos__constants iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env

lambda1

Calculation of the first restriction of a critical point.

is the smallest eigen-value for the matrix:

Where And should be the eigen-vector corresponding to the smallest eigen-value when

Arguments

Type IntentOptional Attributes Name
class(ArModel), intent(in) :: model
real(kind=pr), intent(in) :: X(4)

Vector of variables

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

Distance between the two fluids compositions to the main composition

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

Molar fractions of the first fluid

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

Molar fractions of the second fluid

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

Eigen-vector that defines the direction between the two compositions

real(kind=pr), intent(out), optional :: u_new(:)

Eigen-vector corresponding to the smallest eigenvalue of the matrix

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

Pressure of the system [bar]

Return Value real(kind=pr)


Calls

proc~~lambda1~~CallsGraph proc~lambda1 lambda1 proc~eigen eigen proc~lambda1->proc~eigen proc~get_a get_a proc~lambda1->proc~get_a proc~lnfug_vt ArModel%lnfug_vt proc~lambda1->proc~lnfug_vt none~dsyev dsyev proc~eigen->none~dsyev residual_helmholtz residual_helmholtz proc~lnfug_vt->residual_helmholtz

Called by

proc~~lambda1~~CalledByGraph proc~lambda1 lambda1 proc~critical_line critical_line proc~critical_line->proc~lambda1 proc~f_critical F_critical proc~critical_line->proc~f_critical proc~df_critical df_critical proc~critical_line->proc~df_critical proc~look_for_cep look_for_cep proc~critical_line->proc~look_for_cep proc~critical_point critical_point proc~critical_point->proc~lambda1 proc~critical_point->proc~f_critical proc~critical_point->proc~df_critical proc~f_cep F_cep proc~f_cep->proc~lambda1 proc~f_critical->proc~lambda1 proc~df_cep df_cep proc~df_cep->proc~f_cep proc~df_critical->proc~f_critical proc~get_critical_constants get_critical_constants proc~get_critical_constants->proc~critical_point proc~look_for_cep->proc~f_cep proc~look_for_cep->proc~df_cep proc~init_pcsaft init_pcsaft proc~init_pcsaft->proc~get_critical_constants

Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: M(size(z0),size(z0))
real(kind=pr), private :: Pin
real(kind=pr), private :: T
real(kind=pr), private :: V
real(kind=pr), private :: a
real(kind=pr), private :: dlnf_dn(size(z0),size(z0))
integer, private :: i
integer, private :: j
real(kind=pr), private :: lambda(size(z0))
real(kind=pr), private :: n(size(z0))
integer, private :: nc
real(kind=pr), private :: vectors(size(z0),size(z0))
real(kind=pr), private :: z(size(z0))