8 #define ABS(x) (((x) < 0) ? -(x) : (x)) 10 #define MIN(x,y) (((x) < (y)) ? (x) : (y)) 12 #define CONFINEX(x) (((x) >= 0) ? (x) % nx : (x) + nx) 14 #define CONFINEY(x) (((x) >= 0) ? (x) % ny : (x) + ny) 16 #define CONFINEZ(x) (((x) >= 0) ? (x) % nz : (x) + nz) 18 #define AMAT(i,j,k) amat[CONFINEX(i)][CONFINEY(j)][CONFINEZ(k)] 20 #define V_CELL(m,i,j,k) v_cell[(m)][CONFINEX(i)][CONFINEY(j)][CONFINEZ(k)] 22 template <
typename T>
int sgn(T val) {
24 return (T(0) < val) - (val < T(0));
27 struct fn1_params {
int sv;
int incmax;
int vmax;
double **vert;
int **vinc; \
28 int ***smat;
bool report;};
bool openCell
make open cell foam
bool progress_report
show detailed progress report
double dedge
parameter influencing size of struts in cell edges
bool save_voro_diag1
gnuplot Voronoi diagram
bool createEdges
create struts at cell edges
bool save_vtk
save file in new paraview style
bool save_voro_diag2
alternative gnuplot Voronoi diagram
bool save_dat
save file in old dx style
bool createNodes
create struts at cell vertices
struct for passing paramaters to GSL function
namespace with global variables
bool import_vtk
import morphology from vtk