/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/LidarSampler.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/LidarSampler.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
LidarSampler.H
Go to the documentation of this file.
1#ifndef LIDARSAMPLER_H
2#define LIDARSAMPLER_H
3
6
7namespace amr_wind::sampling {
8
19{
20public:
21 // cppcheck-suppress duplInheritedMember
22 static std::string identifier() { return "LidarSampler"; }
23
24 explicit LidarSampler(const CFDSim& /*sim*/);
25
30 void initialize(const std::string& key) override;
31
36 bool update_sampling_locations() override;
37
38 void post_sample_actions() override {};
39
40 void
41 define_netcdf_metadata(const ncutils::NCGroup& /*unused*/) const override;
42 void
43 populate_netcdf_metadata(const ncutils::NCGroup& /*unused*/) const override;
45 const ncutils::NCGroup& /*unused*/,
46 const size_t /*unused*/) const override;
47
48protected:
49 amrex::Vector<amrex::Real> m_origin;
50 amrex::Vector<amrex::Real> m_time_table;
51 amrex::Vector<amrex::Real> m_azimuth_table;
52 amrex::Vector<amrex::Real> m_elevation_table;
53 amrex::Real m_length{0};
54 bool m_periodic{true};
55 amrex::Real m_period{std::numeric_limits<amrex::Real>::max()};
56};
57
58} // namespace amr_wind::sampling
59
60#endif /* LIDARSAMPLER_H */
Definition CFDSim.H:47
Definition LidarSampler.H:19
bool m_periodic
Definition LidarSampler.H:54
void initialize(const std::string &key) override
Definition LidarSampler.cpp:13
amrex::Real m_length
Definition LidarSampler.H:53
void output_netcdf_data(const ncutils::NCGroup &, const size_t) const override
Definition LidarSampler.cpp:106
void post_sample_actions() override
Definition LidarSampler.H:38
void define_netcdf_metadata(const ncutils::NCGroup &) const override
Definition LidarSampler.cpp:92
void populate_netcdf_metadata(const ncutils::NCGroup &) const override
Definition LidarSampler.cpp:103
static std::string identifier()
Definition LidarSampler.H:22
amrex::Vector< amrex::Real > m_azimuth_table
Definition LidarSampler.H:51
bool update_sampling_locations() override
Definition LidarSampler.cpp:63
amrex::Vector< amrex::Real > m_origin
Definition LidarSampler.H:49
amrex::Real m_period
Definition LidarSampler.H:55
LidarSampler(const CFDSim &)
Definition LidarSampler.cpp:11
amrex::Vector< amrex::Real > m_time_table
Definition LidarSampler.H:50
amrex::Vector< amrex::Real > m_elevation_table
Definition LidarSampler.H:52
Definition LineSampler.H:16
Representation of a NetCDF group.
Definition nc_interface.H:166
Definition DTUSpinnerSampler.cpp:16