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

Functions for creating struts at cell vertices. More...

#include "globals.hh"
#include <iostream>
#include <cmath>
#include "determinant.hh"
#include "geometry.hh"
#include "allocation.hh"

Go to the source code of this file.

Functions

void makeNodeStruts (int ***amat, int sv, int incmax, int vmax, double **vert, int **vinc, bool report)
 

Detailed Description

Functions for creating struts at cell vertices.

Author
Pavel Ferkl

Definition in file nodes.cc.

Function Documentation

◆ makeNodeStruts()

void makeNodeStruts ( int ***  amat,
int  sv,
int  incmax,
int  vmax,
double **  vert,
int **  vinc,
bool  report 
)

Function for creating struts at cell vertices.

Struts are in shape of tetrahedra. It is assumed that four cells share a vertex. Vertices are taken from tessellation. Size of the tetrahedron is determined by the dstrut parameter. Changes amat.

Parameters
[in,out]amatvoxel matrix
[in]svnumber of vertices
[in]incmaxmaximum number of vertex connections
[in]vmaxmaximum number of vertices
[in]vertvertex positions
[in]vincindexes of connected vertices
[in]reportshow output

Definition at line 19 of file nodes.cc.

References alloc_3Ddmatrix(), CONFINEX, CONFINEY, CONFINEZ, Determinant(), constants::dstrut, free_3Ddmatrix(), in_domain(), bubbleGrowth.bubbleGrowth::m, globals::nx, globals::ny, constants::nz, and sgn().