HelmRKPR Subroutine

public subroutine HelmRKPR(nco, NDE, NTD, rn, V, T, Ar, ArV, ArTV, ArV2, Arn, ArVn, ArTn, Arn2)

HelmRKPR

Description

Calculate the reduced residual Helmholtz Energy and it’s derivatives with the RKPR EOS

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nco

Number of components in the mixture.

integer, intent(in) :: NDE

Compositional derivative order; 2 also computes Arn2.

integer, intent(in) :: NTD

Flag selecting temperature-dependent derivative calculations.

real(kind=pr), intent(in) :: rn(nco)

Component mole amounts used in mixture rules.

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

Total volume [L].

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

Temperature [K].

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

Residual Helmholtz energy.

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

First volume derivative of residual Helmholtz energy.

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

Mixed volume-temperature derivative of residual Helmholtz energy.

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

Second volume derivative of residual Helmholtz energy.

real(kind=pr), intent(out) :: Arn(nco)

Mole-number gradient of residual Helmholtz energy.

real(kind=pr), intent(out) :: ArVn(nco)

Mixed volume/mole-number derivative of residual Helmholtz energy.

real(kind=pr), intent(out) :: ArTn(nco)

Mixed temperature/mole-number derivative of residual Helmholtz energy.

real(kind=pr), intent(out) :: Arn2(nco,nco)

Mole-number Hessian of residual Helmholtz energy.


Calls

proc~~helmrkpr~~CallsGraph proc~helmrkpr HelmRKPR proc~bnder Bnder proc~helmrkpr->proc~bnder proc~dandtnder DandTnder proc~helmrkpr->proc~dandtnder proc~deltander DELTAnder proc~helmrkpr->proc~deltander proc~aijtder aijTder proc~dandtnder->proc~aijtder proc~atder aTder proc~aijtder->proc~atder

Called by

proc~~helmrkpr~~CalledByGraph proc~helmrkpr HelmRKPR proc~ar_rkpr ar_rkpr proc~ar_rkpr->proc~helmrkpr

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: AUX
real(kind=pr), public :: ArT
real(kind=pr), public :: ArTT
real(kind=pr), public :: Bmix

Mixture covolume.

real(kind=pr), public :: D

Attractive mixture parameter.

real(kind=pr), public :: D1
real(kind=pr), public :: D2
real(kind=pr), public :: FFB
real(kind=pr), public :: FFBB
real(kind=pr), public :: FFBV
real(kind=pr), public :: auxD2
real(kind=pr), public :: dBi(nco)

Mole-number gradient of the mixture covolume.

real(kind=pr), public :: dBij(nco,nco)

Mole-number Hessian of the mixture covolume.

real(kind=pr), public :: dD1i(nco)

Mole-number gradient of the cubic denominator parameter.

real(kind=pr), public :: dD1ij(nco,nco)

Mole-number Hessian of the cubic denominator parameter.

real(kind=pr), public :: dDdT

Temperature derivative of the attractive mixture parameter.

real(kind=pr), public :: dDdT2

Second temperature derivative of the attractive mixture parameter.

real(kind=pr), public :: dDi(nco)

Mole-number gradient of the attractive mixture parameter.

real(kind=pr), public :: dDiT(nco)
real(kind=pr), public :: dDij(nco,nco)

Mole-number Hessian of the attractive mixture parameter.

real(kind=pr), public :: f
real(kind=pr), public :: fB
real(kind=pr), public :: fBD1
real(kind=pr), public :: fD1
real(kind=pr), public :: fD1D1
real(kind=pr), public :: fVD1
real(kind=pr), public :: fv
real(kind=pr), public :: fv2
real(kind=pr), public :: g
real(kind=pr), public :: gv
real(kind=pr), public :: gv2
integer, public :: i

Loop index i.

integer, public :: j

Loop index j.

real(kind=pr), public :: totn

Total number of moles.