LifeV
lifev/core/examples/utility_mesh_reorder/main.cpp File Reference

File containing a utility to reorder a mesh. More...

#include <lifev/core/mesh/InternalEntitySelector.hpp>
#include <Epetra_ConfigDefs.h>
#include <Epetra_SerialComm.h>
#include <lifev/core/mesh/MeshData.hpp>
#include <lifev/core/filter/GetPot.hpp>
#include <lifev/core/filter/MeshWriter.hpp>
#include <string>
#include <lifev/core/fem/DOFInterface3Dto3D.hpp>
#include <lifev/core/fem/FESpace.hpp>
+ Include dependency graph for lifev/core/examples/utility_mesh_reorder/main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

File containing a utility to reorder a mesh.

This utility contains a method to reorder the meshes reducing the fill-in of the matrix, and a method to create a different marker on a region of a mesh. In particular this region is identified by a marker of another mesh that shares an interface (e.g. solid interface and fluid edges in FSI).

For instance suppose that you have marker=20 on the fluid 'edges' and on the solid mesh you have just different markers for the internal and external walls, then using this test you can create a marker '30' on the solid mesh whenever the corresponding marker on the fluid mesh is '20', and rewrite the mesh.

usage: test_meshReorder -o mesh_output.mesh

without the options -o or –output the output mesh can be specified from this data file. Otherwise the mesh will be written in a file 'mesh'.

the first mesh is the one reordered. The second mesh is the one where the new marker is added (not read when create_edge=false).

Author
Paolo Crosetto paolo.nosp@m..cro.nosp@m.setto.nosp@m.@epf.nosp@m.l.ch

Paolo Crosetto paolo.nosp@m..cro.nosp@m.setto.nosp@m.@epf.nosp@m.l.ch

Definition in file lifev/core/examples/utility_mesh_reorder/main.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)