Preserve the base model’s volume solver and translate its result.
At fixed n,T, pressure is the base pressure at V+C(n,T).
Root labels are forwarded unchanged. Gibbs energies of corresponding
roots differ by the root-independent term -P*C, so stable-root
selection is preserved when the corresponding roots are admissible.
call model%volume(n, P, T, V, root_type="liquid")
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(VolumeTranslatedModel), | intent(in) | :: | eos |
Translated model. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol]. |
||
| real(kind=pr), | intent(in) | :: | P |
Pressure [bar]. |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K]. |
||
| real(kind=pr), | intent(out) | :: | V |
Physical total volume [L]. |
||
| character(len=*), | intent(in) | :: | root_type |
Desired root-type to solve. Options are: `[“liquid”, “vapor”, “stable”] |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | C |
Total volume translation at the specified amounts and temperature [L]. |