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

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