mmgs
quality_s.c File Reference

Functions to compute elements quality and edge lengths. More...

#include "mmgs.h"
#include "inlined_functions.h"
Include dependency graph for quality_s.c:

Macros

#define COS145   -0.81915204428899
 

Functions

double caleltsig_ani (MMG5_pMesh mesh, MMG5_pSol met, int iel)
 
double caleltsig_iso (MMG5_pMesh mesh, MMG5_pSol met, int iel)
 
double incircle (MMG5_pPoint p0, MMG5_pPoint p1, MMG5_pPoint p2, double *o)
 
double diamelt (MMG5_pPoint p0, MMG5_pPoint p1, MMG5_pPoint p2)
 
int MMGS_prilen (MMG5_pMesh mesh, MMG5_pSol met, int metRidTyp)
 
int MMGS_inqua (MMG5_pMesh mesh, MMG5_pSol met)
 
int MMGS_outqua (MMG5_pMesh mesh, MMG5_pSol met)
 
char typelt (MMG5_pPoint p[3], char *ia)
 

Variables

char ddb
 

Detailed Description

Functions to compute elements quality and edge lengths.

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

◆ COS145

#define COS145   -0.81915204428899

Function Documentation

◆ caleltsig_ani()

double caleltsig_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  iel 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ielelement index
Returns
0 if fail, -1 if orientation is reversed with regards to orientation of vertices, the computed quality otherwise.

Quality function identic to caltri_ani but puts a sign according to deviation to normal to vertices.

Here is the call graph for this function:

◆ caleltsig_iso()

double caleltsig_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  iel 
)

◆ diamelt()

double diamelt ( MMG5_pPoint  p0,
MMG5_pPoint  p1,
MMG5_pPoint  p2 
)
inline

◆ incircle()

double incircle ( MMG5_pPoint  p0,
MMG5_pPoint  p1,
MMG5_pPoint  p2,
double *  o 
)
inline

◆ MMGS_inqua()

int MMGS_inqua ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if the worst element has a nul quality, 1 otherwise.

Print histogram of mesh qualities for classical storage of ridges metrics (so before the the MMG5_defsiz function call).

Here is the call graph for this function:

◆ MMGS_outqua()

int MMGS_outqua ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if the worst element has a nul quality, 1 otherwise.

Print histogram of mesh qualities for special storage of ridges metrics (after the MMG5_defsiz function call).

Here is the call graph for this function:

◆ MMGS_prilen()

int MMGS_prilen ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  metRidTyp 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
metRidTypType of storage of ridges metrics: 0 for classic storage, 1 for special storage.
Returns
0 if fail, 1 otherwise.

Compute sizes of edges of the mesh, and displays histo.

Here is the call graph for this function:

◆ typelt()

char typelt ( MMG5_pPoint  p[3],
char *  ia 
)

Variable Documentation

◆ ddb

char ddb