The pyicen software is a python module for the calculation of nucleation properties in homogeneous ice nucleation of supercooled water. The calculations are based on the unary form of the classical nucleation theory (CNT).
The download package contains the pyicen python module and additional calculation scripts.
The pyicen module requires several dependencies installed in the system: gcc, python, python-dev, matplotlib, setuptools, swig, texlive, dvipng. On an Ubuntu system, the dependencies are installed by:
sudo apt-get install python-dev python-matplotlib python-setuptools swig texlive texlive-latex-extra dvipng
The pyicen module is installed into python by:
sudo easy_install pyicen-1.1210.tar.gz
A minimal pyicen script to calculate the ice nucleation rate as a function of pressure and temperature has the following structure:
#!/usr/bin/python from pyicen import nucan n = nucan.PyIcen() n.setMixture('wls_cb') n.set1Solver('1sol') par = (1, 0.32, 23.2357, 235.8, 0.34583, 0, 0.0, 0.0, 1.0, 0.0)
n.set75Parameters(par) t = 235 p = 1e5 n.setState(t, p, (1.0)) nr, Wc, rc, nc = n.solve() print 'Temperature: ', t print 'Pressure: ', p print 'Nucleation rate: ', nr
The script folder in the dowload package contains several examples of pyicen calculations.
© 2008–2014 Institute of Thermomechanics ASCR, v. v. i.