SamplerBase Class Reference
|
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <SamplerBase.H>
Public Member Functions | |
| ~SamplerBase () override=default | |
| virtual std::string | label () const =0 |
| Name used to refer to this sampler (e.g., myline1) | |
| virtual std::string & | label ()=0 |
| virtual std::string | sampletype () const =0 |
| Class name of this sampler (e.g., LineSampler) | |
| virtual int | id () const =0 |
| Unique numeric identifier used to track particles belonging to this instance. | |
| virtual int & | id ()=0 |
| virtual long | num_points () const =0 |
| Total number of probes that belong to this sampling instance. | |
| virtual long | num_output_points () const =0 |
| Total number of probes to be output Note: Same as num_points() for sampling without data reduction. | |
| virtual void | initialize (const std::string &key)=0 |
| Read inputs and perform initialization actions. | |
| virtual void | sampling_locations (SampleLocType &) const =0 |
| Populate the vector with coordinates of the sampling locations. | |
| virtual void | sampling_locations (SampleLocType &, const amrex::Box &) const =0 |
| Populate the vector with coordinates of the sampling locations inside a box. | |
| virtual void | check_bounds ()=0 |
| Check and fix the bounds of the sampler so the probes are in the domain. | |
| virtual void | output_locations (SampleLocType &) const =0 |
| Populate the vector with coordinates of the output locations. | |
| virtual bool | update_sampling_locations () |
| Update the sampling locations. | |
| virtual void | post_sample_actions () |
| Run actions after sample (useful in interpolated subsampling) | |
| virtual void | post_regrid_actions () |
| Run actions after regrid (important when using field-based quantities) | |
| virtual bool | output_netcdf_field (const std::vector< double > &, ncutils::NCGroup &, const size_t) |
| Run specific output for the sampler. | |
| virtual bool | do_data_modification () |
| Run data modification for specific sampler? | |
| virtual bool | do_convert_velocity_los () |
| virtual bool | do_subsampling_interp () |
| virtual std::vector< double > | modify_sample_data (const std::vector< double > &sampledata, const std::string &) |
| Sample buffer modification instructions. | |
| virtual void | calc_lineofsight_velocity (const std::vector< std::vector< double > > &, const int) |
| virtual void | define_netcdf_metadata (const ncutils::NCGroup &) const |
| Populate metadata in the NetCDF file. | |
| virtual void | populate_netcdf_metadata (const ncutils::NCGroup &) const |
| virtual void | output_netcdf_data (const ncutils::NCGroup &, const size_t) const |
| Public Member Functions inherited from amr_wind::Factory< SamplerBase, CFDSim & > | |
| virtual | ~Factory ()=default |
Static Public Member Functions | |
| static std::string | base_identifier () |
| Static Public Member Functions inherited from amr_wind::Factory< SamplerBase, CFDSim & > | |
| static std::unique_ptr< SamplerBase > | create (const std::string &key, Args... args) |
| static void | print (std::ostream &os) |
Static Public Attributes | |
| static constexpr amrex::Real | bounds_tol = constants::TIGHT_TOL |
Additional Inherited Members | |
| Public Attributes inherited from amr_wind::Factory< SamplerBase, CFDSim & > | |
| friend | Base |
Detailed Description
Abstract representation of data probes to sample flow data
This class defines the interface by which the positions of the data-probes are defined and access from the Sampling class. All data probe definitions must be sub-classes of this base class.
Constructor & Destructor Documentation
◆ ~SamplerBase()
|
overridedefault |
Member Function Documentation
◆ base_identifier()
|
inlinestatic |
◆ calc_lineofsight_velocity()
|
inlinevirtual |
◆ check_bounds()
|
pure virtual |
Check and fix the bounds of the sampler so the probes are in the domain.
◆ define_netcdf_metadata()
|
inlinevirtual |
Populate metadata in the NetCDF file.
◆ do_convert_velocity_los()
|
inlinevirtual |
◆ do_data_modification()
|
inlinevirtual |
Run data modification for specific sampler?
◆ do_subsampling_interp()
|
inlinevirtual |
◆ id() [1/2]
|
pure virtual |
Unique numeric identifier used to track particles belonging to this instance.
◆ id() [2/2]
|
pure virtual |
◆ initialize()
|
pure virtual |
Read inputs and perform initialization actions.
◆ label() [1/2]
|
pure virtual |
Name used to refer to this sampler (e.g., myline1)
◆ label() [2/2]
|
pure virtual |
◆ modify_sample_data()
|
inlinevirtual |
Sample buffer modification instructions.
◆ num_output_points()
|
pure virtual |
Total number of probes to be output Note: Same as num_points() for sampling without data reduction.
◆ num_points()
|
pure virtual |
Total number of probes that belong to this sampling instance.
◆ output_locations()
|
pure virtual |
Populate the vector with coordinates of the output locations.
◆ output_netcdf_data()
|
inlinevirtual |
◆ output_netcdf_field()
|
inlinevirtual |
Run specific output for the sampler.
◆ populate_netcdf_metadata()
|
inlinevirtual |
◆ post_regrid_actions()
|
inlinevirtual |
Run actions after regrid (important when using field-based quantities)
◆ post_sample_actions()
|
inlinevirtual |
Run actions after sample (useful in interpolated subsampling)
◆ sampletype()
|
pure virtual |
Class name of this sampler (e.g., LineSampler)
◆ sampling_locations() [1/2]
|
pure virtual |
Populate the vector with coordinates of the sampling locations.
◆ sampling_locations() [2/2]
|
pure virtual |
Populate the vector with coordinates of the sampling locations inside a box.
◆ update_sampling_locations()
|
inlinevirtual |
Update the sampling locations.
Member Data Documentation
◆ bounds_tol
|
staticconstexpr |
The documentation for this class was generated from the following file:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/SamplerBase.H
Generated by