chombo-discharge
Loading...
Searching...
No Matches
CD_RefinementBoxTagger.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
12
13#ifndef CD_REFINEMENTBOXTAGGER_H
14#define CD_REFINEMENTBOXTAGGER_H
15
16// Std includes
17#include <string>
18
19// Chombo includes
20#include <RefCountedPtr.H>
21
22// Our includes
23#include <CD_CellTagger.H>
24#include <CD_AmrMesh.H>
25#include <CD_NamespaceHeader.H>
26
36{
37public:
42
48 RefinementBoxTagger(const RefCountedPtr<AmrMesh>& a_amr, const std::string& a_realm) noexcept;
49
53 virtual ~RefinementBoxTagger() noexcept;
54
58 virtual void
59 parseOptions() override;
60
64 virtual void
65 regrid() override;
66
72 virtual bool
73 tagCells(EBAMRTags& a_tags) override;
74
75protected:
79 RefCountedPtr<AmrMesh> m_amr;
80
84 std::string m_realm;
85};
86
87#include <CD_NamespaceFooter.H>
88
89#endif
Declaration of core class for handling AMR-related operations (with embedded boundaries).
Declaration of a base class for tagging cells across an AMR hierarchy.
Vector< RefCountedPtr< LayoutData< DenseIntVectSet > > > EBAMRTags
Declaration of cell tags.
Definition CD_EBAMRTags.H:25
Class for handling spatial operations.
Definition CD_AmrMesh.H:46
CellTagger()
Weak constructor (does nothing).
Definition CD_CellTagger.cpp:23
std::string m_realm
Realm whose grids are tagged.
Definition CD_RefinementBoxTagger.H:84
RefinementBoxTagger()=delete
Disallowed default constructor.
virtual void regrid() override
Nothing to regrid: the tagger holds no mesh data.
Definition CD_RefinementBoxTagger.cpp:49
virtual void parseOptions() override
Parse the verbosity, the refinement boxes and the buffer.
Definition CD_RefinementBoxTagger.cpp:39
RefCountedPtr< AmrMesh > m_amr
AMR mesh.
Definition CD_RefinementBoxTagger.H:79
virtual ~RefinementBoxTagger() noexcept
Destructor.
Definition CD_RefinementBoxTagger.cpp:33
virtual bool tagCells(EBAMRTags &a_tags) override
Tag every cell whose center lies in a refinement box that asks for a finer level.
Definition CD_RefinementBoxTagger.cpp:58