walberla::mesh::pe Namespace Reference

Classes

class  AngularVelocityFaceDataSource
 
class  AngularVelocityVertexDataSource
 
class  ConvexPolyhedron
 pe body representing a ConvexPolyhedron. More...
 
struct  ConvexPolyhedronParameters
 
class  DefaultTesselation
 
class  LinearVelocityFaceDataSource
 
class  LinearVelocityVertexDataSource
 
class  PeVTKMeshWriter
 
class  SIDFaceDataSource
 
class  SIDVertexDataSource
 
class  SurfaceVelocityVertexDataSource
 
class  UIDFaceDataSource
 
class  UIDVertexDataSource
 

Typedefs

typedef ConvexPolyhedron ConvexPolyhedronType
 Type of the convex polyhedron geometric primitive. More...
 
typedef ConvexPolyhedronConvexPolyhedronID
 Handle for a convexpolyhedron primitive. More...
 
using ConvexPolyhedronPtr = std::unique_ptr< ConvexPolyhedron >
 

Functions

void marshal (mpi::SendBuffer &buffer, const ConvexPolyhedron &obj)
 Marshalling a polyhedron primitive. More...
 
void unmarshal (mpi::RecvBuffer &buffer, ConvexPolyhedronParameters &objparam)
 Unmarshalling a polyhedron primitive. More...
 
ConvexPolyhedronID createConvexPolyhedron (BodyStorage &globalStorage, BlockStorage &blocks, BlockDataID storageID, id_t uid, const Vec3 &gpos, const std::vector< Vec3 > &pointCloud, MaterialID material=Material::find("iron"), bool global=false, bool communicating=true, bool infiniteMass=false)
 Setup of a new ConvexPolyhedron. More...
 
ConvexPolyhedronID createConvexPolyhedron (BodyStorage &globalStorage, BlockStorage &blocks, BlockDataID storageID, id_t uid, Vec3 gpos, TriangleMesh mesh, MaterialID material=Material::find("iron"), bool global=false, bool communicating=true, bool infiniteMass=false)
 Setup of a new ConvexPolyhedron. More...
 
template<typename MeshType >
void tesselateBox (const walberla::pe::Box &box, MeshType &mesh, std::vector< typename MeshType::VertexHandle > &newVertices, std::vector< typename MeshType::FaceHandle > &newFaces)
 
template<typename MeshType >
void tesselateConvexPolyhedron (const ConvexPolyhedron &poly, MeshType &mesh, std::vector< typename MeshType::VertexHandle > &newVertices, std::vector< typename MeshType::FaceHandle > &newFaces)
 

Variables

const typedef ConvexPolyhedronConstConvexPolyhedronID
 Handle for a constant convex polyhedron primitive. More...
 

Typedef Documentation

◆ ConvexPolyhedronID

Handle for a convexpolyhedron primitive.

◆ ConvexPolyhedronPtr

◆ ConvexPolyhedronType

Type of the convex polyhedron geometric primitive.

Function Documentation

◆ marshal()

void walberla::mesh::pe::marshal ( mpi::SendBuffer buffer,
const ConvexPolyhedron obj 
)

Marshalling a polyhedron primitive.

Parameters
bufferThe buffer to be filled.
objThe object to be marshalled.
Returns
void

◆ operator<<() [1/2]

std::ostream & walberla::mesh::pe::operator<< ( std::ostream &  os,
const ConvexPolyhedron s 
)

Global output operator for ConvexPolyhedra.

Parameters
osReference to the output stream.
sReference to a constant ConvexPolyhedron object.
Returns
Reference to the output stream.

◆ operator<<() [2/2]

std::ostream & walberla::mesh::pe::operator<< ( std::ostream &  os,
ConstConvexPolyhedronID  s 
)

Global output operator for ConvexPolyhedron handles.

Parameters
osReference to the output stream.
sConstant ConvexPolyhedron handle.
Returns
Reference to the output stream.

◆ tesselateBox()

template<typename MeshType >
void walberla::mesh::pe::tesselateBox ( const walberla::pe::Box box,
MeshType mesh,
std::vector< typename MeshType::VertexHandle > &  newVertices,
std::vector< typename MeshType::FaceHandle > &  newFaces 
)

◆ tesselateConvexPolyhedron()

template<typename MeshType >
void walberla::mesh::pe::tesselateConvexPolyhedron ( const ConvexPolyhedron poly,
MeshType mesh,
std::vector< typename MeshType::VertexHandle > &  newVertices,
std::vector< typename MeshType::FaceHandle > &  newFaces 
)

◆ unmarshal()

void walberla::mesh::pe::unmarshal ( mpi::RecvBuffer buffer,
ConvexPolyhedronParameters objparam 
)

Unmarshalling a polyhedron primitive.

Parameters
bufferThe buffer from where to read.
objparamThe object to be reconstructed.
Returns
void

Variable Documentation

◆ ConstConvexPolyhedronID

const typedef ConvexPolyhedron* walberla::mesh::pe::ConstConvexPolyhedronID

Handle for a constant convex polyhedron primitive.