Procedure-pointer interfaces used by the deprecated global-state EOS code.
ar_fun points to a residual Helmholtz routine and vinit points to a
liquid-volume initializer. New applications should use concrete ArModel
types instead of assigning these global pointers.
ar_fun => my_residual_helmholtz
vinit => my_volume_initializer
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| procedure(Ares), | public, | pointer | :: | ar_fun |
Legacy residual Helmholtz callback pointer. |
||
| procedure(initial_volume), | public, | pointer | :: | vinit |
Legacy initial-volume callback pointer. |
Callback interface for legacy residual Helmholtz models.
Calculates the residual Helmholtz energy and derivative outputs consumed by the legacy property routines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | z(:) |
Component mole amounts. |
||
| 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 |
Volume derivative of residual Helmholtz energy. |
||
| real(kind=pr), | intent(out) | :: | ArTV |
Mixed temperature/volume 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 |
Mole-number gradient of residual Helmholtz energy. |
|
| real(kind=pr), | intent(out), | dimension(size(z)) | :: | ArVn |
Mixed volume/mole-number derivative of residual Helmholtz energy. |
|
| real(kind=pr), | intent(out), | dimension(size(z)) | :: | ArTn |
Mixed temperature/mole-number derivative of residual Helmholtz energy. |
|
| real(kind=pr), | intent(out) | :: | Arn2(size(z),size(z)) |
Composition Hessian. |
Return an initial volume estimate for a legacy pressure solve.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr) | :: | z(:) |
Component mole amounts. |
|||
| real(kind=pr) | :: | p |
Pressure [bar]. |
|||
| real(kind=pr) | :: | t |
Temperature [K]. |
Initial total volume [L].