mmg2d
anisosiz_2d.c File Reference

Interpolation of metrics. More...

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

Functions

int _MMG2_defaultmet_2d (MMG5_pMesh mesh, MMG5_pSol met, int k, char i)
 
int _MMG2_defmetbdy_2d (MMG5_pMesh mesh, MMG5_pSol met, int k, char i)
 
int _MMG2_defsiz_ani (MMG5_pMesh mesh, MMG5_pSol met)
 
int _MMG2_grad2met_ani (MMG5_pMesh mesh, MMG5_pSol met, double *m, double *n, double difsiz)
 
int _MMG2_gradsiz_ani (MMG5_pMesh mesh, MMG5_pSol met)
 

Detailed Description

Interpolation of metrics.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
01 2014

Function Documentation

◆ _MMG2_defaultmet_2d()

int _MMG2_defaultmet_2d ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
char  i 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
kelt index
ivertex index in triangle k
Returns
0 if fail, 1 if success

Impose default metric (isotropic, with size hmax) at vertex i in triangle k.

Here is the caller graph for this function:

◆ _MMG2_defmetbdy_2d()

int _MMG2_defmetbdy_2d ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
char  i 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
kindex of the tria in which we work
iindex of the point on which we want to compute the metric
Returns
1 if success, 0 if fail

Calculate anisotropic metric tensor at (boundary) vertex i in triangle k on account of geometric approximation of the corresponding curve

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

◆ _MMG2_defsiz_ani()

int _MMG2_defsiz_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
Returns
0 if fail, 1 if success

Definition of an anisotropic metric tensor field based on the geometry of the domain; this tensor field is intersected by a user-defined tensor field

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

◆ _MMG2_grad2met_ani()

int _MMG2_grad2met_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
double *  m,
double *  n,
double  difsiz 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
mfrist metric
nsecond metric
difsizmaximal size gap authorized by the gradation.
Returns
0 if fail or we don't need to modify the sizes. ier, where (ier & 1) if metric m is altered, and (ier & 2) if metric n is altered.

Perform simultaneous reduction of matrices m1 and m2, and truncate characteristic sizes so that the difference between two corresponding sizes is less than difsiz.

Ref : https://www.rocq.inria.fr/gamma/Frederic.Alauzet/cours/cea2010_V2.pdf

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

◆ _MMG2_gradsiz_ani()

int _MMG2_gradsiz_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
Returns
0 if fail, 1 otherwise

Anisotropic mesh gradation routine

Here is the call graph for this function: