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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/tagging/CylinderRefiner.H Source File
AMR-Wind 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
7namespace amr_wind::tagging {
8
17class CylinderRefiner : public GeometryType::Register<CylinderRefiner>
18{
19public:
20 static std::string identifier() { return "cylinder"; }
21
22 CylinderRefiner(const CFDSim& /*unused*/, const std::string& key);
23
24 ~CylinderRefiner() override = default;
25
26 void operator()(
27 const amrex::Box& /*bx*/,
28 const amrex::Geometry& geom,
29 const amrex::Array4<amrex::TagBox::TagType>& tags) const override;
30 const amrex::RealBox& bound_box() const override { return m_bound_box; };
31
32private:
35
36 amrex::Real m_outer_radius;
37 amrex::Real m_inner_radius{0.0};
38
39 amrex::RealBox m_bound_box;
40};
41
42} // namespace amr_wind::tagging
43
44#endif /* CYLINDERREFINER_H */
Definition CFDSim.H:47
Definition CylinderRefiner.H:18
amrex::Real m_outer_radius
Definition CylinderRefiner.H:36
amrex::RealBox m_bound_box
Definition CylinderRefiner.H:39
amrex::Real m_inner_radius
Definition CylinderRefiner.H:37
vs::Vector m_end
Definition CylinderRefiner.H:34
vs::Vector m_start
Definition CylinderRefiner.H:33
static std::string identifier()
Definition CylinderRefiner.H:20
void operator()(const amrex::Box &, const amrex::Geometry &geom, const amrex::Array4< amrex::TagBox::TagType > &tags) const override
Definition CylinderRefiner.cpp:50
~CylinderRefiner() override=default
const amrex::RealBox & bound_box() const override
Definition CylinderRefiner.H:30
CylinderRefiner(const CFDSim &, const std::string &key)
Definition CylinderRefiner.cpp:8
Definition BoxRefiner.cpp:6
Definition vector.H:13