/home/runner/work/kynema-sgf/kynema-sgf/src/utilities/tagging/CylinderRefiner.H Source File

Kynema-SGF API: /home/runner/work/kynema-sgf/kynema-sgf/src/utilities/tagging/CylinderRefiner.H Source File
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
CylinderRefiner.H
Go to the documentation of this file.
1#ifndef CYLINDERREFINER_H
2#define CYLINDERREFINER_H
3
6#include "AMReX_REAL.H"
7
8using namespace amrex::literals;
9
10namespace kynema_sgf::tagging {
11
20class CylinderRefiner : public GeometryType::Register<CylinderRefiner>
21{
22public:
23 static std::string identifier() { return "cylinder"; }
24
25 CylinderRefiner(const CFDSim& /*unused*/, const std::string& key);
26
27 ~CylinderRefiner() override = default;
28
29 void operator()(
30 const amrex::Box& /*bx*/,
31 const amrex::Geometry& geom,
32 const amrex::Array4<amrex::TagBox::TagType>& tags,
33 const tagging::TaggingOperator& op) const override;
34
35 [[nodiscard]] const amrex::RealBox& bound_box() const override
36 {
37 return m_bound_box;
38 };
39
40private:
43
44 amrex::Real m_outer_radius;
45 amrex::Real m_inner_radius{0.0_rt};
46
47 amrex::RealBox m_bound_box;
48};
49
50} // namespace kynema_sgf::tagging
51
52#endif /* CYLINDERREFINER_H */
Definition CFDSim.H:55
static std::string identifier()
Definition CylinderRefiner.H:23
CylinderRefiner(const CFDSim &, const std::string &key)
Definition CylinderRefiner.cpp:11
amrex::Real m_inner_radius
Definition CylinderRefiner.H:45
amrex::Real m_outer_radius
Definition CylinderRefiner.H:44
vs::Vector m_end
Definition CylinderRefiner.H:42
const amrex::RealBox & bound_box() const override
Definition CylinderRefiner.H:35
void operator()(const amrex::Box &, const amrex::Geometry &geom, const amrex::Array4< amrex::TagBox::TagType > &tags, const tagging::TaggingOperator &op) const override
Definition CylinderRefiner.cpp:56
vs::Vector m_start
Definition CylinderRefiner.H:41
amrex::RealBox m_bound_box
Definition CylinderRefiner.H:47
Definition BoxRefiner.cpp:9
TaggingOperator
Definition RefinementCriteria.H:24
VectorT< amrex::Real > Vector
Definition vector.H:145