Consistency checks of Helmholtz free energy models (GeModel).
This module contains tools to validate the analityc derivatives of implmented excess Gibbs free energy models (GeModel). Also, allows to evaluate the consistency tests described in Thermodynamic Models: Fundamentals & Computational Aspects 2 ed. by Michelsen and Mollerup Chapter 5 section 4.
Available tools:
numeric_ge_derivatives: From an instantiated GeModel evaluate all the excess Gibbs free energy derivatives from the central finite difference method.
ge_consistency: From an instantiated GeModel evaluate all the Michelsen and Mollerup consistency tests
models consistency tests
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeModel), | intent(in) | :: | model |
model |
||
real(kind=pr), | intent(in) | :: | n(:) |
Moles number vector |
||
real(kind=pr), | intent(in) | :: | t |
Temperature [K] |
||
real(kind=pr), | intent(out), | optional | :: | eq58 |
MM Eq. 58 |
|
real(kind=pr), | intent(out), | optional | :: | eq59(size(n)) |
MM Eq. 59 |
|
real(kind=pr), | intent(out), | optional | :: | eq60(size(n),size(n)) |
MM Eq. 60 |
|
real(kind=pr), | intent(out), | optional | :: | eq61(size(n)) |
MM Eq. 61 |
Numeric model derivatives
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(GeModel), | intent(in) | :: | model |
model |
||
real(kind=pr), | intent(in) | :: | n(:) |
Moles number vector |
||
real(kind=pr), | intent(in) | :: | t |
Temperature [K] |
||
real(kind=pr), | intent(in) | :: | d_n |
Moles finite difference step |
||
real(kind=pr), | intent(in) | :: | d_t |
Temperature finite difference step |
||
real(kind=pr), | intent(out) | :: | Ge |
Residual Helmoltz energy |
||
real(kind=pr), | intent(out), | optional | :: | GeT |
|
|
real(kind=pr), | intent(out), | optional | :: | Gen(size(n)) |
|
|
real(kind=pr), | intent(out), | optional | :: | GeT2 |
|
|
real(kind=pr), | intent(out), | optional | :: | GeTn(size(n)) |
|
|
real(kind=pr), | intent(out), | optional | :: | Gen2(size(n),size(n)) |
|