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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/tagging/BoxRefiner.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
BoxRefiner.H
Go to the documentation of this file.
1#ifndef BOXREFINER_H
2#define BOXREFINER_H
3
6
7namespace amr_wind::tagging {
8
19class BoxRefiner : public GeometryType::Register<BoxRefiner>
20{
21public:
22 static std::string identifier() { return "box"; }
23
24 BoxRefiner(const CFDSim& /*unused*/, const std::string& key);
25
26 ~BoxRefiner() override = default;
27
28 void operator()(
29 const amrex::Box& /*bx*/,
30 const amrex::Geometry& geom,
31 const amrex::Array4<amrex::TagBox::TagType>& tags) const override;
32
33 const amrex::RealBox& bound_box() const override { return m_bound_box; };
34
35protected:
36 amrex::Gpu::DeviceVector<vs::Vector> m_hex_corners;
37 amrex::Gpu::DeviceVector<vs::Vector> m_face_normals;
38 amrex::Gpu::DeviceVector<int> m_face_origin;
39 amrex::RealBox m_bound_box;
40};
41
42} // namespace amr_wind::tagging
43
44#endif /* BOXREFINER_H */
Definition CFDSim.H:47
Definition BoxRefiner.H:20
amrex::RealBox m_bound_box
Definition BoxRefiner.H:39
amrex::Gpu::DeviceVector< int > m_face_origin
Definition BoxRefiner.H:38
BoxRefiner(const CFDSim &, const std::string &key)
Definition BoxRefiner.cpp:77
~BoxRefiner() override=default
void operator()(const amrex::Box &, const amrex::Geometry &geom, const amrex::Array4< amrex::TagBox::TagType > &tags) const override
Definition BoxRefiner.cpp:131
static std::string identifier()
Definition BoxRefiner.H:22
amrex::Gpu::DeviceVector< vs::Vector > m_hex_corners
Definition BoxRefiner.H:36
const amrex::RealBox & bound_box() const override
Definition BoxRefiner.H:33
amrex::Gpu::DeviceVector< vs::Vector > m_face_normals
Definition BoxRefiner.H:37
Definition BoxRefiner.cpp:6