/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/SamplerBase.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
SamplerBase.H
Go to the documentation of this file.
Definition SamplerBase.H:55
virtual void initialize(const std::string &key)=0
Read inputs and perform initialization actions.
virtual int & id()=0
virtual bool output_netcdf_field(const std::vector< double > &, ncutils::NCGroup &, const size_t)
Run specific output for the sampler.
Definition SamplerBase.H:110
static std::string base_identifier()
Definition SamplerBase.H:57
virtual void calc_lineofsight_velocity(const std::vector< std::vector< double > > &, const int)
Definition SamplerBase.H:130
virtual bool do_data_modification()
Run data modification for specific sampler?
Definition SamplerBase.H:119
virtual std::string label() const =0
Name used to refer to this sampler (e.g., myline1)
virtual void sampling_locations(SampleLocType &, const amrex::Box &) const =0
virtual int id() const =0
virtual bool do_subsampling_interp()
Definition SamplerBase.H:121
virtual long num_points() const =0
Total number of probes that belong to this sampling instance.
virtual std::string sampletype() const =0
Class name of this sampler (e.g., LineSampler)
static constexpr amrex::Real bounds_tol
Definition SamplerBase.H:59
virtual void output_netcdf_data(const ncutils::NCGroup &, const size_t) const
Definition SamplerBase.H:142
virtual void output_locations(SampleLocType &) const =0
Populate the vector with coordinates of the output locations.
virtual std::vector< double > modify_sample_data(const std::vector< double > &sampledata, const std::string &)
Sample buffer modification instructions.
Definition SamplerBase.H:124
virtual bool do_convert_velocity_los()
Definition SamplerBase.H:120
~SamplerBase() override=default
virtual void check_bounds()=0
Check and fix the bounds of the sampler so the probes are in the domain.
virtual void define_netcdf_metadata(const ncutils::NCGroup &) const
Populate metadata in the NetCDF file.
Definition SamplerBase.H:137
virtual void populate_netcdf_metadata(const ncutils::NCGroup &) const
Definition SamplerBase.H:140
virtual void post_regrid_actions()
Run actions after regrid (important when using field-based quantities)
Definition SamplerBase.H:107
virtual void sampling_locations(SampleLocType &) const =0
Populate the vector with coordinates of the sampling locations.
virtual long num_output_points() const =0
virtual std::string & label()=0
virtual void post_sample_actions()
Run actions after sample (useful in interpolated subsampling)
Definition SamplerBase.H:104
virtual bool update_sampling_locations()
Update the sampling locations.
Definition SamplerBase.H:101
Definition BCInterface.cpp:7
Definition Factory.H:65
Definition SamplerBase.H:15
const LocType & locations() const
Definition SamplerBase.H:25
void push_back(const amrex::RealVect &loc, const amrex::Long id)
Definition SamplerBase.H:19
amrex::Vector< amrex::Long > IdType
Definition SamplerBase.H:17
amrex::Vector< amrex::RealVect > LocType
Definition SamplerBase.H:16
Generated by 1.12.0