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

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