mmg3d
mmg3d1_delone.c File Reference

Perform volume and surface mesh adaptation in delaunay mode. More...

#include "mmg3d.h"
Include dependency graph for mmg3d1_delone.c:

Macros

#define _MMG3D_LOPTL_MMG5_DEL   1.41
 
#define _MMG3D_LOPTS_MMG5_DEL   0.6
 

Functions

static int _MMG5_boucle_for (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree, int ne, int *ifilt, int *ns, int *nc, int *warn, int it)
 
static int _MMG5_optbad (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree)
 
static int _MMG5_adpsplcol (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree, int *warn)
 
static int _MMG5_optetLES (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree)
 
static int _MMG5_optet (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree)
 
static int _MMG5_adptet_delone (MMG5_pMesh mesh, MMG5_pSol met, _MMG3D_pOctree octree)
 
int _MMG5_mmg3d1_delone (MMG5_pMesh mesh, MMG5_pSol met)
 

Variables

char ddb
 

Detailed Description

Perform volume and surface mesh adaptation in delaunay mode.

Author
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Version
5
Todo:
Doxygen documentation

Perform volume and surface mesh adaptation in delaunay mode (PATTERN preprocessor flag set to OFF).

Todo:
Clean the boucle for (code copy...)

Macro Definition Documentation

◆ _MMG3D_LOPTL_MMG5_DEL

#define _MMG3D_LOPTL_MMG5_DEL   1.41

◆ _MMG3D_LOPTS_MMG5_DEL

#define _MMG3D_LOPTS_MMG5_DEL   0.6

Function Documentation

◆ _MMG5_adpsplcol()

static int _MMG5_adpsplcol ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree,
int *  warn 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
warnset to 1 if we can't insert point due to lack of memory.
Returns
-1 if fail and we dont try to end the remesh process, 0 if fail but we try to end the remesh process and 1 if success.

Split edges longer than _MMG3D_LOPTL_MMG5_DEL and collapse edges shorter than _MMG3D_LOPTS_MMG5_DEL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_adptet_delone()

static int _MMG5_adptet_delone ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
Returns
0 if failed, 1 otherwise.

Analyze tetrahedra and split long / collapse short, according to prescribed metric.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_boucle_for()

static int _MMG5_boucle_for ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree,
int  ne,
int *  ifilt,
int *  ns,
int *  nc,
int *  warn,
int  it 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
nenumber of elements.
ifiltpointer to store the number of vertices filtered by the octree.
nspointer to store the number of vertices insertions.
ncpointer to store the number of collapse.
warnpointer to store a flag that warn the user in case of reallocation difficulty.
ititeration index.
Returns
-1 if fail and we don't save the mesh, 0 if fail but we try to save the mesh, 1 otherwise.

adpsplcol loop: split edges longer than _MMG3D_LOPTL_MMG5_DEL and collapse edges shorter than _MMG3D_LOPTS_MMG5_DEL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_mmg3d1_delone()

int _MMG5_mmg3d1_delone ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if failed, 1 if success.

Main adaptation routine.

— stage 1: geometric mesh
— stage 2: computational mesh

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_optbad()

static int _MMG5_optbad ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
Returns
0 if failed, 1 otherwise.

Mesh optimization during insertion phase.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_optet()

static int _MMG5_optet ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
Returns
0 if failed, 1 otherwise.

Mesh optimization using egde swapping and point relocation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG5_optetLES()

static int _MMG5_optetLES ( MMG5_pMesh  mesh,
MMG5_pSol  met,
_MMG3D_pOctree  octree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
octreepointer toward the octree structure.
Returns
0 if failed, 1 otherwise.

Mesh optimization for LES computation (improve the element skewness).

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ddb

char ddb