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

Functions for geometric tessellation. Vertices and edges are used. More...

#include "globals.hh"
#include <iostream>
#include <fstream>
#include <sstream>
#include "voro++.hh"
#include "geometry.hh"

Go to the source code of this file.

Functions

void makeFoamSkeleton (string filename, int ncell, int *center_x, int *center_y, int *center_z, bool report)
 Make geometric tessellation using voro++ and store it to a file. More...
 
void importFoamSkeleton (string filename, double **vert, int **vinc, int vmax, int incmax, int &sv, bool report)
 Load geometric tessellation, move it to the domain and store it. More...
 

Detailed Description

Functions for geometric tessellation. Vertices and edges are used.

Author
Pavel Ferkl

Definition in file skeleton.cc.

Function Documentation

◆ importFoamSkeleton()

void importFoamSkeleton ( string  filename,
double **  vert,
int **  vinc,
int  vmax,
int  incmax,
int &  sv,
bool  report 
)

Load geometric tessellation, move it to the domain and store it.

Parameters
[in]filenameName of output file with tessellation
[out]vertvertex positions
[out]vincindexes of connected vertices
[in]vmaxmaximum number of vertices
[in]incmaxmaximum number of vertex connections
[out]svnumber of vertices
[in]reportshow output

Definition at line 47 of file skeleton.cc.

References globals::eps, globals::import_vtk, in_domain(), globals::nx, globals::ny, constants::nz, and globals::y.

Referenced by main().

◆ makeFoamSkeleton()

void makeFoamSkeleton ( string  filename,
int  ncell,
int *  center_x,
int *  center_y,
int *  center_z,
bool  report 
)

Make geometric tessellation using voro++ and store it to a file.

Parameters
[in]filenameName of output file with tessellation
[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 16 of file skeleton.cc.

References globals::ncell, globals::nx, globals::ny, and constants::nz.

Referenced by main().