mmg2d
mmg2d9.c File Reference

Lagrangian meshing. More...

#include "mmg2d.h"
Include dependency graph for mmg2d9.c:

Macros

#define _MMG2_DEGTOL   5.e-1
 

Functions

double _MMG2_estavglen (MMG5_pMesh mesh)
 
static double _MMG2_caltri_iso_3pt (double *a, double *b, double *c)
 
int _MMG2_chkmovmesh (MMG5_pMesh mesh, MMG5_pSol disp, short t)
 
short _MMG2_dikomv (MMG5_pMesh mesh, MMG5_pSol disp)
 
int _MMG2_dispmesh (MMG5_pMesh mesh, MMG5_pSol disp, short t, int itdeg)
 
int _MMG2_spllag (MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met, int itdeg, int *warn)
 
static int _MMG2_coleltlag (MMG5_pMesh mesh, MMG5_pSol met, int itdeg)
 
int _MMG2_swpmshlag (MMG5_pMesh mesh, MMG5_pSol met, double crit, int itdeg)
 
int _MMG2D_saveDisp (MMG5_pMesh mesh, MMG5_pSol disp)
 
int _MMG2_movtrilag (MMG5_pMesh mesh, MMG5_pSol met, int itdeg)
 
int MMG2_mmg2d9 (MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met)
 

Detailed Description

Lagrangian meshing.

Velocity extension for Lagrangian meshing.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Todo:
Doxygen documentation
Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Todo:
Doxygen documentation

Macro Definition Documentation

◆ _MMG2_DEGTOL

#define _MMG2_DEGTOL   5.e-1

Function Documentation

◆ _MMG2_caltri_iso_3pt()

static double _MMG2_caltri_iso_3pt ( double *  a,
double *  b,
double *  c 
)
inlinestatic

Compute quality of a triangle from the datum of its 3 vertices

Here is the caller graph for this function:

◆ _MMG2_chkmovmesh()

int _MMG2_chkmovmesh ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
short  t 
)

Check if moving mesh with disp for a fraction t yields a valid mesh

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

◆ _MMG2_coleltlag()

static int _MMG2_coleltlag ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  itdeg 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
itdegdegraded elements.
Returns
-1 if failed.
number of collapsed points.

Attempt to collapse small internal edges in the Lagrangian mode; only affects tetras with cc itdeg.

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

◆ _MMG2_dikomv()

short _MMG2_dikomv ( MMG5_pMesh  mesh,
MMG5_pSol  disp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _MMG2_dispmesh()

int _MMG2_dispmesh ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
short  t,
int  itdeg 
)

Perform mesh motion along disp, for a fraction t, and the corresponding updates

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

◆ _MMG2_estavglen()

double _MMG2_estavglen ( MMG5_pMesh  mesh)
Here is the caller graph for this function:

◆ _MMG2_movtrilag()

int _MMG2_movtrilag ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  itdeg 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
itdegdegraded elements.
Returns
-1 if failed, number of moved points otherwise.

Analyze trias with cc = itdeg and move internal points so as to make mesh more uniform.

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

◆ _MMG2_spllag()

int _MMG2_spllag ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
MMG5_pSol  met,
int  itdeg,
int *  warn 
)
Parameters
meshpointer toward the mesh structure.
disppointer toward the displacement structure.
metpointer toward the metric structure.
itdegdegraded elements.
*warnwarn is set to 1 if not enough memory is available to complete mesh.
Returns
-1 if failed.
number of new points.

Split edges of length bigger than _MMG5_LOPTL, in the Lagrangian mode. Only affects triangles with cc itdeg

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

◆ _MMG2_swpmshlag()

int _MMG2_swpmshlag ( MMG5_pMesh  mesh,
MMG5_pSol  met,
double  crit,
int  itdeg 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
critcoefficient of quality improvment.
itdegdegraded elements.

Internal edge flipping in the Lagrangian mode; only affects trias with cc itdeg

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

◆ _MMG2D_saveDisp()

int _MMG2D_saveDisp ( MMG5_pMesh  mesh,
MMG5_pSol  disp 
)

For debugging purposes: save disp

◆ MMG2_mmg2d9()

int MMG2_mmg2d9 ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
MMG5_pSol  met 
)
Here is the call graph for this function:
Here is the caller graph for this function: