Loading...
Searching...
No Matches
levelSetCartesianKernel.hpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25# ifndef __BITPIT_LEVELSET_CARTESIAN_KERNEL_HPP__
26# define __BITPIT_LEVELSET_CARTESIAN_KERNEL_HPP__
27
28#include "levelSetKernel.hpp"
29
30#include "bitpit_volcartesian.hpp"
31
32namespace bitpit{
33
35
36 private:
37 double m_cellTangentRadius ;
38 double m_cellBoundingRadius ;
40 public:
41 template<typename value_t>
42 using CellSparseCacheContainer = std::unordered_map<long, value_t>;
43 template<typename value_t>
44 using CellDenseCacheContainer = std::vector<value_t>;
45
47
48 VolCartesian * getMesh() const override;
49
50 double getCellTangentRadius() const;
51 double getCellBoundingRadius() const;
52
53 std::array<double, 3> computeCellCentroid(long) const override;
54 double computeCellTangentRadius(long) const override;
55 double computeCellBoundingRadius(long) const override;
56
57};
58
59// Typdefs for compatibility with older versions
61
62}
63
64#endif
Base class for defining kernels that need to cache data.
Implements LevelSetKernel for cartesian meshes.
VolCartesian * getMesh() const override
LevelSetCartesianKernel(VolCartesian &patch, LevelSetFillIn fillIn)
double computeCellTangentRadius(long) const override
std::array< double, 3 > computeCellCentroid(long) const override
double computeCellBoundingRadius(long) const override
The VolCartesian defines a Cartesian patch.
--- layout: doxygen_footer ---