/home/runner/work/kynema-sgf/kynema-sgf/src/utilities/sampling/MovingPlaneSampler.H Source File

Kynema-SGF API: /home/runner/work/kynema-sgf/kynema-sgf/src/utilities/sampling/MovingPlaneSampler.H Source File
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
MovingPlaneSampler.H
Go to the documentation of this file.
1#ifndef MOVINGPLANESAMPLER_H
2#define MOVINGPLANESAMPLER_H
3
5
7class ActuatorModel;
8}
9
10namespace kynema_sgf::sampling {
11
14{
15public:
16 static std::string identifier() { return "MovingPlaneSampler"; }
17
18 explicit MovingPlaneSampler(const CFDSim& sim);
19
20 void initialize(const std::string& key) override;
21 void check_bounds() override;
22 bool update_sampling_locations() override;
23
24 [[nodiscard]] std::string sampletype() const override
25 {
26 return identifier();
27 }
28
29 void define_netcdf_metadata(const ncutils::NCGroup& grp) const override;
30 void
31 output_netcdf_data(const ncutils::NCGroup& grp, size_t nt) const override;
32 void populate_info_file(std::ostream& fh) const override;
33
34private:
36 {
37 amrex::Vector<amrex::Real> origin;
38 amrex::Vector<amrex::Real> axis1;
39 amrex::Vector<amrex::Real> axis2;
40 amrex::Vector<amrex::Real> offset_vector;
41 };
42
43 bool update_geometry(amrex::Real time);
44
46 const ::kynema_sgf::actuator::ActuatorModel* m_actuator{nullptr};
47 std::string m_actuator_label;
49};
50
51} // namespace kynema_sgf::sampling
52
53#endif
Definition CFDSim.H:55
Definition ActuatorModel.H:30
void define_netcdf_metadata(const ncutils::NCGroup &grp) const override
Definition MovingPlaneSampler.cpp:108
PlaneGeometry m_reference
Definition MovingPlaneSampler.H:45
void output_netcdf_data(const ncutils::NCGroup &grp, size_t nt) const override
Definition MovingPlaneSampler.cpp:117
MovingPlaneSampler(const CFDSim &sim)
Definition MovingPlaneSampler.cpp:37
void populate_info_file(std::ostream &fh) const override
Definition MovingPlaneSampler.cpp:137
std::string m_actuator_label
Definition MovingPlaneSampler.H:47
static std::string identifier()
Definition MovingPlaneSampler.H:16
void check_bounds() override
Definition MovingPlaneSampler.cpp:66
bool update_geometry(amrex::Real time)
Definition MovingPlaneSampler.cpp:73
bool m_defer_bounds_check
Definition MovingPlaneSampler.H:48
void initialize(const std::string &key) override
Definition MovingPlaneSampler.cpp:39
const ::kynema_sgf::actuator::ActuatorModel * m_actuator
Definition MovingPlaneSampler.H:46
bool update_sampling_locations() override
Definition MovingPlaneSampler.cpp:102
std::string sampletype() const override
Definition MovingPlaneSampler.H:24
PlaneSampler(const CFDSim &)
Definition PlaneSampler.cpp:13
Representation of a NetCDF group.
Definition nc_interface.H:162
Definition MovingPlaneSampler.H:6
Definition DTUSpinnerSampler.cpp:19
amrex::Vector< amrex::Real > axis2
Definition MovingPlaneSampler.H:39
amrex::Vector< amrex::Real > axis1
Definition MovingPlaneSampler.H:38
amrex::Vector< amrex::Real > origin
Definition MovingPlaneSampler.H:37
amrex::Vector< amrex::Real > offset_vector
Definition MovingPlaneSampler.H:40