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_LOPTLMMG5_DEL   1.41
 
#define MMG3D_LOPTSMMG5_DEL   0.6
 

Functions

static int MMG5_boucle_for (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree *PROctree, int ne, int *ifilt, int *ns, int *nc, int *warn, int it)
 
static int MMG5_optbad (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree)
 
static int MMG5_adpsplcol (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree *PROctree, int *warn)
 
static int MMG5_optetLES (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree)
 
static int MMG5_optet (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree)
 
static int MMG5_adptet_delone (MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree *PROctree)
 
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_LOPTLMMG5_DEL

#define MMG3D_LOPTLMMG5_DEL   1.41

◆ MMG3D_LOPTSMMG5_DEL

#define MMG3D_LOPTSMMG5_DEL   0.6

Function Documentation

◆ MMG5_adpsplcol()

static int MMG5_adpsplcol ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG3D_pPROctree PROctree,
int *  warn 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree 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_LOPTLMMG5_DEL and collapse edges shorter than MMG3D_LOPTSMMG5_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_pPROctree PROctree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree 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_pPROctree PROctree,
int  ne,
int *  ifilt,
int *  ns,
int *  nc,
int *  warn,
int  it 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree structure.
nenumber of elements.
ifiltpointer to store the number of vertices filtered by the PROctree.
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_LOPTLMMG5_DEL and collapse edges shorter than MMG3D_LOPTSMMG5_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:

◆ MMG5_optbad()

static int MMG5_optbad ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG3D_pPROctree  PROctree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree 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_pPROctree  PROctree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree 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_pPROctree  PROctree 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
PROctreepointer toward the PROctree 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