translated_volume Subroutine

private subroutine translated_volume(eos, n, P, T, V, root_type)

translated_volume

Preserve the base model’s volume solver and translate its result.

Description

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.

Examples

call model%volume(n, P, T, V, root_type="liquid")

Type Bound

VolumeTranslatedModel

Arguments

Type IntentOptional 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”]


Calls

proc~~translated_volume~~CallsGraph proc~translated_volume VolumeTranslatedModel%translated_volume proc~volume~4 ArModel%volume proc~translated_volume->proc~volume~4 translation translation proc~translated_volume->translation get_v0 get_v0 proc~volume~4->get_v0 interface~newton newton proc~volume~4->interface~newton proc~newton_1d newton_1d interface~newton->proc~newton_1d

Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: C

Total volume translation at the specified amounts and temperature [L].