Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
main.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <float.h>
#include "mmg/mmg3d/libmmg3d.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

============================================================================= This file is part of the mmg software package for the tetrahedral mesh modification. Copyright (c) Bx INP/Inria/UBordeaux/UPMC, 2004- .

mmg is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

mmg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License and of the GNU General Public License along with mmg (in files COPYING.LESSER and COPYING). If not, see http://www.gnu.org/licenses/. Please read their terms carefully and

use this copy of the mmg distribution only if you accept them.

Example of use of the mmg3dmov function of the mmg3d library (basic use of lagrangian motion option)

Author
Charles Dapogny (LJLL, UPMC)
Cécile Dobrzynski (Inria / IMB, Université de Bordeaux)
Pascal Frey (LJLL, UPMC)
Algiane Froehly (Inria / IMB, Université de Bordeaux)
Version
5

1) Initialisation of mesh and sol structures

2) Build mesh in MMG5 format

Two solutions: just use the MMG3D_loadMesh function that will read a .mesh(b) file formatted or manually set your mesh using the MMG3D_Set* functions

with MMG3D_loadMesh function

3) Build displacement in MMG5 format

Two solutions: just use the MMG3D_loadSol function that will read a .sol(b) file formatted or manually set your sol using the MMG3D_Set* functions

----------------— Lagrangian motion option -------------------------—

With MMG3D_loadSol function

4) (not mandatory): check if the number of given entities match with mesh size

5) (not mandatory): set your global parameters using the MMG3D_Set_iparameter and MMG3D_Set_dparameter function (resp. for integer parameters and double param)

----------------— Lagrangian motion computation ------------------—

remesh function

Definition at line 51 of file main.c.

Here is the call graph for this function: