yaeos__models_ar_cubic_mixing_sddlc Module

Segmented density-dependent local-composition mixing rule

Description

Implementation of the s-DDLC mixing rule, in which the attractive parameter depends on density, temperature, and composition through local-composition segment fractions. This model extends the temperature-dependent quadratic mixing rule with segment-size data and volume-dependent local compositions.

Examples

rule = sDDLC(k=k, k0=k0, tref=tref, l=l, q=q)
call model%set_mixrule(rule)

Uses

  • module~~yaeos__models_ar_cubic_mixing_sddlc~~UsesGraph module~yaeos__models_ar_cubic_mixing_sddlc yaeos__models_ar_cubic_mixing_sddlc module~yaeos__constants yaeos__constants module~yaeos__models_ar_cubic_mixing_sddlc->module~yaeos__constants module~yaeos__models_ar_cubic_quadratic_mixing yaeos__models_ar_cubic_quadratic_mixing module~yaeos__models_ar_cubic_mixing_sddlc->module~yaeos__models_ar_cubic_quadratic_mixing iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__constants module~yaeos__models_ar_cubic_mixing_base yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_genericcubic yaeos__models_ar_genericcubic module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__models_ar_genericcubic module~yaeos__substance yaeos__substance module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__substance 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_mixing_sddlc~~UsedByGraph module~yaeos__models_ar_cubic_mixing_sddlc yaeos__models_ar_cubic_mixing_sddlc module~yaeos__models yaeos__models module~yaeos__models->module~yaeos__models_ar_cubic_mixing_sddlc 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

Interfaces

public interface sDDLC

  • public function init_sddlc(k, k0, tref, l, q) result(mixrule)

    init_sddlc

    Description

    Create a segmented density-dependent local-composition mixing rule.

    Arguments

    Type IntentOptional Attributes Name
    real(kind=pr), intent(in) :: k(:,:)

    interaction matrix

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

    matrix

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

    Reference-temperature matrix [K]

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

    matrix

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

    Segment sizes

    Return Value type(sDDLC)


Derived Types

type, public, extends(QMRTD) ::  sDDLC

Segmented density-dependent local-composition mixing rule.

Read more…

Components

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

Pair-specific reference temperatures [K].

logical, public :: dn2 = .false.

Calculate second-order mole-number derivatives

logical, public :: is_D_ddlc = .false.

Mixing rule D parameter depends on volume (density)

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

Attractive Binary Interaction parameter matrix

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

Temperature-dependent interaction amplitudes.

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

Repulsive Binary Interaction parameter matrix

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

Pure-component segment sizes

Constructor

public function init_sddlc (k, k0, tref, l, q)

Create a segmented density-dependent local-composition mixing rule.

Read more…

Type-Bound Procedures

procedure, public :: Bmix

Repulsive parameter mixing rule

procedure, public :: D1mix => RKPR_D1mix
procedure, public :: Dmix => ddlc_Dmix
procedure, public :: aij => kij_exp_tdep

Functions

public function init_sddlc(k, k0, tref, l, q) result(mixrule)

Create a segmented density-dependent local-composition mixing rule.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: k(:,:)

interaction matrix

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

matrix

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

Reference-temperature matrix [K]

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

matrix

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

Segment sizes

Return Value type(sDDLC)


Subroutines

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

s-DDLC D mixing rule including V, n, and T derivatives.

Read more…

Arguments

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

Mixing rule object.

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

Component mole amounts [mol]

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

Total volume [L]

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

Temperature [K]

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

Pure-component attractive parameters

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

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

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

Mixture attractive parameter [bar L^2]

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