FPlaneAveragingFine< FType > Class Template Reference

AMR-Wind API: amr_wind::FPlaneAveragingFine< FType > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
amr_wind::FPlaneAveragingFine< FType > Class Template Reference

#include <FieldPlaneAveragingFine.H>

Inheritance diagram for amr_wind::FPlaneAveragingFine< FType >:
[legend]
Collaboration diagram for amr_wind::FPlaneAveragingFine< FType >:
[legend]

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 SimTimem_time
 
const int m_axis
 

Detailed Description

template<typename FType>
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()

template<typename FType >
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()

template<typename FType >
virtual amr_wind::FPlaneAveragingFine< FType >::~FPlaneAveragingFine ( )
virtualdefault

Member Function Documentation

◆ axis()

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::axis ( ) const
inline

◆ compute_averages()

template<typename FType >
template<typename IndexSelector >
void amr_wind::FPlaneAveragingFine< FType >::compute_averages ( const IndexSelector & idxOp)

fill line storage with averages

◆ convert_x_to_ind()

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::convert_x_to_ind ( amrex::Real x,
int & ind,
amrex::Real & c ) const

◆ field()

template<typename FType >
const FType & amr_wind::FPlaneAveragingFine< FType >::field ( ) const
inline

◆ last_updated_index()

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::last_updated_index ( ) const
inline

◆ line_average() [1/2]

template<typename FType >
const amrex::Vector< amrex::Real > & amr_wind::FPlaneAveragingFine< FType >::line_average ( ) const
inline

◆ line_average() [2/2]

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::line_average ( int comp,
amrex::Vector< amrex::Real > & l_vec )

◆ line_average_cell()

template<typename FType >
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()

template<typename FType >
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()

template<typename FType >
const amrex::Vector< amrex::Real > & amr_wind::FPlaneAveragingFine< FType >::line_centroids ( ) const
inline

◆ ncell_line()

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::ncell_line ( ) const
inline

◆ ncomp()

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::ncomp ( ) const
inline

◆ operator()()

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::operator() ( )
virtual

◆ output_line_average_ascii() [1/2]

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::output_line_average_ascii ( const std::string & filename,
int step,
amrex::Real time )

◆ output_line_average_ascii() [2/2]

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::output_line_average_ascii ( int step,
amrex::Real time )

◆ set_precision()

template<typename FType >
void amr_wind::FPlaneAveragingFine< FType >::set_precision ( int p)
inline

change precision of text file output

Member Data Documentation

◆ m_axis

template<typename FType >
const int amr_wind::FPlaneAveragingFine< FType >::m_axis
protected

◆ m_dx

template<typename FType >
amrex::Real amr_wind::FPlaneAveragingFine< FType >::m_dx
protected

line storage for centroids of each cell along a line

◆ m_field

template<typename FType >
const FType& amr_wind::FPlaneAveragingFine< FType >::m_field
protected

keep track of the last time index that the operator was called

◆ m_last_updated_index

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::m_last_updated_index = -1
protected

precision for line plot text file

◆ m_line_average

template<typename FType >
amrex::Vector<amrex::Real> amr_wind::FPlaneAveragingFine< FType >::m_line_average
protected

number of average components

◆ m_line_xcentroid

template<typename FType >
amrex::Vector<amrex::Real> amr_wind::FPlaneAveragingFine< FType >::m_line_xcentroid
protected

line storage for the average velocity and tracer variables

◆ m_ncell_line

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::m_ncell_line
protected

top of line

◆ m_ncomp

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::m_ncomp
protected

◆ m_precision

template<typename FType >
int amr_wind::FPlaneAveragingFine< FType >::m_precision = 6
protected

number of cells along line

◆ m_time

template<typename FType >
const SimTime& amr_wind::FPlaneAveragingFine< FType >::m_time
protected

◆ m_xhi

template<typename FType >
amrex::Real amr_wind::FPlaneAveragingFine< FType >::m_xhi
protected

bottom of line

◆ m_xlo

template<typename FType >
amrex::Real amr_wind::FPlaneAveragingFine< FType >::m_xlo
protected

mesh spacing in axis direction


The documentation for this class was generated from the following files: