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

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