RadarSampler Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <RadarSampler.H>
Public Types | |
enum class | phase { FORWARD , FORWARD_PAUSE , REVERSE , REVERSE_PAUSE } |
using | LosRotType = amrex::Vector<vs::Tensor> |
using | LosUnitType = amrex::Vector<vs::Vector> |
Public Member Functions | |
RadarSampler (const CFDSim &) | |
~RadarSampler () override | |
void | initialize (const std::string &key) override |
void | check_bounds () override |
Check and fix the bounds of the sampler so the probes are in the domain. | |
void | new_cone () |
double | total_sweep_time () const |
double | periodic_time () |
int | sweep_count () const |
phase | determine_operation_phase () const |
double | determine_current_sweep_angle () const |
void | sampling_locations (SampleLocType &) const override |
Populate and return a vector of probe locations to be sampled. | |
void | sampling_locations (SampleLocType &, const amrex::Box &) const override |
bool | update_sampling_locations () override |
void | cone_axis_locations (SampleLocType &) const |
void | output_locations (SampleLocType &sample_locs) const override |
void | post_sample_actions () override |
void | define_netcdf_metadata (const ncutils::NCGroup &) const override |
void | populate_netcdf_metadata (const ncutils::NCGroup &) const override |
void | output_netcdf_data (const ncutils::NCGroup &, const size_t) const override |
bool | output_netcdf_field (const std::vector< double > &output_buffer, ncutils::NCGroup &grp, const size_t nt) override |
std::string | label () const override |
Name of this sampling object. | |
std::string & | label () override |
std::string | sampletype () const override |
Type of this sampling object. | |
int | id () const override |
Unique identifier for this set of probe locations. | |
int & | id () override |
long | num_points () const override |
Number of sampling container locations in a timestep. | |
long | num_output_points () const override |
Number of probe locations to output. | |
long | num_points_scan () const |
Number of sampling container locations per interp step. | |
long | num_points_axis () const |
Number of probe locations on Radar axis. | |
long | num_points_cone () const |
Number of probe locations in a cone. | |
long | num_points_quad () const |
Number of probe locations in a spherical cap. | |
bool | do_data_modification () override |
Run data modification for specific sampler. | |
bool | do_convert_velocity_los () override |
bool | do_subsampling_interp () override |
std::vector< double > | modify_sample_data (const std::vector< double > &sample_data, const std::string &) override |
Modify sample buffer after sampling happens. | |
void | calc_lineofsight_velocity (const std::vector< std::vector< double > > &, const int) override |
Static Public Member Functions | |
static std::string | identifier () |
static void | line_average (const std::vector< double > &weights, const std::vector< double > &values, std::vector< double > &reduced, long offset) |
Detailed Description
Sample data along a line
Defines probes along a line defined by start
and end
coordinates and divides it into equal segments as determined by num_points
. The length of each segment is given by
\[ (end - start) / (num_points - 1) \]
Member Typedef Documentation
◆ LosRotType
using amr_wind::sampling::RadarSampler::LosRotType = amrex::Vector<vs::Tensor> |
◆ LosUnitType
using amr_wind::sampling::RadarSampler::LosUnitType = amrex::Vector<vs::Vector> |
Member Enumeration Documentation
◆ phase
|
strong |
Constructor & Destructor Documentation
◆ RadarSampler()
|
explicit |
◆ ~RadarSampler()
|
overridedefault |
Member Function Documentation
◆ calc_lineofsight_velocity()
|
override |
◆ check_bounds()
|
override |
Check and fix the bounds of the sampler so the probes are in the domain.
◆ cone_axis_locations()
void amr_wind::sampling::RadarSampler::cone_axis_locations | ( | SampleLocType & | axis_locs | ) | const |
◆ define_netcdf_metadata()
|
override |
◆ determine_current_sweep_angle()
double amr_wind::sampling::RadarSampler::determine_current_sweep_angle | ( | ) | const |
◆ determine_operation_phase()
RadarSampler::phase amr_wind::sampling::RadarSampler::determine_operation_phase | ( | ) | const |
◆ do_convert_velocity_los()
|
inlineoverride |
◆ do_data_modification()
|
inlineoverride |
Run data modification for specific sampler.
◆ do_subsampling_interp()
|
inlineoverride |
◆ id() [1/2]
|
inlineoverride |
Unique identifier for this set of probe locations.
◆ id() [2/2]
|
inlineoverride |
◆ identifier()
|
inlinestatic |
◆ initialize()
|
override |
Read user inputs and initialize the sampling object
- Parameters
-
key Prefix used to parse inputs from file
◆ label() [1/2]
|
inlineoverride |
Name of this sampling object.
◆ label() [2/2]
|
inlineoverride |
◆ line_average()
|
static |
◆ modify_sample_data()
|
override |
Modify sample buffer after sampling happens.
◆ new_cone()
void amr_wind::sampling::RadarSampler::new_cone | ( | ) |
◆ num_output_points()
|
inlineoverride |
Number of probe locations to output.
◆ num_points()
|
inlineoverride |
Number of sampling container locations in a timestep.
◆ num_points_axis()
|
inline |
Number of probe locations on Radar axis.
◆ num_points_cone()
|
inline |
Number of probe locations in a cone.
◆ num_points_quad()
|
inline |
Number of probe locations in a spherical cap.
◆ num_points_scan()
|
inline |
Number of sampling container locations per interp step.
◆ output_locations()
|
inlineoverride |
◆ output_netcdf_data()
|
override |
◆ output_netcdf_field()
|
override |
◆ periodic_time()
double amr_wind::sampling::RadarSampler::periodic_time | ( | ) |
◆ populate_netcdf_metadata()
|
override |
◆ post_sample_actions()
|
override |
◆ sampletype()
|
inlineoverride |
Type of this sampling object.
◆ sampling_locations() [1/2]
|
override |
Populate and return a vector of probe locations to be sampled.
◆ sampling_locations() [2/2]
|
override |
Populate the vector with coordinates of the sampling locations inside a box
◆ sweep_count()
int amr_wind::sampling::RadarSampler::sweep_count | ( | ) | const |
◆ total_sweep_time()
double amr_wind::sampling::RadarSampler::total_sweep_time | ( | ) | const |
◆ update_sampling_locations()
|
override |
Member Data Documentation
◆ m_angular_speed
|
protected |
◆ m_axis
|
protected |
◆ m_beam_length
|
protected |
◆ m_cone_angle
|
protected |
◆ m_cone_size
|
protected |
◆ m_current_cones
|
protected |
◆ m_current_phase
|
protected |
◆ m_debug_print
|
protected |
◆ m_elevation_angles
|
protected |
◆ m_end
|
protected |
◆ m_fill_val
|
protected |
◆ m_id
|
protected |
◆ m_initial_cone
|
protected |
◆ m_interp_steps
|
protected |
◆ m_label
|
protected |
◆ m_los_proj
|
protected |
◆ m_los_unit
|
protected |
◆ m_los_velocity
|
protected |
◆ m_los_velocity_interp
|
protected |
◆ m_los_velocity_next
|
protected |
◆ m_los_velocity_prior
|
protected |
◆ m_nphi
|
protected |
◆ m_npts
|
protected |
◆ m_npts_azimuth
|
protected |
◆ m_ns
|
protected |
◆ m_ns_prior
|
protected |
◆ m_ntheta
|
protected |
◆ m_ntotal
|
protected |
◆ m_ntotal_prior
|
protected |
◆ m_num_output_points_prior
|
protected |
◆ m_num_points_prior
|
protected |
◆ m_output_cone_points
|
protected |
◆ m_periodic_time
|
protected |
◆ m_prior_cones
|
protected |
◆ m_radar_iter
|
protected |
◆ m_radar_quad_type
|
protected |
◆ m_radar_rotation_axis
|
protected |
◆ m_radar_sample_freq
|
protected |
◆ m_radar_time
|
protected |
◆ m_radtodeg
|
protected |
◆ m_rays
|
protected |
◆ m_reset_time
|
protected |
◆ m_sample_cones
|
protected |
◆ m_sample_freq
|
protected |
◆ m_sim
|
protected |
◆ m_start
|
protected |
◆ m_sweep_angle
|
protected |
◆ m_vertical
|
protected |
◆ m_weights
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/RadarSampler.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/RadarSampler.cpp
Generated by 1.12.0