Methods in the HardSphere class
KineticGas - 2.0.0
The HardSphere
class, found in pykingas/HardSphere.py
, inherrits from the py_KineticGas class, and is the interface to the
RET-HS Model. This class implements utility methods to access mixing parameters etc.
Table of contents
Constructor
Methods to initialise RET-HS model.
Table of contents
__init__(self, comps, mole_weights=None, sigma=None, N=4, is_idealgas=False, parameter_ref='default')
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) :
hard-sphere diameters [m]
parameter_ref (str) :
Id for parameter set to use
Utility methods
Set- and get methods for interaction parameters, mixing parameters …
Table of contents
get_Eij(self, Vm, T, x)
Compute the factors
\[( n_i / k_B T ) (d \mu_i / d n_j)_{T, n_{k \neq j}},\]where $n_i$ is the molar density of species $i$.
Args:
Vm (float) :
Molar volume [m3 / mol]
T (float) :
Temperature [K]
x (array_like) :
Molar composition
Returns:
(2D array) :
The factors E[i][j] = $ ( n_i / k_B T ) (d \mu_i / d n_j){T, n{k \neq j}}$, where $n_i$is the molar density of species $i$. Unit [1 / mol]