yaeos__models_ar_cubic_cubic_mixing Module

Cubic Mixing Rules for Cubic EoS.


Uses

  • module~~yaeos__models_ar_cubic_cubic_mixing~~UsesGraph module~yaeos__models_ar_cubic_cubic_mixing yaeos__models_ar_cubic_cubic_mixing module~yaeos__constants yaeos__constants module~yaeos__models_ar_cubic_cubic_mixing->module~yaeos__constants module~yaeos__models_ar_cubic_mixing_base yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_cubic_cubic_mixing->module~yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_genericcubic yaeos__models_ar_genericcubic module~yaeos__models_ar_cubic_cubic_mixing->module~yaeos__models_ar_genericcubic module~yaeos__substance yaeos__substance module~yaeos__models_ar_cubic_cubic_mixing->module~yaeos__substance iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env module~yaeos__models_ar_cubic_mixing_base->module~yaeos__constants module~yaeos__models_ar_genericcubic->module~yaeos__constants module~yaeos__models_ar_genericcubic->module~yaeos__substance module~yaeos__models_ar yaeos__models_ar module~yaeos__models_ar_genericcubic->module~yaeos__models_ar module~yaeos__substance->module~yaeos__constants module~yaeos__models_ar->module~yaeos__constants module~yaeos__models_base yaeos__models_base module~yaeos__models_ar->module~yaeos__models_base module~yaeos__models_base->module~yaeos__substance

Used by

  • module~~yaeos__models_ar_cubic_cubic_mixing~~UsedByGraph module~yaeos__models_ar_cubic_cubic_mixing yaeos__models_ar_cubic_cubic_mixing module~yaeos__models yaeos__models module~yaeos__models->module~yaeos__models_ar_cubic_cubic_mixing module~yaeos yaeos module~yaeos->module~yaeos__models module~yaeos__extra_fluids yaeos__extra_fluids module~yaeos__extra_fluids->module~yaeos__models proc~co2_h2o_isop co2_h2o_isop proc~co2_h2o_isop->module~yaeos__models

Abstract Interfaces

abstract interface

  • private subroutine get_aijk(self, T, ai, daidt, daidt2, a, dadt, dadt2)

    Combining rule for the attractive parameter.

    From previously calculated attractive parameters calculate the matrix and it’s corresponding derivatives.

    Arguments

    Type IntentOptional Attributes Name
    class(CMR), intent(in) :: self
    real(kind=pr), intent(in) :: T
    real(kind=pr), intent(in) :: ai(:)
    real(kind=pr), intent(in) :: daidt(:)
    real(kind=pr), intent(in) :: daidt2(:)
    real(kind=pr), intent(out) :: a(:,:)
    real(kind=pr), intent(out) :: dadt(:,:)
    real(kind=pr), intent(out) :: dadt2(:,:)

Derived Types

type, public, extends(CubicMixRule) ::  CMR

Cubic Mixing Rule (CMR) derived type. Classic Van der Waals mixing rules.

Read more…

Components

Type Visibility Attributes Name Initial
logical, public :: dn2 = .false.

Calculate second order derivatives

logical, public :: is_D_ddlc = .false.

Mixing rule D parameter dependant on density

real(kind=pr), public, allocatable :: k(:,:,:)

Attractive Binary Interatction parameter matrix

real(kind=pr), public, allocatable :: l(:,:,:)

Repulsive Binary Interatction parameter matrix

Type-Bound Procedures

procedure, public :: Bmix

Repulsive parameter mixing rule

procedure, public :: D1mix => RKPR_D1mix
procedure, public :: Dmix

Attractive parameter mixing rule

procedure, public :: aijk => kijk_constant

Default attractive parameter combining rule

type, public, extends(CMR) ::  CMRTD

Components

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

Calculate second order derivatives

logical, public :: is_D_ddlc = .false.

Mixing rule D parameter dependant on density

real(kind=pr), public, allocatable :: k(:,:,:)

Attractive Binary Interatction parameter matrix

real(kind=pr), public, allocatable :: k0(:,:,:)
real(kind=pr), public, allocatable :: l(:,:,:)

Repulsive Binary Interatction parameter matrix

Type-Bound Procedures

procedure, public :: Bmix

Repulsive parameter mixing rule

procedure, public :: D1mix => RKPR_D1mix
procedure, public :: Dmix

Attractive parameter mixing rule

procedure, public :: aijk => kijk_exp_tdep

Subroutines

public subroutine kijk_exp_tdep(self, T, ai, daidt, daidt2, a, dadt, dadt2)

Combining rule that uses as a function of temperature.

Read more…

Arguments

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

Temperature [K]

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

Pure components attractive parameters (\a_i)

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

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

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

Matrix

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

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

private subroutine Bmix(self, n, bi, B, dBi, dBij)

Mixture repulsive parameter.

Read more…

Arguments

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

Mixing rule object.

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

Moles vector.

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

Pure components repulsive parameters.

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

Mixture repulsive parameter.

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

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

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

Attractive parameter mixing rule with quadratic mix.

Read more…

Arguments

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

Mixing rule object.

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(:,:)

private subroutine RKPR_D1mix(self, n, d1i, D1, dD1i, dD1ij)

RKPR parameter mixing rule.

Read more…

Arguments

Type IntentOptional Attributes Name
class(CMR), 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(:,:)

private subroutine kijk_constant(self, T, ai, daidt, daidt2, a, dadt, dadt2)

Combining rule that uses constant values.

Read more…

Arguments

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

Temperature [K]

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

Pure components attractive parameters (\a_i)

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

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

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

Matrix

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

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