lnfug_vt Subroutine

public subroutine lnfug_vt(eos, n, V, T, P, lnf, dlnfdV, dlnfdT, dlnfdn, dPdV, dPdT, dPdn)

Calculate fugacity coefficent given volume and temperature.

Type Bound

ArModel

Arguments

Type IntentOptional Attributes Name
class(ArModel) :: eos

Model

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

Mixture mole numbers

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

Volume [L]

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

Temperature [K]

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

Pressure [bar]

real(kind=pr), intent(out), optional :: lnf(size(n))

vector

real(kind=pr), intent(out), optional :: dlnfdV(size(n))

Volume derivative

real(kind=pr), intent(out), optional :: dlnfdT(size(n))

Temp derivative

real(kind=pr), intent(out), optional :: dlnfdn(size(n),size(n))

compositional derivative

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

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

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


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: Ar
real(kind=pr), public :: ArTV
real(kind=pr), public, dimension(size(n)) :: ArTn
real(kind=pr), public :: ArV
real(kind=pr), public :: ArV2
real(kind=pr), public, dimension(size(n)) :: ArVn
real(kind=pr), public, dimension(size(n)) :: Arn
real(kind=pr), public :: Arn2(size(n),size(n))
real(kind=pr), public :: P_in
real(kind=pr), public :: RT
real(kind=pr), public :: Z
real(kind=pr), public :: dPdT_in
real(kind=pr), public :: dPdV_in
real(kind=pr), public :: dPdn_in(size(n))
real(kind=pr), public :: dlnPhidP(size(n))

Presssure derivative

real(kind=pr), public :: dlnPhidT(size(n))

Temp derivative

real(kind=pr), public :: dlnPhidn(size(n),size(n))

compositional derivative

real(kind=pr), public :: dxk_dni(size(n),size(n))
integer, public :: i
integer, public :: j
real(kind=pr), public :: lnPhi(size(n))

vector

integer, public :: nc
real(kind=pr), public :: totn