Implements LevelSetKernel for unstructured meshes. More...


Public Types | |
template<typename value_t> | |
using | CellDenseCacheContainer = bitpit::PiercedStorage<value_t, long> |
template<typename value_t> | |
using | CellSparseCacheContainer = std::unordered_map<long, value_t> |
![]() | |
typedef ElementCacheCollection | CellCacheCollection |
Public Member Functions | |
LevelSetUnstructuredKernel (VolUnstructured &patch, LevelSetFillIn fillIn) | |
double | computeCellBoundingRadius (long) const override |
std::array< double, 3 > | computeCellCentroid (long) const override |
double | computeCellTangentRadius (long) const override |
VolUnstructured * | getMesh () const override |
![]() | |
LevelSetCachedKernel (VolumeKernel *, LevelSetFillIn fillIn) | |
void | clearCaches (bool release=false) |
bool | update (const std::vector< adaption::Info > &) override |
![]() | |
LevelSetKernel () | |
LevelSetKernel (VolumeKernel *mesh, LevelSetFillIn fillIn) | |
virtual | ~LevelSetKernel () |
std::unique_ptr< DataCommunicator > | createDataCommunicator () const |
MPI_Comm | getCommunicator () const |
double | getDistanceTolerance () const |
LevelSetFillIn | getExpectedFillIn () const |
virtual bool | intersectCellPlane (long, const std::array< double, 3 > &, const std::array< double, 3 > &, double) |
double | isCellInsideBoundingBox (long, const std::array< double BITPIT_COMMA 3 > &, const std::array< double, 3 > &) const |
bool | isCommunicatorSet () const |
bool | isPointInCell (long, const std::array< double, 3 > &) const |
Additional Inherited Members | |
![]() | |
CellCacheCollection & | getCellCacheCollection () |
const CellCacheCollection & | getCellCacheCollection () const |
![]() | |
std::unique_ptr< CellCacheCollection > | m_cellCacheCollection |
![]() | |
MPI_Comm | m_communicator |
LevelSetFillIn | m_expectedFillIn |
VolumeKernel * | m_mesh |
Detailed Description
Implements LevelSetKernel for unstructured meshes.
Definition at line 38 of file levelSetUnstructuredKernel.hpp.
Member Typedef Documentation
◆ CellDenseCacheContainer
using bitpit::LevelSetUnstructuredKernel::CellDenseCacheContainer = bitpit::PiercedStorage<value_t, long> |
Definition at line 49 of file levelSetUnstructuredKernel.hpp.
◆ CellSparseCacheContainer
using bitpit::LevelSetUnstructuredKernel::CellSparseCacheContainer = std::unordered_map<long, value_t> |
Definition at line 47 of file levelSetUnstructuredKernel.hpp.
Constructor & Destructor Documentation
◆ LevelSetUnstructuredKernel()
bitpit::LevelSetUnstructuredKernel::LevelSetUnstructuredKernel | ( | VolUnstructured & | patch, |
LevelSetFillIn | fillIn ) |
Constructor
- Parameters
-
patch is the underlying mesh fillIn expected kernel fill-in
Definition at line 43 of file levelSetUnstructuredKernel.cpp.
Member Function Documentation
◆ computeCellBoundingRadius()
|
overridevirtual |
Computes the radius of the bounding sphere associated with the specified cell.
The bounding sphere is the sphere with the minimum radius that contains all the cell vertices and has the center in the cell centroid.
- Parameters
-
[in] id is the id of cell
- Returns
- The radius of the bounding sphere.
Implements bitpit::LevelSetKernel.
Definition at line 155 of file levelSetUnstructuredKernel.cpp.
◆ computeCellCentroid()
|
overridevirtual |
Computes the centroid of the specfified cell.
- Parameters
-
[in] id is the id of cell
- Returns
- The centroid of the cell.
Implements bitpit::LevelSetKernel.
Definition at line 75 of file levelSetUnstructuredKernel.cpp.
◆ computeCellTangentRadius()
|
overridevirtual |
Computes the radius of the tangent sphere associated with the specified cell.
The tangent sphere is a sphere having the center in the cell centroid and tangent to the cell.
- Parameters
-
[in] id is the id of cell
- Returns
- The radius of the tangent sphere.
Implements bitpit::LevelSetKernel.
Definition at line 107 of file levelSetUnstructuredKernel.cpp.
◆ getMesh()
|
overridevirtual |
Returns a pointer to VolUnstructured
- Returns
- pointer to VolUnstructured
Implements bitpit::LevelSetKernel.
Definition at line 65 of file levelSetUnstructuredKernel.cpp.
The documentation for this class was generated from the following files:
- src/levelset/levelSetUnstructuredKernel.hpp
- src/levelset/levelSetUnstructuredKernel.cpp
