DandTnder Subroutine

public subroutine DandTnder(ntd, nc, T, rn, D, dDi, dDiT, dDij, dDdT, dDdT2)

DandTnder

Evaluate the legacy mixture attractive parameter and derivatives.

Description

Combines the aij matrix with component mole amounts and, when NTD enables temperature dependence, evaluates temperature gradients.

Arguments

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

Flag selecting temperature-dependent derivative calculations.

integer, intent(in) :: nc

Number of active components.

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

Temperature [K].

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

Component mole amounts used in mixture rules.

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

Mixture attractive parameter.

real(kind=pr), intent(out) :: dDi(nc)

.

real(kind=pr), intent(out) :: dDiT(nc)

.

real(kind=pr), intent(out) :: dDij(nc,nc)

.

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

.

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

.


Calls

proc~~dandtnder~~CallsGraph proc~dandtnder DandTnder proc~aijtder aijTder proc~dandtnder->proc~aijtder proc~atder aTder proc~aijtder->proc~atder

Called by

proc~~dandtnder~~CalledByGraph proc~dandtnder DandTnder proc~helmrkpr HelmRKPR proc~helmrkpr->proc~dandtnder proc~helmsrkpr HelmSRKPR proc~helmsrkpr->proc~dandtnder proc~ar_rkpr ar_rkpr proc~ar_rkpr->proc~helmrkpr proc~ar_srkpr ar_srkpr proc~ar_srkpr->proc~helmsrkpr

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: aij(nc,nc)

Pair attractive-parameter matrix.

real(kind=pr), public :: aux

Intermediate accumulator.

real(kind=pr), public :: aux2

Second intermediate accumulator.

real(kind=pr), public :: daijdT(nc,nc)

Temperature derivative of the pair attractive parameters.

real(kind=pr), public :: daijdT2(nc,nc)

Second temperature derivative of the pair attractive parameters.

integer, public :: i

Loop index i.

integer, public :: j

Loop index j.