Evaluate excess Gibbs energy and requested derivatives by AD.
Seeds hyperdual composition and temperature variables, evaluates the
concrete model’s Ge function, and returns requested first and second
derivatives through the standard GeModel interface.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(GeModelAdiff), | intent(in) | :: | self |
Model providing the hyperdual |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol]. |
||
| real(kind=pr), | intent(in) | :: | t |
Temperature [K]. |
||
| real(kind=pr), | intent(out), | optional | :: | Ge |
Excess Gibbs energy. |
|
| real(kind=pr), | intent(out), | optional | :: | GeT |
Temperature derivative of excess Gibbs energy. |
|
| real(kind=pr), | intent(out), | optional | :: | GeT2 |
Second temperature derivative of excess Gibbs energy. |
|
| real(kind=pr), | intent(out), | optional, | dimension(size(n)) | :: | Gen |
Mole-number gradient of excess Gibbs energy. |
| real(kind=pr), | intent(out), | optional, | dimension(size(n)) | :: | GeTn |
Mixed temperature/mole-number derivative of excess Gibbs energy. |
| real(kind=pr), | intent(out), | optional | :: | Gen2(size(n),size(n)) |
Hessian with respect to component mole amounts. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | any_deriv | ||||
| real(kind=pr), | public | :: | dGe(size(n)+1,size(n)+1) | ||||
| type(hyperdual), | public | :: | d_Ge | ||||
| type(hyperdual), | public | :: | d_n(size(n)) |
Hyperdual component mole amounts. |
|||
| type(hyperdual), | public | :: | d_t |
Hyperdual temperature input. |
|||
| integer, | public | :: | nc |
Number of components. |