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

Main file for MMG3D executable: perform 3d mesh adaptation. More...

#include "libmmg3d_private.h"
#include "libmmg3d.h"
Include dependency graph for mmg3d.c:

Go to the source code of this file.

Functions

static void MMG5_endcod (void)
 
int MMG5_countLocalParamAtTet (MMG5_pMesh mesh, MMG5_iNode **bdyRefs)
 
int MMG5_writeLocalParamAtTet (MMG5_pMesh mesh, MMG5_iNode *bdryRefs, FILE *out)
 
int MMG3D_writeLocalParam (MMG5_pMesh mesh)
 
static int MMG3D_defaultOption (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol)
 
int main (int argc, char *argv[])
 

Variables

mytime MMG5_ctim [TIMEMAX]
 

Detailed Description

Main file for MMG3D executable: perform 3d mesh adaptation.

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

Definition in file mmg3d.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Parameters
argcnumber of command line arguments.
argvcommand line arguments.
Returns
MMG5_SUCCESS if success.
MMG5_LOWFAILURE if failed but a conform mesh is saved.
MMG5_STRONGFAILURE if failed and we can't save the mesh.

Main program for MMG3D executable: perform mesh adaptation.

Save files at medit or Gmsh format

Definition at line 297 of file mmg3d.c.

Here is the call graph for this function:

◆ MMG3D_defaultOption()

static int MMG3D_defaultOption ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  sol 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward a sol structure (metric).
solpointer toward a sol structure (ls or disp).
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.

Program to save the local default parameter file: read the mesh and metric (needed to compite the hmax/hmin parameters), scale the mesh and compute the hmax/hmin param, unscale the mesh and write the default parameter file.

Definition at line 198 of file mmg3d.c.

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

◆ MMG3D_writeLocalParam()

int MMG3D_writeLocalParam ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0 otherwise.

Write a DEFAULT.mmg3d file containing the default values of parameters that can be locally defined.

Save the local parameters file

Write local param at triangles

Write local param at tetra

Definition at line 130 of file mmg3d.c.

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

◆ MMG5_countLocalParamAtTet()

int MMG5_countLocalParamAtTet ( MMG5_pMesh  mesh,
MMG5_iNode **  bdyRefs 
)
Parameters
meshpointer toward the mesh structure.
bdyRefspointer toward the list of the boundary references.
Returns
npar, the number of local parameters at tetrahedra if success, 0 otherwise.

Count the local default values at tetrahedra and fill the list of the boundary references.

Count the number of different boundary references and list it

Definition at line 61 of file mmg3d.c.

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

◆ MMG5_endcod()

static void MMG5_endcod ( void  )
static

Print elapsed time at end of process.

Definition at line 43 of file mmg3d.c.

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

◆ MMG5_writeLocalParamAtTet()

int MMG5_writeLocalParamAtTet ( MMG5_pMesh  mesh,
MMG5_iNode bdryRefs,
FILE *  out 
)
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
outpointer toward the file in which to write.
Returns
1 if success, 0 otherwise.

Write the local default values at tetrahedra in the parameter file.

Definition at line 105 of file mmg3d.c.

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

Variable Documentation

◆ MMG5_ctim

mytime MMG5_ctim[TIMEMAX]

Definition at line 38 of file mmg3d.c.