Systems

A System object specifies what type of system needs to be solved. This includes the dimensionality, density and temperature, as well as the interaction potential as defined according to the previous page. Right now, this package exports only one type of System: SimpleLiquid.

SimpleLiquid

The SimpleLiquid system assumes that the potentials involved are rotationally symmetric, and therefore depends only on center-to-center distance. Additionally, it assumes that there is no present external field. It can be used both in the single component case, as well as for multi-component systems (mixtures).

For single component systems, the density ρ is assumed to be a scalar, while for multicomponent systems, it should be a vector. Internally, the package converts it into a diagonal matrix.

Example 1: a 2-dimensional Lennard-Jones system

using OrnsteinZernike
potential = LennardJones(1.0, 1.0)
kBT = 1.0
ρ = 0.5
dims = 2
system = SimpleLiquid(dims, ρ, kBT, potential)
2 dimensional SimpleLiquid:
 ρ = 0.5
 kBT = 1.0
 potential = LennardJones{Float64, Float64}(1.0, 1.0)

Example 1: a 3-dimensional 10-component hard-sphere system

using OrnsteinZernike # hide
D = 0.1:0.1:1.0
potential = HardSpheres(D)
kBT = 1.0
ρ = ones(10)/10
dims = 3
system = SimpleLiquid(dims, ρ, kBT, potential)
3 dimensional SimpleLiquid:
 ρ = [0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.0 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.0 0.0; 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.0; 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1]
 kBT = 1.0
 potential = HardSpheres{StaticArraysCore.SMatrix{10, 10, Float64, 100}}([0.1 0.15000000000000002 0.2 0.25 0.3 0.35 0.39999999999999997 0.45 0.5 0.55; 0.15000000000000002 0.2 0.25 0.30000000000000004 0.35 0.4 0.44999999999999996 0.5 0.55 0.6; 0.2 0.25 0.3 0.35 0.4 0.44999999999999996 0.5 0.55 0.6 0.65; 0.25 0.30000000000000004 0.35 0.4 0.45 0.5 0.55 0.6000000000000001 0.65 0.7; 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75; 0.35 0.4 0.44999999999999996 0.5 0.55 0.6 0.6499999999999999 0.7 0.75 0.8; 0.39999999999999997 0.44999999999999996 0.5 0.55 0.6 0.6499999999999999 0.7 0.75 0.8 0.85; 0.45 0.5 0.55 0.6000000000000001 0.65 0.7 0.75 0.8 0.8500000000000001 0.9; 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.8500000000000001 0.9 0.95; 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0])