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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/tagging/GradientMagRefinement.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
GradientMagRefinement.H
Go to the documentation of this file.
1#ifndef GRADIENTMAGREFINEMENT_H
2#define GRADIENTMAGREFINEMENT_H
3
5
6namespace amr_wind {
7class Field;
8
21 : public RefinementCriteria::Register<GradientMagRefinement>
22{
23public:
24 static std::string identifier() { return "GradientMagRefinement"; }
25
26 explicit GradientMagRefinement(const CFDSim& sim);
27
28 ~GradientMagRefinement() override = default;
29
31 void initialize(const std::string& key) override;
32
33 void
34 operator()(int level, amrex::TagBoxArray& tags, amrex::Real time, int ngrow)
35 override;
36
37private:
38 const CFDSim& m_sim;
39
40 Field* m_field{nullptr};
41
42 amrex::Vector<amrex::Real> m_gradmag_value;
43
45};
46
47} // namespace amr_wind
48
49#endif /* GRADIENTMAGREFINEMENT_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition GradientMagRefinement.H:22
GradientMagRefinement(const CFDSim &sim)
Definition GradientMagRefinement.cpp:9
const CFDSim & m_sim
Definition GradientMagRefinement.H:38
~GradientMagRefinement() override=default
void initialize(const std::string &key) override
Read input file and initialize boxarray used to refine each level.
Definition GradientMagRefinement.cpp:15
Field * m_field
Definition GradientMagRefinement.H:40
int m_max_lev_field
Definition GradientMagRefinement.H:44
static std::string identifier()
Definition GradientMagRefinement.H:24
void operator()(int level, amrex::TagBoxArray &tags, amrex::Real time, int ngrow) override
Definition GradientMagRefinement.cpp:45
amrex::Vector< amrex::Real > m_gradmag_value
Definition GradientMagRefinement.H:42
Definition BCInterface.cpp:7