ViennaLS
Loading...
Searching...
No Matches
viennals::FromVolumeMesh< T, D > Class Template Reference

This class creates a level set from a tetrahedral mesh. If the mesh contains a scalar data array called "Material", one level set for each material will be created and stored in the supplied std::vector<Domain<T,D>> object. More...

#include <lsFromVolumeMesh.hpp>

Public Types

using LevelSetType = SmartPointer<Domain<T, D>>
 
using LevelSetsType = std::vector<LevelSetType>
 
using GridType = typename Domain<T, D>::GridType
 

Public Member Functions

 FromVolumeMesh ()
 
 FromVolumeMesh (const GridType &passedGrid, SmartPointer< Mesh< T > > passedMesh, bool passedRemoveBoundaryTriangles=true)
 
void setGrid (const GridType &passedGrid)
 
void setMesh (SmartPointer< Mesh< T > > passedMesh)
 
void setRemoveBoundaryTriangles (bool passedRemoveBoundaryTriangles)
 
std::vector< LevelSetTypegetLevelSets () const
 
void apply ()
 

Detailed Description

template<class T, int D>
class viennals::FromVolumeMesh< T, D >

This class creates a level set from a tetrahedral mesh. If the mesh contains a scalar data array called "Material", one level set for each material will be created and stored in the supplied std::vector<Domain<T,D>> object.

Member Typedef Documentation

◆ GridType

template<class T , int D>
using viennals::FromVolumeMesh< T, D >::GridType = typename Domain<T, D>::GridType

◆ LevelSetsType

template<class T , int D>
using viennals::FromVolumeMesh< T, D >::LevelSetsType = std::vector<LevelSetType>

◆ LevelSetType

template<class T , int D>
using viennals::FromVolumeMesh< T, D >::LevelSetType = SmartPointer<Domain<T, D>>

Constructor & Destructor Documentation

◆ FromVolumeMesh() [1/2]

template<class T , int D>
viennals::FromVolumeMesh< T, D >::FromVolumeMesh ( )
inline

◆ FromVolumeMesh() [2/2]

template<class T , int D>
viennals::FromVolumeMesh< T, D >::FromVolumeMesh ( const GridType & passedGrid,
SmartPointer< Mesh< T > > passedMesh,
bool passedRemoveBoundaryTriangles = true )
inline

Member Function Documentation

◆ apply()

template<class T , int D>
void viennals::FromVolumeMesh< T, D >::apply ( )
inline

◆ getLevelSets()

template<class T , int D>
std::vector< LevelSetType > viennals::FromVolumeMesh< T, D >::getLevelSets ( ) const
inline

◆ setGrid()

template<class T , int D>
void viennals::FromVolumeMesh< T, D >::setGrid ( const GridType & passedGrid)
inline

◆ setMesh()

template<class T , int D>
void viennals::FromVolumeMesh< T, D >::setMesh ( SmartPointer< Mesh< T > > passedMesh)
inline

◆ setRemoveBoundaryTriangles()

template<class T , int D>
void viennals::FromVolumeMesh< T, D >::setRemoveBoundaryTriangles ( bool passedRemoveBoundaryTriangles)
inline

The documentation for this class was generated from the following file: