HV Derived Type

type, public, extends(CubicMixRule) :: HV


Inherits

type~~hv~~InheritsGraph type~hv HV type~cubicmixrule CubicMixRule type~hv->type~cubicmixrule type~gemodel GeModel type~hv->type~gemodel ge type~basemodel BaseModel type~gemodel->type~basemodel type~substances Substances type~basemodel->type~substances components

Components

Type Visibility Attributes Name Initial
real(kind=pr), public, allocatable :: bi(:)
real(kind=pr), public, allocatable :: del1(:)
logical, public :: dn2 = .false.

Calculate second order derivatives

class(GeModel), public, allocatable :: ge
logical, public :: is_D_ddlc = .false.

Mixing rule D parameter dependant on density


Type-Bound Procedures

procedure, public :: Bmix => BmixHV

  • private subroutine BmixHV(self, n, bi, B, dBi, dBij)

    Quadratinc mixing rule for the repulsive parameter.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(HV), intent(in) :: self
    real(kind=pr), intent(in) :: n(:)
    real(kind=pr), intent(in) :: bi(:)
    real(kind=pr), intent(out) :: B
    real(kind=pr), intent(out) :: dBi(:)
    real(kind=pr), intent(out) :: dBij(:,:)

procedure, public :: D1Mix => D1MixHV

  • private subroutine D1MixHV(self, n, d1i, D1, dD1i, dD1ij)

    Arguments

    Type IntentOptional Attributes Name
    class(HV), intent(in) :: self
    real(kind=pr), intent(in) :: n(:)
    real(kind=pr), intent(in) :: d1i(:)
    real(kind=pr), intent(out) :: D1
    real(kind=pr), intent(out) :: dD1i(:)
    real(kind=pr), intent(out) :: dD1ij(:,:)

procedure, public :: Dmix => DmixHV

  • private subroutine DmixHV(self, n, V, T, ai, daidt, daidt2, D, dDdV, dDdT, dDdV2, dDdT2, dDi, dDdTV, dDidV, dDidT, dDij)

    Arguments

    Type IntentOptional Attributes Name
    class(HV), intent(in) :: self
    real(kind=pr), intent(in) :: n(:)

    Moles vector [mol]

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

    Volume [L] (unused)

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

    Temperature [K]

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

    Pure components attractive parameters

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

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

    real(kind=pr), intent(out) :: D

    Mixture attractive parameter

    real(kind=pr), intent(out) :: dDdV

    real(kind=pr), intent(out) :: dDdT

    real(kind=pr), intent(out) :: dDdV2

    real(kind=pr), intent(out) :: dDdT2

    real(kind=pr), intent(out) :: dDi(:)

    real(kind=pr), intent(out) :: dDdTV

    real(kind=pr), intent(out) :: dDidV(:)

    real(kind=pr), intent(out) :: dDidT(:)

    real(kind=pr), intent(out) :: dDij(:,:)