critical_line Function

public function critical_line(model, a0, z0, zi, ns0, S0, dS0, max_points, maxP, first_point)

critical_line

Description

Calculates the critical line between two mixtures using the continuation method. The two mixtures compositions are restricted to the relation between them, by a parameter , which represents the molar fraction of the second fluid with respect to the whole mixture.

Arguments

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

Equation of state model

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

Initial value

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

Molar fractions of the first fluid

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

Molar fractions of the second fluid

integer, intent(in) :: ns0

Position of the specification variable

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

Specified value

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

Initial step size

integer, intent(in), optional :: max_points

Maximum number of points

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

Maximum pressure

type(EquilibriumState), intent(in), optional :: first_point

Return Value type(CriticalLine)


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: P
real(kind=pr), public :: S
real(kind=pr), public :: T
real(kind=pr), public :: V
real(kind=pr), public :: X0(4)
real(kind=pr), public, allocatable :: XS(:,:)

Full set of solved points

real(kind=pr), public, allocatable :: XS_i(:)

Full set of solved points

integer, public :: i
real(kind=pr), public :: max_P
integer, public :: npoints
integer, public :: ns
real(kind=pr), public :: u(size(z0))

eigen-vector

real(kind=pr), public :: u_new(size(z0))

eigen-vector

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