/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/tagging/RefinementCriteria.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/tagging/RefinementCriteria.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
RefinementCriteria.H
Go to the documentation of this file.
1#ifndef REFINEMENTCRITERIA_H
2#define REFINEMENTCRITERIA_H
3
4#include "AMReX_AmrCore.H"
5#include "AMReX_TagBox.H"
6
8
19namespace amr_wind {
20
21class CFDSim;
22
32class RefinementCriteria : public Factory<RefinementCriteria, CFDSim&>
33{
34public:
35 static std::string base_identifier() { return "RefinementCriteria"; }
36
37 RefinementCriteria() = default;
38
39 ~RefinementCriteria() override = default;
40
43 virtual void initialize(const std::string& key) = 0;
44
49 virtual void operator()(
50 int level, amrex::TagBoxArray& tags, amrex::Real time, int ngrow) = 0;
51};
52
57{
58public:
59 explicit RefineCriteriaManager(CFDSim& sim);
60
62
63 void initialize();
64
65 void
66 tag_cells(int lev, amrex::TagBoxArray& tags, amrex::Real time, int ngrow);
67
68private:
70
71 amrex::Vector<std::unique_ptr<RefinementCriteria>> m_refiners;
72};
73
74} // namespace amr_wind
75
76#endif /* REFINEMENTCRITERIA_H */
Definition CFDSim.H:47
Definition RefinementCriteria.H:57
RefineCriteriaManager(CFDSim &sim)
Definition RefinementCriteria.cpp:8
amrex::Vector< std::unique_ptr< RefinementCriteria > > m_refiners
Definition RefinementCriteria.H:71
void tag_cells(int lev, amrex::TagBoxArray &tags, amrex::Real time, int ngrow)
Definition RefinementCriteria.cpp:32
void initialize()
Definition RefinementCriteria.cpp:10
CFDSim & m_sim
Definition RefinementCriteria.H:69
Definition RefinementCriteria.H:33
virtual void initialize(const std::string &key)=0
virtual void operator()(int level, amrex::TagBoxArray &tags, amrex::Real time, int ngrow)=0
static std::string base_identifier()
Definition RefinementCriteria.H:35
~RefinementCriteria() override=default
Definition BCInterface.cpp:7
Definition Factory.H:65