waLBerla 7.2
Loading...
Searching...
No Matches
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

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 
namespace  walberla::postprocessing
 

Functions

shared_ptr< TriangleMeshwalberla::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.
 
shared_ptr< TriangleMeshwalberla::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 )
 
template<typename Field_T >
shared_ptr< geometry::TriangleMeshwalberla::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.
 
template<typename Field_T >
shared_ptr< geometry::TriangleMeshwalberla::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.