VolumeSampler Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
amr_wind::sampling::VolumeSampler Class Reference
#include <VolumeSampler.H>
Inheritance diagram for amr_wind::sampling::VolumeSampler:
Collaboration diagram for amr_wind::sampling::VolumeSampler:
Public Member Functions | |
VolumeSampler (const CFDSim &) | |
~VolumeSampler () 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 | 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 |
void | output_locations (SampleLocType &sample_locs) const override |
void | define_netcdf_metadata (const ncutils::NCGroup &) const override |
void | populate_netcdf_metadata (const ncutils::NCGroup &) const 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 probe locations along the line. | |
long | num_output_points () const override |
Number of output probe locations (after data reduction etc.) | |
Static Public Member Functions | |
static std::string | identifier () |
Private Attributes | |
const CFDSim & | m_sim |
amrex::Vector< amrex::Real > | m_hi |
amrex::Vector< amrex::Real > | m_lo |
amrex::Vector< int > | m_npts_dir |
std::string | m_label |
int | m_id {-1} |
int | m_npts {0} |
Detailed Description
Sample data on uniform grids
Defines probe locations on a volume defined by an volume that originates from the point
loand extends to
hi`. The resolution of the volume is defined by the vector npts_dir.
Constructor & Destructor Documentation
◆ VolumeSampler()
|
explicit |
◆ ~VolumeSampler()
|
overridedefault |
Member Function Documentation
◆ check_bounds()
|
override |
Check and fix the bounds of the sampler so the probes are in the domain.
◆ define_netcdf_metadata()
|
override |
◆ 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 |
◆ num_output_points()
|
inlineoverride |
Number of output probe locations (after data reduction etc.)
◆ num_points()
|
inlineoverride |
Number of probe locations along the line.
◆ output_locations()
|
inlineoverride |
◆ populate_netcdf_metadata()
|
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
Member Data Documentation
◆ m_hi
|
private |
◆ m_id
|
private |
◆ m_label
|
private |
◆ m_lo
|
private |
◆ m_npts
|
private |
◆ m_npts_dir
|
private |
◆ m_sim
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/VolumeSampler.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/VolumeSampler.cpp
Generated by 1.12.0