chombo-discharge
Loading...
Searching...
No Matches
CD_BrownianWalkerTagger.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
13#ifndef CD_BROWNIANWALKERTAGGER_H
14#define CD_BROWNIANWALKERTAGGER_H
15
16// Our includes
17#include <CD_CellTagger.H>
18#include <CD_ItoSolver.H>
19#include <CD_AmrMesh.H>
20#include <CD_NamespaceHeader.H>
21
22namespace Physics {
23 namespace BrownianWalker {
24
31 {
32 public:
37
43 BrownianWalkerTagger(RefCountedPtr<ItoSolver>& a_solver, RefCountedPtr<AmrMesh>& a_amr);
44
49
53 void
54 regrid() override;
55
59 void
60 parseOptions() override;
61
67 bool
68 tagCells(EBAMRTags& a_tags) override;
69
70 protected:
74 RefCountedPtr<ItoSolver> m_solver;
75
79 RefCountedPtr<AmrMesh> m_amr;
80
85 };
86 } // namespace BrownianWalker
87} // namespace Physics
88
89#include <CD_NamespaceFooter.H>
90
91#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:24
Declaration of solver class for Ito diffusion.
Base class for tagging cells across an AMR hierarchy.
Definition CD_CellTagger.H:32
CellTagger implementation for the Brownian walker physics module.
Definition CD_BrownianWalkerTagger.H:31
~BrownianWalkerTagger()
Destructor.
Definition CD_BrownianWalkerTagger.cpp:33
Real m_refMagn
Magnitude refinement threshold (reserved for future use).
Definition CD_BrownianWalkerTagger.H:84
bool tagCells(EBAMRTags &a_tags) override
Tag cells for refinement. Currently tags no cells but returns true to trigger load balancing.
Definition CD_BrownianWalkerTagger.cpp:56
RefCountedPtr< AmrMesh > m_amr
AMR mesh reference.
Definition CD_BrownianWalkerTagger.H:79
BrownianWalkerTagger()=delete
Disallowed default constructor.
void regrid() override
Regrid hook. No operations are performed.
Definition CD_BrownianWalkerTagger.cpp:39
void parseOptions() override
Parse tagging options from ParmParse. Reads m_refMagn.
Definition CD_BrownianWalkerTagger.cpp:45
RefCountedPtr< ItoSolver > m_solver
Ito solver reference, available for future tagging criteria.
Definition CD_BrownianWalkerTagger.H:74
Namespace containing physics models for use with chombo-discharge.
Definition CD_AdvectionDiffusion.H:16