Lagrangian meshing.
More...
|
double | MMG5_estavglen (MMG5_pMesh mesh) |
|
static int | MMG5_intdispvol (double *v1, double *v2, double *vp, double t) |
|
static int | MMG5_spllag (MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met, int itdeg, int *warn) |
|
int | MMG5_swptetlag (MMG5_pMesh mesh, MMG5_pSol met, double crit, MMG3D_pPROctree PROctree, int itdeg) |
|
int | MMG5_movtetlag (MMG5_pMesh mesh, MMG5_pSol met, int itdeg) |
|
static int | MMG5_coltetlag (MMG5_pMesh mesh, MMG5_pSol met, int itdeg) |
|
int | MMG5_chkmovmesh (MMG5_pMesh mesh, MMG5_pSol disp, short t, int *tetIdx) |
|
short | MMG5_dikmov (MMG5_pMesh mesh, MMG5_pSol disp, short *lastt) |
|
int | MMG5_dispmesh (MMG5_pMesh mesh, MMG5_pSol disp, short t, int itdeg) |
|
int | MMG5_saveDisp (MMG5_pMesh mesh, MMG5_pSol disp) |
|
int | MMG5_mmg3d3 (MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met, int **invalidTets) |
|
Lagrangian meshing.
- Author
- Charles Dapogny (UPMC)
-
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
-
Pascal Frey (UPMC)
-
Algiane Froehly (Inria/UBordeaux)
- Version
- 5
- Copyright
- GNU Lesser General Public License.
- Todo:
- Doxygen documentation
◆ MMG5_DEGTOL
#define MMG5_DEGTOL 1.e-1 |
◆ MMG5_chkmovmesh()
- Parameters
-
mesh | pointer toward the mesh structure |
disp | pointer toward the displacement structure. |
t | fraction of displacement to test |
tetIdx | to fill with the list of non valid tetra if provided. |
- Returns
- 0 if success (movement can be achieved), 1 or the number of invalid tetra otherwise.
Check if moving mesh with disp for a fraction t yields a valid mesh.
◆ MMG5_coltetlag()
- Parameters
-
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
itdeg | degraded elements. |
- Returns
- -1 if failed.
-
number of collapsed points.
Attempt to collapse small internal edges in the Lagrangian mode; only affects tetras marked with it.
◆ MMG5_dikmov()
- Parameters
-
mesh | pointer toward the mesh structure |
disp | pointer toward the displacement field |
lastt | 0 if a movement is possible, pointer toward the last tested fraction otherwise |
Return the largest fraction t that makes the motion along disp valid.
◆ MMG5_dispmesh()
Perform mesh motion along disp, for a fraction t, and the corresponding updates
◆ MMG5_estavglen()
Calculate an estimate of the average (isotropic) length of edges in the mesh
◆ MMG5_intdispvol()
static int MMG5_intdispvol |
( |
double * |
v1, |
|
|
double * |
v2, |
|
|
double * |
vp, |
|
|
double |
t |
|
) |
| |
|
inlinestatic |
Interpolate displacement between v1 and v2 at intermediate position 0<=t<=1
◆ MMG5_mmg3d3()
- Parameters
-
mesh | mesh structure |
disp | displacement structure |
met | metric structure |
invalidTets | array to store the list of invalid tetra if we are unable to move. |
- Returns
- 0 if fail, 1 if success to move, the opposite of the number of non valid tets if we can't move (- ninvalidTets).
Lagrangian node displacement and meshing. Code for options: info.lag >= 0 -> displacement, info.lag > 0 -> displacement+remeshing with swap and moves info.lag > 1 -> displacement+remeshing with split+collapse+swap+move
◆ MMG5_movtetlag()
- Parameters
-
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
itdeg | degraded elements. |
- Returns
- -1 if failed, number of moved points otherwise.
Analyze tetrahedra marked with it and move internal points so as to make mesh more uniform.
◆ MMG5_saveDisp()
For debugging purposes: save disp
◆ MMG5_spllag()
- Parameters
-
mesh | pointer toward the mesh structure. |
disp | pointer toward the displacement structure. |
met | pointer toward the metric structure. |
itdeg | degraded elements. |
*warn | warn is set to 1 if we don't have enough memory to complete mesh. |
- Returns
- -1 if failed.
-
number of new points.
Split edges of length bigger than MMG3D_LOPTL, in the Lagrangian mode.
◆ MMG5_swptetlag()
- Parameters
-
mesh | pointer toward the mesh structure. |
met | pointer toward the metric structure. |
crit | coefficient of quality improvment. |
PROctree | pointer toward the PROctree structure in delaunay mode and toward the NULL pointer otherwise. |
itdeg | degraded elements. |
- Returns
- -1 if fail, he number of swap otherwise.
Internal edge flipping in the Lagrangian mode; only affects tetra marked with it
◆ ddb