translation_interface Interface

interface
private subroutine translation_interface(self, n, T, C, CT, CT2, Cn, CTn, Cn2)

Arguments

Type IntentOptional Attributes Name
class(VolumeTranslatedModel), intent(in) :: self

Translated model.

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

Component mole amounts [mol].

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

Temperature [K].

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

Total volume translation [L].

real(kind=pr), intent(out), optional :: CT

Temperature derivative [L/K].

real(kind=pr), intent(out), optional :: CT2

Second temperature derivative [L/K^2].

real(kind=pr), intent(out), optional :: Cn(size(n))

Amount gradient [L/mol].

real(kind=pr), intent(out), optional :: CTn(size(n))

Temperature/amount derivatives [L/(K mol)].

real(kind=pr), intent(out), optional :: Cn2(size(n),size(n))

Amount Hessian [L/mol^2].

Description

translation_interface

Volume shift and independent amount/temperature derivatives.

Description

C is always requested. Every other output is optional and must be computed when present, including when requested individually. Derivatives hold independent mole amounts fixed, not normalized mole fractions.

Examples

call model%translation(n, T, C, CT=CT)