|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_PlaneAverage.H>

Public Member Functions | |
| AMREX_FORCE_INLINE | PlaneAverage (const amrex::MultiFab *field_in, amrex::Geometry geom_in, int axis_in, amrex::IntVect n_ghost_to_inc=amrex::IntVect{0}) |
| PlaneAverage ()=delete | |
| ~PlaneAverage ()=default | |
| AMREX_FORCE_INLINE void | operator() () |
| AMREX_FORCE_INLINE amrex::Real | line_average_interpolated (amrex::Real x, int comp) const |
| void | set_precision (int p) |
| amrex::Real | dx () const |
| amrex::Real | xlo () const |
| int | axis () const |
| int | level () const |
| int | ncomp () const |
| int | ncell_plane () const |
| int | ncell_line () const |
| const amrex::Vector< amrex::Real > & | line_average () const |
| AMREX_FORCE_INLINE void | line_average (int comp, amrex::Gpu::HostVector< amrex::Real > &l_vec) |
| const amrex::Vector< amrex::Real > & | line_centroids () const |
| const amrex::MultiFab & | field () const |
| template<typename IndexSelector > | |
| AMREX_FORCE_INLINE void | compute_averages (const IndexSelector &idxOp, const amrex::MultiFab &mfab) |
| template<typename IndexSelector > | |
| void | compute_averages (const IndexSelector &idxOp, const amrex::MultiFab &mfab) |
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 |
| int | m_ncell_plane |
| int | m_ncell_line |
| int | m_precision = 4 |
| const int | m_level = 0 |
| const amrex::MultiFab * | m_field |
| amrex::Geometry | m_geom |
| const int | m_axis |
| amrex::IntVect | m_ghost_to_inc = amrex::IntVect{0} |
| amrex::IntVect | m_ixtype |
Basic averaging and interpolation operations
|
explicit |
|
delete |
|
default |
|
inline |
| AMREX_FORCE_INLINE void PlaneAverage::compute_averages | ( | const IndexSelector & | idxOp, |
| const amrex::MultiFab & | mfab | ||
| ) |
fill line storage with averages
Referenced by Morrison::Compute_Coefficients(), SAM::Compute_Coefficients(), make_mom_sources(), make_sources(), and operator()().

| void PlaneAverage::compute_averages | ( | const IndexSelector & | idxOp, |
| const amrex::MultiFab & | mfab | ||
| ) |

|
inline |
|
inline |
Referenced by Morrison::Compute_Coefficients(), SAM::Compute_Coefficients(), make_mom_sources(), and make_sources().

|
inline |
|
inline |
Referenced by Morrison::Compute_Coefficients(), SAM::Compute_Coefficients(), make_mom_sources(), and make_sources().

| void PlaneAverage::line_average | ( | int | comp, |
| amrex::Gpu::HostVector< amrex::Real > & | l_vec | ||
| ) |
| amrex::Real PlaneAverage::line_average_interpolated | ( | amrex::Real | x, |
| int | comp | ||
| ) | const |
evaluate line average at specific location for any average component
|
inline |
|
inline |
Referenced by Morrison::Compute_Coefficients(), SAM::Compute_Coefficients(), make_mom_sources(), and make_sources().

|
inline |
|
inline |
| void PlaneAverage::operator() | ( | ) |

|
inline |
change precision of text file output
|
inline |
|
protected |
Referenced by axis(), compute_averages(), operator()(), and PlaneAverage().
|
protected |
line storage for centroids of each cell along a line
Referenced by dx(), line_average_interpolated(), and PlaneAverage().
|
protected |
level for plane averaging for now fixed at level=0
Referenced by compute_averages(), field(), operator()(), and PlaneAverage().
|
protected |
Referenced by compute_averages(), and PlaneAverage().
|
protected |
Referenced by compute_averages(), and PlaneAverage().
|
protected |
Referenced by compute_averages(), and PlaneAverage().
|
protected |
precision for line plot text file
Referenced by level().
|
protected |
number of average components line storage for the average velocity and tracer variables
Referenced by compute_averages(), line_average(), line_average_interpolated(), operator()(), and PlaneAverage().
|
protected |
Referenced by line_centroids(), and PlaneAverage().
|
protected |
number of cells in plane
Referenced by line_average(), line_average_interpolated(), ncell_line(), and PlaneAverage().
|
protected |
bottom of domain in axis direction
Referenced by compute_averages(), ncell_plane(), and PlaneAverage().
|
protected |
Referenced by compute_averages(), line_average(), line_average_interpolated(), ncomp(), and PlaneAverage().
|
protected |
number of cells along line
Referenced by set_precision().
|
protected |
mesh spacing in axis direction
Referenced by line_average_interpolated(), PlaneAverage(), and xlo().