The code depends on third-party applications:
voro++
for tessellationTo install voro++
:
sudo ./install_voro++.sh
If that doesn't work, you will need to download it from http://math.lbl.gov/voro++/download/ and install it manually, voro++ header files are expected in /usr/local/include/voro++ and library in /usr/local/lib/libvoro++.a, where are files installed by default.
cmake .
make
sudo make install
se_api -i foam_simple.geo
se_api -g cubic
-i input.geo
Load file in geo format
-g random/cubic/hexab
Generate structure by using voro++ tesselation
-n 9
Specify number of cells to generate
for g:
random = number of cells
cubic = number of cells in one direction
hexab = even number of cells in one direction
-o outputFile
Specify name for output outputFile.fe and outputFile.cmd
-c file1.cmd,file2.cmd,file3.cmd
Comma separated list of cmd files which will be loaded in addition when surface evolver is run with output cmd file.
se_api -i foam_simple.geo
evolver foam.fe