get_v0 Function

public function get_v0(self, n, P, T) result(v0)

get_v0

Return the close-packed segment volume used to initialize a volume solve.

Description

Computes the volume at which the segment packing fraction would reach unity, . This provides a composition-dependent lower-volume estimate for the liquid root; P and T are accepted to satisfy the ArModel initializer interface but are not used in this expression.

Examples

The initializer is called internally by the inherited volume solver.

Type Bound

PCSAFT

Arguments

Type IntentOptional Attributes Name
class(PCSAFT), intent(in) :: self

PC-SAFT model and segment data.

real(kind=pr), intent(in) :: n(:)

Component mole amounts [mol].

real(kind=pr), intent(in) :: P

Pressure [bar]; unused in the close-packed initializer.

real(kind=pr), intent(in) :: T

Temperature [K]; unused in the close-packed initializer.

Return Value real(kind=pr)


Variables

Type Visibility Attributes Name Initial
integer, public :: i

Loop/index variable.

real(kind=pr), public :: sum_seg_vol