bmix_qmr Subroutine

public pure subroutine bmix_qmr(n, bi, lij, b, dbi, dbij)

bmix_qmr

Calculate the QMR covolume and its first and second mole derivatives.

Description

Forms pair covolumes and evaluates . The derivatives are returned with respect to the component mole amounts.

Examples

call bmix_qmr(n, bi, lij, B, dBdn, d2Bdn2)

Arguments

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

Component mole amounts.

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

Pure-component covolumes.

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

Repulsive binary interaction matrix.

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

Mixture covolume.

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

Mole-number gradient of the mixture covolume.

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

Mole-number Hessian of the mixture covolume.


Called by

proc~~bmix_qmr~~CalledByGraph proc~bmix_qmr bmix_qmr proc~bmixmhv MHV%BmixMHV proc~bmixmhv->proc~bmix_qmr proc~bmix~2 QMR%Bmix proc~bmix~2->proc~bmix_qmr proc~dmixmhv MHV%DmixMHV proc~dmixmhv->proc~bmixmhv

Variables

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

Intermediate accumulator.

real(kind=pr), public :: bij(size(n),size(n))
integer, public :: i

Loop index i.

integer, public :: j

Loop index j.

integer, public :: nc

Number of components.

real(kind=pr), public :: totn

Total number of moles.