CMR_Bmix Subroutine

public pure subroutine CMR_Bmix(n, bijk, Bmix, dBi, dBij)

CMR_Bmix

Evaluate the ternary cubic repulsive mixture parameter and derivatives.

Description

Contracts the ternary covolume tensor with component mole amounts and returns the mixture value, gradient, and Hessian.

Arguments

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

Component mole amounts [mol]

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

Ternary covolume tensor [L/mol]

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

[L]

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

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


Called by

proc~~cmr_bmix~~CalledByGraph proc~cmr_bmix CMR_Bmix proc~bmix~2 CMR%Bmix proc~bmix~2->proc~cmr_bmix

Variables

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

Intermediate accumulator.

real(kind=pr), public :: auxij(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 :: sqn

totn^2

real(kind=pr), public :: totn

Total number of moles