kolarji2 / SE_api

Program for easier work with Surface Evolver
3 stars 3 forks source link

Surface evolver api

Installation

The code depends on third-party applications:

To 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.

Build and install

cmake .
make
sudo make install

Run

se_api -i foam_simple.geo
se_api -g cubic

Description

-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.

Example

se_api -i foam_simple.geo
evolver foam.fe