Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
solmap_2d.c File Reference

Compute isotropic size map according to the mean of the length of the edges passing through a point. More...

#include "libmmg2d.h"
#include "libmmg2d_private.h"
#include "mmg2dexterns_private.h"
#include "mmgexterns_private.h"
Include dependency graph for solmap_2d.c:

Go to the source code of this file.

Functions

static int MMG2D_solTruncatureForOptim (MMG5_pMesh mesh, MMG5_pSol met, int ani)
 
int MMG2D_doSol_iso (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG2D_doSol_ani (MMG5_pMesh mesh, MMG5_pSol sol)
 

Detailed Description

Compute isotropic size map according to the mean of the length of the edges passing through a point.

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

Definition in file solmap_2d.c.

Function Documentation

◆ MMG2D_doSol_ani()

int MMG2D_doSol_ani ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure
solpointer toward the sol structure
Returns
1 if success

Compute anisotropic unit size map using statistical concept of length distribution tensors (formula 5 of [2]).

Definition at line 175 of file solmap_2d.c.

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

◆ MMG2D_doSol_iso()

int MMG2D_doSol_iso ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure
solpointer toward the sol structure
Returns
1 if success

Compute isotropic size map according to the mean of the length of the edges passing through a point.

Definition at line 97 of file solmap_2d.c.

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

◆ MMG2D_solTruncatureForOptim()

static int MMG2D_solTruncatureForOptim ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  ani 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward the solution structure.
ani1 for aniso metric, 0 for iso one.
Returns
0 if fail, 1 if succeed.

Truncate the metric computed by the DoSol function by hmax and hmin values (if setted by the user). Set hmin and hmax if they are not setted.

Definition at line 52 of file solmap_2d.c.

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