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

Kynema-SGF API: /home/runner/work/kynema-sgf/kynema-sgf/src/utilities/tagging/BoxRefiner.H Source File
Kynema-SGF 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 kynema_sgf::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,
32 const tagging::TaggingOperator& op) const override;
33
34 [[nodiscard]] const amrex::RealBox& bound_box() const override
35 {
36 return m_bound_box;
37 };
38
39protected:
40 amrex::Gpu::DeviceVector<vs::Vector> m_hex_corners;
41 amrex::Gpu::DeviceVector<vs::Vector> m_face_normals;
42 amrex::Gpu::DeviceVector<int> m_face_origin;
43 amrex::RealBox m_bound_box;
44};
45
46} // namespace kynema_sgf::tagging
47
48#endif /* BOXREFINER_H */
Definition CFDSim.H:55
static std::string identifier()
Definition BoxRefiner.H:22
amrex::Gpu::DeviceVector< int > m_face_origin
Definition BoxRefiner.H:42
~BoxRefiner() override=default
const amrex::RealBox & bound_box() const override
Definition BoxRefiner.H:34
BoxRefiner(const CFDSim &, const std::string &key)
Definition BoxRefiner.cpp:80
void operator()(const amrex::Box &, const amrex::Geometry &geom, const amrex::Array4< amrex::TagBox::TagType > &tags, const tagging::TaggingOperator &op) const override
Definition BoxRefiner.cpp:134
amrex::RealBox m_bound_box
Definition BoxRefiner.H:43
amrex::Gpu::DeviceVector< vs::Vector > m_hex_corners
Definition BoxRefiner.H:40
amrex::Gpu::DeviceVector< vs::Vector > m_face_normals
Definition BoxRefiner.H:41
Definition BoxRefiner.cpp:9
TaggingOperator
Definition RefinementCriteria.H:24