Loading...
Searching...
No Matches
levelSetUnstructuredKernel.cpp
43LevelSetUnstructuredKernel::LevelSetUnstructuredKernel(VolUnstructured &patch, LevelSetFillIn fillIn ): LevelSetCachedKernel( &patch, fillIn ){
47 m_cellCentroidCacheId = cacheCollection.insert<CellSparseCacheContainer<std::array<double, 3>>>(CellCacheCollection::NULL_CACHE_ID);
48 m_cellTangentRadiusCacheId = cacheCollection.insert<CellSparseCacheContainer<double>>(CellCacheCollection::NULL_CACHE_ID);
49 m_cellBoundingRadiusCacheId = cacheCollection.insert<CellSparseCacheContainer<double>>(CellCacheCollection::NULL_CACHE_ID);
51 m_cellCentroidCacheId = cacheCollection.insert<CellDenseCacheContainer<std::array<double, 3>>>(CellCacheCollection::NULL_CACHE_ID);
52 m_cellTangentRadiusCacheId = cacheCollection.insert<CellDenseCacheContainer<double>>(CellCacheCollection::NULL_CACHE_ID);
53 m_cellBoundingRadiusCacheId = cacheCollection.insert<CellDenseCacheContainer<double>>(CellCacheCollection::NULL_CACHE_ID);
78 CellCacheCollection::ValueCache<std::array<double, 3>> *cache = (*m_cellCacheCollection)[m_cellCentroidCacheId].getCache<std::array<double, 3>>();
80 typename CellCacheCollection::ValueCache<std::array<double, 3>>::Entry cacheEntry = cache->findEntry(id);
110 CellCacheCollection::ValueCache<double> *cache = (*m_cellCacheCollection)[m_cellTangentRadiusCacheId].getCache<double>();
127 BITPIT_CREATE_WORKSPACE(vertexCoordinates, std::array<double BITPIT_COMMA 3>, nCellVertices, ReferenceElementInfo::MAX_ELEM_VERTICES);
158 CellCacheCollection::ValueCache<double> *cache = (*m_cellCacheCollection)[m_cellBoundingRadiusCacheId].getCache<double>();
175 BITPIT_CREATE_WORKSPACE(vertexCoordinates, std::array<double BITPIT_COMMA 3>, nCellVertices, ReferenceElementInfo::MAX_ELEM_VERTICES);
std::size_t insert(std::size_t index, Args &&... args)
Definition levelSetCache.tpp:1905
static ConstProxyVector< long > getVertexIds(ElementType type, const long *connectivity)
Definition element.cpp:1193
double evalPointDistance(const std::array< double, 3 > &point, const std::array< double, 3 > *coordinates) const
Definition element.cpp:1828
LevelSetCachedKernel(VolumeKernel *, LevelSetFillIn fillIn)
Definition levelSetKernel.cpp:297
CellCacheCollection & getCellCacheCollection()
Definition levelSetKernel.cpp:331
virtual VolumeKernel * getMesh() const
Definition levelSetKernel.cpp:83
std::array< double, 3 > computeCellCentroid(long) const override
Definition levelSetUnstructuredKernel.cpp:75
double computeCellBoundingRadius(long) const override
Definition levelSetUnstructuredKernel.cpp:155
double computeCellTangentRadius(long) const override
Definition levelSetUnstructuredKernel.cpp:107
LevelSetUnstructuredKernel(VolUnstructured &patch, LevelSetFillIn fillIn)
Definition levelSetUnstructuredKernel.cpp:43
VolUnstructured * getMesh() const override
Definition levelSetUnstructuredKernel.cpp:65
const std::array< double, 3 > & getVertexCoords(long id) const
Definition patch_kernel.cpp:2335
virtual std::array< double, 3 > evalCellCentroid(long id) const
Definition patch_kernel.cpp:5492
The VolUnstructured class defines a dummy unstructured volume patch.
Definition volunstructured.hpp:35
#define BITPIT_CREATE_WORKSPACE(workspace, item_type, size, stack_size)
Definition commonUtils.hpp:76
The namespace 'patch' contains routines for interacting with the patch manager.
Definition patch_manager.cpp:185
