ArVnder Subroutine

public subroutine ArVnder(nc, nder, ntemp, z, V, T, ar, arv, artv, arv2, Arn, ArVn, ArTn, Arn2)

ArVnder

Dispatch the configured legacy residual Helmholtz implementation.

Description

Selects the active residual Helmholtz callback through ar_fun and returns the requested residual energy derivatives. NDER and NTEMP control the derivative sets supported by the selected implementation.

Arguments

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

Number of active components.

integer, intent(in) :: nder

Get compositional derivatives

integer, intent(in) :: ntemp

Get temperature derivatives

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

Component mole amounts/composition vector.

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), dimension(size(z)) :: Arn

Composition gradient of residual Helmholtz energy.

real(kind=pr), intent(out), dimension(size(z)) :: ArVn

Mixed volume-composition derivatives.

real(kind=pr), intent(out), dimension(size(z)) :: ArTn

Mixed temperature-composition derivatives.

real(kind=pr), intent(out) :: Arn2(size(z),size(z))

Composition Hessian of residual Helmholtz energy.


Called by

proc~~arvnder~~CalledByGraph proc~arvnder ArVnder proc~purefug_calc PUREFUG_CALC proc~purefug_calc->proc~arvnder proc~termo TERMO proc~termo->proc~arvnder proc~vcalc VCALC proc~termo->proc~vcalc proc~vcalc->proc~arvnder proc~ztvtermo zTVTERMO proc~ztvtermo->proc~arvnder