Skip to the content.

The MieKinGas class, found in pykingas/MieKinGas.py, inherrits from the MieType class, and is the interface to the RET-Mie Model. This class implements utility methods to access mixing parameters etc.

Table of contents

Constructor

Methods to initialise RET-Mie model.

Table of contents

__init__(self, comps, mole_weights=None, sigma=None, eps_div_k=None, la=None, lr=None, lij=0, kij=0, N=4, is_idealgas=False, use_eos=None, parameter_ref='default', use_default_eos_param=None)

If parameters are explicitly supplied through optional arguments, these will be used instead of those in the database. To supply specific parameters for only some components, give None for the components that should use the database value

Args:

     comps (str) :

          Comma-separated list of components

     mole_weights (1D array) :

          Molar weights [g/mol]

     sigma (1D array) :

          sigma-parameters [m]

     eps_div_k (1D array) :

          epsilon parameter / Boltzmann constant [-]

     la, lr (1D array) :

          attractive and repulsive exponent of the pure components [-]

     lij (float) :

          Mixing parameter for sigma (lij > 0 => smaller sigma_12, lij < 0 => larger sigma_12)

     kij (float) :

          Mixing parameter for epsilon (kij > 0 => favours mixing, kij < 0 => favours separation)

     use_eos (thermopack eos object, optional) :

          EoS to use (initialized), defaults to saftvrmie

     use_default_eos_param (bool or None) :

          If False, ensure that the EoS and RET-model use the same parameters(if applicable). If True, the EoS will use its default parameters regardless of specified parameters. As default behaviour, this parameter is set to True if no parameters are supplied, and False if any parameters are supplied. That is, if any parameters are supplied, the EoS will by default use the same parameters as the MieKinGas object. Otherwise, the EoS will use its own default parameters, and the MieKinGas object will use its own default parameters. Specifying this kwarg will override this behaviour.

Utility methods

Set- and get methods for interaction parameters, mixing parameters …

Table of contents

get_vdw_alpha(self)

Compute potential $\alpha_{vdw}$ parameter, defined as

\[\alpha_{vdw} = 2 \pi \int_{\sigma}^{\infty} \phi(r) r^2 dr\]

Returns:

     float :

          $\alpha_{vdw}$ of first component.

set_eps_div_k(self, eps_div_k, update_eos=True)

See MieType

set_la(self, la, update_eos=True)

See MieType

set_lr(self, lr, update_eos=True)

See MieType

set_sigma(self, sigma, update_eos=True)

See MieType

Internal methods

Internal methods are not intended for use by end-users.

Table of contents

__update_cpp_kingas_param__(self)

See MieType