MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
walls.cc File Reference

Functions for creation of walls from Voronoi tessellation. More...

#include "globals.hh"
#include <stdio.h>
#include <stdlib.h>
#include "allocation.hh"

Go to the source code of this file.

Macros

#define COUNT(i, j, k, a)
 

Functions

void makeWalls (int ***amat, int ncell, int *center_x, int *center_y, int *center_z, bool report)
 Creates walls based on position of seeds and Voronoi tessellation. More...
 

Detailed Description

Functions for creation of walls from Voronoi tessellation.

Author
Pavel Ferkl
Juraj Kosek

Definition in file walls.cc.

Macro Definition Documentation

◆ COUNT

#define COUNT (   i,
  j,
  k,
 
)
Value:
(((V_CELL(0,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(1,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(2,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(3,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(4,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(5,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(6,(i),(j),(k)) == (a)) ? 1 : 0) + \
((V_CELL(7,(i),(j),(k)) == (a)) ? 1 : 0) )
#define V_CELL(m, i, j, k)
Respect periodic boundary conditions cell volume matrix.
Definition: globals.hh:21

Some voxels have the same distance from several 'M' centers of cells. Calculate the number 'M'.

Definition at line 14 of file walls.cc.

Function Documentation

◆ makeWalls()

void makeWalls ( int ***  amat,
int  ncell,
int *  center_x,
int *  center_y,
int *  center_z,
bool  report 
)

Creates walls based on position of seeds and Voronoi tessellation.

Parameters
[in,out]amatvoxel matrix
[in]ncellnumber of cells
[out]center_xx position of seeds
[out]center_yy position of seeds
[out]center_zz position of seeds
[in]reportshow output

Definition at line 23 of file walls.cc.

Referenced by main().