FPlaneAveragingFine< FType > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <FieldPlaneAveragingFine.H>
Public Member Functions | |
FPlaneAveragingFine (const FType &field_in, const amr_wind::SimTime &time, int axis_in) | |
virtual | ~FPlaneAveragingFine ()=default |
virtual void | operator() () |
void | convert_x_to_ind (amrex::Real x, int &ind, amrex::Real &c) const |
amrex::Real | line_average_interpolated (amrex::Real x, int comp) const |
amrex::Real | line_average_cell (int ind, int comp) const |
void | output_line_average_ascii (const std::string &filename, int step, amrex::Real time) |
void | output_line_average_ascii (int step, amrex::Real time) |
void | set_precision (int p) |
int | axis () const |
int | ncomp () const |
int | ncell_line () const |
int | last_updated_index () const |
const amrex::Vector< amrex::Real > & | line_average () const |
void | line_average (int comp, amrex::Vector< amrex::Real > &l_vec) |
const amrex::Vector< amrex::Real > & | line_centroids () const |
const FType & | field () const |
template<typename IndexSelector > | |
void | compute_averages (const IndexSelector &idxOp) |
Protected Attributes | |
int | m_ncomp |
amrex::Vector< amrex::Real > | m_line_average |
amrex::Vector< amrex::Real > | m_line_xcentroid |
amrex::Real | m_dx |
amrex::Real | m_xlo |
amrex::Real | m_xhi |
int | m_ncell_line |
int | m_precision = 6 |
int | m_last_updated_index = -1 |
const FType & | m_field |
const SimTime & | m_time |
const int | m_axis |
Detailed Description
class amr_wind::FPlaneAveragingFine< FType >
Output average of a field on planes normal to a given direction
The user can choose a direction (x, y, or z), the default value is the z-direction. The field is then averaged on planes at the cell-centers at level 0 (coarsest level) along the specified direction.
Constructor & Destructor Documentation
◆ FPlaneAveragingFine()
amr_wind::FPlaneAveragingFine< FType >::FPlaneAveragingFine | ( | const FType & | field_in, |
const amr_wind::SimTime & | time, | ||
int | axis_in ) |
- Parameters
-
field_in [in] Field to be averaged time [in] Time instance to determine output frequencies axis_in [in] Direction along which planes are computed computed
◆ ~FPlaneAveragingFine()
|
virtualdefault |
Member Function Documentation
◆ axis()
|
inline |
◆ compute_averages()
void amr_wind::FPlaneAveragingFine< FType >::compute_averages | ( | const IndexSelector & | idxOp | ) |
fill line storage with averages
◆ convert_x_to_ind()
void amr_wind::FPlaneAveragingFine< FType >::convert_x_to_ind | ( | amrex::Real | x, |
int & | ind, | ||
amrex::Real & | c ) const |
◆ field()
|
inline |
◆ last_updated_index()
|
inline |
◆ line_average() [1/2]
|
inline |
◆ line_average() [2/2]
void amr_wind::FPlaneAveragingFine< FType >::line_average | ( | int | comp, |
amrex::Vector< amrex::Real > & | l_vec ) |
◆ line_average_cell()
amrex::Real amr_wind::FPlaneAveragingFine< FType >::line_average_cell | ( | int | ind, |
int | comp ) const |
evaluate line average at specific cell for any average component
◆ line_average_interpolated()
amrex::Real amr_wind::FPlaneAveragingFine< FType >::line_average_interpolated | ( | amrex::Real | x, |
int | comp ) const |
evaluate line average at specific location for any average component
◆ line_centroids()
|
inline |
◆ ncell_line()
|
inline |
◆ ncomp()
|
inline |
◆ operator()()
|
virtual |
Reimplemented in amr_wind::VelPlaneAveragingFine.
◆ output_line_average_ascii() [1/2]
void amr_wind::FPlaneAveragingFine< FType >::output_line_average_ascii | ( | const std::string & | filename, |
int | step, | ||
amrex::Real | time ) |
◆ output_line_average_ascii() [2/2]
void amr_wind::FPlaneAveragingFine< FType >::output_line_average_ascii | ( | int | step, |
amrex::Real | time ) |
◆ set_precision()
|
inline |
change precision of text file output
Member Data Documentation
◆ m_axis
|
protected |
◆ m_dx
|
protected |
line storage for centroids of each cell along a line
◆ m_field
|
protected |
keep track of the last time index that the operator was called
◆ m_last_updated_index
|
protected |
precision for line plot text file
◆ m_line_average
|
protected |
number of average components
◆ m_line_xcentroid
|
protected |
line storage for the average velocity and tracer variables
◆ m_ncell_line
|
protected |
top of line
◆ m_ncomp
|
protected |
◆ m_precision
|
protected |
number of cells along line
◆ m_time
|
protected |
◆ m_xhi
|
protected |
bottom of line
◆ m_xlo
|
protected |
mesh spacing in axis direction
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/FieldPlaneAveragingFine.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/FieldPlaneAveragingFine.cpp
Generated by 1.12.0