25# include "bitpit_volcartesian.hpp"
27# include "levelSetKernel.hpp"
28# include "levelSetCartesianKernel.hpp"
51 std::array<double, 3> spacing = mesh->
getSpacing();
54 m_cellTangentRadius = std::numeric_limits<double>::max();
55 m_cellBoundingRadius = 0.;
56 for(
int i=0; i<dimension; ++i){
57 m_cellTangentRadius = std::min(m_cellTangentRadius, spacing[i]);
58 m_cellBoundingRadius += spacing[i] * spacing[i];
60 m_cellTangentRadius = 0.5 * m_cellTangentRadius;
61 m_cellBoundingRadius = 0.5 * std::sqrt(m_cellBoundingRadius);
85 return m_cellTangentRadius;
99 return m_cellBoundingRadius;
Base class for defining kernels that need to cache data.
double getCellTangentRadius() const
VolCartesian * getMesh() const override
LevelSetCartesianKernel(VolCartesian &patch, LevelSetFillIn fillIn)
double computeCellTangentRadius(long) const override
std::array< double, 3 > computeCellCentroid(long) const override
double getCellBoundingRadius() const
double computeCellBoundingRadius(long) const override
virtual VolumeKernel * getMesh() const
The VolCartesian defines a Cartesian patch.
std::array< double, 3 > evalCellCentroid(long id) const override
std::array< double, 3 > getSpacing() const
#define BITPIT_UNUSED(variable)