CMR_Dmix Subroutine

public subroutine CMR_Dmix(n, V, T, a, dadt, dadt2, D, dDdV, dDdT, dDdV2, dDdT2, dDi, dDdTV, dDidV, dDidT, dDij)

CMR_Dmix

Evaluate the ternary cubic attractive mixture parameter and derivatives.

Description

, with its temperature and composition derivatives. Volume derivatives are returned as zero.

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: n(:)

Moles vector [mol]

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

Volume [L] (unused)

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

Temperature [K]

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

tensor (see CMR_aijk)

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

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

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

Mixture attractive parameter

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

(zero)

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

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

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

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

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

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

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

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


Called by

proc~~cmr_dmix~~CalledByGraph proc~cmr_dmix CMR_Dmix proc~dmix~2 CMR%Dmix proc~dmix~2->proc~cmr_dmix

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: aijk(size(n),size(n),size(n))
real(kind=pr), public :: aux(size(n))

Intermediate accumulator.

real(kind=pr), public :: auxT(size(n))
real(kind=pr), public :: auxT2(size(n))

Second-order intermediate quantity used by this procedure.

real(kind=pr), public :: auxT2ij(size(n),size(n))
real(kind=pr), public :: auxTij(size(n),size(n))
real(kind=pr), public :: auxij(size(n),size(n))
real(kind=pr), public :: cum
real(kind=pr), public :: daijkdT(size(n),size(n),size(n))
real(kind=pr), public :: daijkdT2(size(n),size(n),size(n))
integer, public :: i

Loop index i.

integer, public :: j

Loop index j.

integer, public :: k

Loop index k.

integer, public :: nc

Number of components.

real(kind=pr), public :: totn

Total number of moles.