#include "mmg2d.h"
#include "mmg2dexterns.h"
◆ MMG2D_RETURN_AND_PACK
#define MMG2D_RETURN_AND_PACK |
( |
|
mesh, |
|
|
|
met, |
|
|
|
sol, |
|
|
|
val |
|
) |
| |
Value: do \
{ \
mesh->xt = 0; \
if ( met ) { met->npi = met->np; } \
} \
}while(0)
Pack the mesh mesh and its associated metric met and/or solution sol and return val.
◆ MMG2D_mmg2dlib()
- Parameters
-
mesh | pointer toward the mesh structure. |
sol | pointer toward a sol structure (metric). |
- Returns
- MMG5_SUCCESS if success, MMG5_LOWFAILURE if failed but a conform mesh is saved and MMG5_STRONGFAILURE if failed and we can't save the mesh.
Main program for the mesh adaptation library .
◆ MMG2D_mmg2dls()
- Parameters
-
mesh | pointer toward the mesh structure. |
sol | pointer toward a sol structure (level-set). |
met | pointer toward a sol structure (metric). |
- Returns
- MMG5_SUCCESS if success, MMG5_LOWFAILURE if failed but a conform mesh is saved and MMG5_STRONGFAILURE if failed and we can't save the mesh.
Main program for the level-set discretization library. If a metric met is provided, use it to adapt the mesh.
◆ MMG2D_mmg2dmesh()
- Parameters
-
mesh | pointer toward the mesh structure. |
sol | pointer toward a sol structure (metric). |
- Returns
- MMG5_SUCCESS if success, MMG5_LOWFAILURE if failed but a conform mesh is saved and MMG5_STRONGFAILURE if failed and we can't save the mesh.
Main program for the mesh generation library .
◆ MMG2D_mmg2dmov()
- Parameters
-
mesh | pointer toward the mesh structure. |
sol | pointer toward a sol structure (displacement). |
disp | pointer toward a sol (displacement for the lagrangian motion mode) structure. |
- Returns
- MMG5_SUCCESS if success, MMG5_LOWFAILURE if failed but a conform mesh is saved and MMG5_STRONGFAILURE if failed and we can't save the mesh.
Main program for the rigid body movement library .
◆ MMG2D_restart()
- Parameters
-
mesh | pointer toward the mesh structure. |
- Returns
- 0 if fail (lack of memory), 1 otherwise.
Clean the mesh structure when we just call the MMG2D_Free_Triangles and MMG2D_Free_Edges functions between 2 call of the MMG2D_mmg2dmesh function:
- Allocate the tria and edge structures if needed;
- Reset the tags at vertices.
If needed, reallocate the missing structures
◆ MMG2D_solTruncatureForOptim()
- Parameters
-
mesh | pointer toward the mesh structure. |
met | pointer toward the solution structure. |
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.
- Warning
- works only for a metric computed by the DoSol function because we suppose that we have a diagonal tensor in aniso.
MMG5_pMesh MMG5_pSol * sol
Definition: API_functionsf_2d.c:63
int np
Definition: libmmgtypes.h:559
int ne
Definition: libmmgtypes.h:559
MMG5_pMesh * mesh
Definition: API_functionsf_2d.c:63
int npi
Definition: libmmgtypes.h:559
int na
Definition: libmmgtypes.h:559
#define MMG5_LOWFAILURE
Definition: libmmgtypes.h:51
int nt
Definition: libmmgtypes.h:559
double val
Definition: mmgcommon.h:580
int MMG2D_pack(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
Definition: hash_2d.c:514