mmg3d
|
Most of the API functions of the MMG3D library. More...
#include "inlined_functions_3d.h"
Macros | |
#define | MMG5_RETURN_AND_PACK(mesh, met, disp, val) |
Functions | |
void | MMG3D_Free_topoTables (MMG5_pMesh mesh) |
void | MMG3D_solTruncatureForOptim (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG3D_bdryBuild (MMG5_pMesh mesh) |
int | MMG3D_mark_packedPoints (MMG5_pMesh mesh, int *np, int *nc) |
int | MMG3D_pack_tetraAndAdja (MMG5_pMesh mesh) |
int | MMG3D_pack_tetra (MMG5_pMesh mesh) |
int | MMG3D_pack_prismsAndQuads (MMG5_pMesh mesh) |
int | MMG3D_pack_sol (MMG5_pMesh mesh, MMG5_pSol sol) |
int | MMG3D_update_eltsVertices (MMG5_pMesh mesh) |
int | MMG3D_pack_pointArray (MMG5_pMesh mesh) |
int | MMG3D_pack_points (MMG5_pMesh mesh) |
void | MMG3D_unset_reqBoundaries (MMG5_pMesh mesh) |
int | MMG3D_packMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol disp) |
int | MMG3D_mmg3dlib (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG3D_mmg3dls (MMG5_pMesh mesh, MMG5_pSol met) |
int | MMG3D_mmg3dmov (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol disp) |
Variables | |
double(* | MMG3D_lenedgCoor )(double *ca, double *cb, double *sa, double *sb) |
Most of the API functions of the MMG3D library.
Private API functions for MMG3D library: incompatible functions with the main binary.
#define MMG5_RETURN_AND_PACK | ( | mesh, | |
met, | |||
disp, | |||
val | |||
) |
Pack the mesh mesh and its associated metric met and return val.
int MMG3D_bdryBuild | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure (unused). |
Create the boundary entities of the mesh (triangles and edges).
void MMG3D_Free_topoTables | ( | MMG5_pMesh | mesh | ) |
Free adja, xtetra and xpoint tables
int MMG3D_mark_packedPoints | ( | MMG5_pMesh | mesh, |
int * | np, | ||
int * | nc | ||
) |
mesh | pointer toward the mesh structure (unused). |
np | pointer toward the number of packed points |
nc | pointer toward the number of packed corners |
Count the number of packed points and store the packed point index in tmp.
int MMG3D_mmg3dlib | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol (metric) structure. |
Main program for the remesh library.
SUBROUTINE MMG3D_MMG3DLIB(mesh,met,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
In debug mode, check that all structures are allocated
Free topologic tables (adja, xpoint, xtetra) resulting from a previous run
int MMG3D_mmg3dls | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol (level-set) structure. |
Main program for the level-set discretization library.
SUBROUTINE MMG3D_MMG3DLS(mesh,met,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
In debug mode, check that all structures are allocated
int MMG3D_mmg3dmov | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | disp | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol (output metric) structure. |
disp | pointer toward a sol (displacement for the lagrangian motion mode) structure. |
Main program for the rigidbody movement library.
SUBROUTINE MMG3D_MMG3DMOV(mesh,met,disp,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met,disp
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
In debug mode, check that all structures are allocated
int MMG3D_pack_pointArray | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure (unused). |
Pack a sparse point array.
int MMG3D_pack_points | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure (unused). |
Pack a sparse point array and update the element vertices according to their new indices.
Store in tmp the pack index of each point and count the corner
Update the element vertices indices
Pack the point array
int MMG3D_pack_prismsAndQuads | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure |
Pack prisms and quads
int MMG3D_pack_sol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol | ||
) |
mesh | pointer toward the mesh structure (unused). |
met | pointer toward the solution (metric or level-set) structure. |
Pack a sparse solution structure.
int MMG3D_pack_tetra | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure |
Pack the sparse tetra. Doesn't pack the adjacency array.
int MMG3D_pack_tetraAndAdja | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure |
Pack the sparse tetra and the associated adja array
int MMG3D_packMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | disp | ||
) |
mesh | pointer toward the mesh structure (unused). |
met | pointer toward the solution (metric or level-set) structure. |
disp | pointer toward the solution (displacement) structure. |
Pack the sparse mesh and create triangles and edges before getting out of library
void MMG3D_solTruncatureForOptim | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
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.
void MMG3D_unset_reqBoundaries | ( | MMG5_pMesh | mesh | ) |
mesh | pointer towarad the mesh structure. |
Set all boundary triangles to required and add a tag to detect that they are not realy required.
int MMG3D_update_eltsVertices | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure (unused). |
Update the element vertices indices with the pack point index stored in the tmp field of the points.
double(* MMG3D_lenedgCoor) (double *ca, double *cb, double *sa, double *sb) |
ca | pointer toward the coordinates of the first edge's extremity. |
cb | pointer toward the coordinates of the second edge's extremity. |
ma | pointer toward the metric associated to the first edge's extremity. |
mb | pointer toward the metric associated to the second edge's extremity. |
Compute length of edge (with ca and cb coordinates of edge extremities) according to the size prescription.
SUBROUTINE MMG3D_LENEDGCOOR(ca,cb,sa,sb,retval)
REAL(KIND=8), INTENT(IN) :: ca,cb,sa,sb
REAL(KIND=8), INTENT(OUT) :: retval
END SUBROUTINE