ThirdMomentAveraging Class Reference

AMR-Wind API: amr_wind::ThirdMomentAveraging Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
amr_wind::ThirdMomentAveraging Class Reference

#include <ThirdMomentAveraging.H>

Collaboration diagram for amr_wind::ThirdMomentAveraging:
[legend]

Public Member Functions

 ThirdMomentAveraging (FieldPlaneAveraging &pa1, FieldPlaneAveraging &pa2, FieldPlaneAveraging &pa3)
 
 ~ThirdMomentAveraging ()=default
 
void operator() ()
 
amrex::Real line_average_interpolated (amrex::Real x, int comp1, int comp2, int comp3) const
 
amrex::Real line_average_interpolated (amrex::Real x, int comp) const
 
amrex::Real line_average_cell (int ind, int comp1, int comp2, int comp3) const
 
amrex::Real line_average_cell (int ind, int comp) const
 
const amrex::Vector< amrex::Real > & line_moment ()
 
void line_moment (int comp, amrex::Vector< amrex::Real > &l_vec)
 
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)
 
template<typename IndexSelector >
void compute_average (const IndexSelector &idxOp, const amrex::MultiFab &mfab1, const amrex::MultiFab &mfab2, const amrex::MultiFab &mfab3)
 

Private Attributes

int m_num_moments
 
amrex::Vector< amrex::Real > m_third_moments_line
 
int m_precision = 4
 
int m_last_updated_index = -1
 
FieldPlaneAveragingm_plane_average1
 
FieldPlaneAveragingm_plane_average2
 
FieldPlaneAveragingm_plane_average3
 

Detailed Description

Compute the third moment with three fields

Constructor & Destructor Documentation

◆ ThirdMomentAveraging()

amr_wind::ThirdMomentAveraging::ThirdMomentAveraging ( FieldPlaneAveraging & pa1,
FieldPlaneAveraging & pa2,
FieldPlaneAveraging & pa3 )

◆ ~ThirdMomentAveraging()

amr_wind::ThirdMomentAveraging::~ThirdMomentAveraging ( )
default

Member Function Documentation

◆ compute_average()

template<typename IndexSelector >
void amr_wind::ThirdMomentAveraging::compute_average ( const IndexSelector & idxOp,
const amrex::MultiFab & mfab1,
const amrex::MultiFab & mfab2,
const amrex::MultiFab & mfab3 )

fill line storage with averages

◆ line_average_cell() [1/2]

amrex::Real amr_wind::ThirdMomentAveraging::line_average_cell ( int ind,
int comp ) const

evaluate third moment at specific cell for each component

◆ line_average_cell() [2/2]

amrex::Real amr_wind::ThirdMomentAveraging::line_average_cell ( int ind,
int comp1,
int comp2,
int comp3 ) const

evaluate third moment at specific cell for both components

◆ line_average_interpolated() [1/2]

amrex::Real amr_wind::ThirdMomentAveraging::line_average_interpolated ( amrex::Real x,
int comp ) const

evaluate third moment at specific location for each component

◆ line_average_interpolated() [2/2]

amrex::Real amr_wind::ThirdMomentAveraging::line_average_interpolated ( amrex::Real x,
int comp1,
int comp2,
int comp3 ) const

evaluate third moment at specific location for both components

◆ line_moment() [1/2]

const amrex::Vector< amrex::Real > & amr_wind::ThirdMomentAveraging::line_moment ( )
inline

◆ line_moment() [2/2]

void amr_wind::ThirdMomentAveraging::line_moment ( int comp,
amrex::Vector< amrex::Real > & l_vec )

◆ operator()()

void amr_wind::ThirdMomentAveraging::operator() ( )

◆ output_line_average_ascii() [1/2]

void amr_wind::ThirdMomentAveraging::output_line_average_ascii ( const std::string & filename,
int step,
amrex::Real time )

◆ output_line_average_ascii() [2/2]

void amr_wind::ThirdMomentAveraging::output_line_average_ascii ( int step,
amrex::Real time )

◆ set_precision()

void amr_wind::ThirdMomentAveraging::set_precision ( int p)
inline

change precision of text file output

Member Data Documentation

◆ m_last_updated_index

int amr_wind::ThirdMomentAveraging::m_last_updated_index = -1
private

precision for line plot text file

◆ m_num_moments

int amr_wind::ThirdMomentAveraging::m_num_moments
private

◆ m_plane_average1

FieldPlaneAveraging& amr_wind::ThirdMomentAveraging::m_plane_average1
private

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

◆ m_plane_average2

FieldPlaneAveraging& amr_wind::ThirdMomentAveraging::m_plane_average2
private

◆ m_plane_average3

FieldPlaneAveraging& amr_wind::ThirdMomentAveraging::m_plane_average3
private

◆ m_precision

int amr_wind::ThirdMomentAveraging::m_precision = 4
private

line storage for fluctuations

◆ m_third_moments_line

amrex::Vector<amrex::Real> amr_wind::ThirdMomentAveraging::m_third_moments_line
private

outer product of components


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