FieldToSurfaceMesh.h File Reference

Detailed Description

#include "MarchingCubes.h"
#include "geometry/mesh/TriangleMesh.h"
#include "domain_decomposition/StructuredBlockStorage.h"
#include "field/FlagField.h"
#include <type_traits>

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::postprocessing
 

Functions

shared_ptr< TriangleMesh > walberla::postprocessing::gatherMesh (const shared_ptr< TriangleMesh > &mesh, bool gatherNormals, int targetRank, MPI_Comm comm)
 Gathers parts of a TriangleMesh on a single process and merges them into a single mesh. More...
 
shared_ptr< TriangleMesh > walberla::postprocessing::gatherMeshIntoMultiplePieces (int &pieceOut, const shared_ptr< TriangleMesh > &mesh, bool gatherNormals, uint_t pieces, MPI_Comm comm)
 Similar to gatherMesh but meshes is reduced into n pieces (instead of 1 piece ) More...
 
template<typename Field_T >
shared_ptr< geometry::TriangleMesh > walberla::postprocessing::flagFieldToSurfaceMesh (const shared_ptr< StructuredBlockStorage > &bs, ConstBlockDataID fieldID, typename Field_T::value_type mask, bool calcNormals=false, int targetRank=0, MPI_Comm comm=MPI_COMM_WORLD)
 Generates isosurface mesh out of a flag field and gathers the mesh on a single process. More...
 
template<typename Field_T >
shared_ptr< geometry::TriangleMesh > walberla::postprocessing::realFieldToSurfaceMesh (const shared_ptr< StructuredBlockStorage > &bs, ConstBlockDataID fieldID, real_t threshold, uint_t fCoord=0, bool calcNormals=false, int targetRank=0, MPI_Comm comm=MPI_COMM_WORLD)
 Generates isosurface mesh out of a real valued field and gathers the mesh on a single process. More...