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

Tools for interfacing mmg with LS, for extension of the displacement field. More...

#include "libmmg3d_private.h"
#include "ls_calls.h"
Include dependency graph for velextls_3d.c:

Go to the source code of this file.

Macros

#define MMG5_DEGTOL   0.75
 
#define _LS_LAMBDA   10.0e5
 
#define _LS_MU   8.2e5
 

Functions

MMG5_int * MMG5_packLS (MMG5_pMesh mesh, MMG5_pSol disp, LSst *lsst, MMG5_int *npfin)
 
int MMG5_unpackLS (MMG5_pMesh mesh, MMG5_pSol disp, LSst *lsst, MMG5_int npf, MMG5_int *invperm)
 
int MMG5_velextLS (MMG5_pMesh mesh, MMG5_pSol disp)
 

Detailed Description

Tools for interfacing mmg with LS, for extension of the displacement field.

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

Definition in file velextls_3d.c.

Macro Definition Documentation

◆ _LS_LAMBDA

#define _LS_LAMBDA   10.0e5

Definition at line 41 of file velextls_3d.c.

◆ _LS_MU

#define _LS_MU   8.2e5

Definition at line 42 of file velextls_3d.c.

◆ MMG5_DEGTOL

#define MMG5_DEGTOL   0.75

Definition at line 40 of file velextls_3d.c.

Function Documentation

◆ MMG5_packLS()

MMG5_int * MMG5_packLS ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
LSst *  lsst,
MMG5_int *  npfin 
)
Parameters
meshpointer toward the mesh
disppointer toward the displacement
lsstpointer toward the elastic structure (mesh + sol + info)
npfinpointer toward the final number of points in the packed mesh for the elasticity call
Returns
invperm array of the permutation (vertices) from the submesh (given to the elastic library) toward the global one.

Create submesh for solving the linear elasticity velocity extension problem. invperm stores the permutation [ new pt nb -> old pt nb ] (for unpacking purposes) Fill npf = number of vertices in the packed mesh.

Definition at line 59 of file velextls_3d.c.

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

◆ MMG5_unpackLS()

int MMG5_unpackLS ( MMG5_pMesh  mesh,
MMG5_pSol  disp,
LSst *  lsst,
MMG5_int  npf,
MMG5_int *  invperm 
)
Parameters
meshpointer toward the mesh
disppointer toward the displacement
lsstpointer toward the elastic structure (mesh + sol + info)
npfpointer toward the number of points in the submesh
invpermarray of the permutation from the submesh toward the global one
Returns
1 if success, 0 otherwise

Transfer solution from the submesh to the global mesh

Definition at line 369 of file velextls_3d.c.

Here is the caller graph for this function:

◆ MMG5_velextLS()

int MMG5_velextLS ( MMG5_pMesh  mesh,
MMG5_pSol  disp 
)
Parameters
meshpointer toward the mesh.
disppointer toward the displacement.
Returns
0 if fail, 1 if success.

Extension of the displacement at the nodes of triangles tagged MMG5_DISPREF

Definition at line 400 of file velextls_3d.c.

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