/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/ThirdMomentAveraging.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/ThirdMomentAveraging.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ThirdMomentAveraging.H
Go to the documentation of this file.
1#ifndef ThirdMomentAveraging_H
2#define ThirdMomentAveraging_H
3
4#include <AMReX_AmrCore.H>
8
9namespace amr_wind {
10
16{
17public:
22
24
25 void operator()();
26
28 amrex::Real line_average_interpolated(
29 amrex::Real x, int comp1, int comp2, int comp3) const;
31 amrex::Real line_average_interpolated(amrex::Real x, int comp) const;
33 amrex::Real
34 line_average_cell(int ind, int comp1, int comp2, int comp3) const;
36 amrex::Real line_average_cell(int ind, int comp) const;
37
38 const amrex::Vector<amrex::Real>& line_moment()
39 {
41 };
42 void line_moment(int comp, amrex::Vector<amrex::Real>& l_vec);
43
45 const std::string& filename, int step, amrex::Real time);
46 void output_line_average_ascii(int step, amrex::Real time);
47
49 void set_precision(int p) { m_precision = p; };
50
51private:
53 amrex::Vector<amrex::Real>
56 int m_precision = 4;
63
64public: // public for GPU
66 template <typename IndexSelector>
67 void compute_average(
68 const IndexSelector& idxOp,
69 const amrex::MultiFab& mfab1,
70 const amrex::MultiFab& mfab2,
71 const amrex::MultiFab& mfab3);
72};
73
74} // namespace amr_wind
75
76#endif /* ThirdMomentAveraging_H */
Definition ThirdMomentAveraging.H:16
FieldPlaneAveraging & m_plane_average3
Definition ThirdMomentAveraging.H:62
FieldPlaneAveraging & m_plane_average1
Definition ThirdMomentAveraging.H:60
ThirdMomentAveraging(FieldPlaneAveraging &pa1, FieldPlaneAveraging &pa2, FieldPlaneAveraging &pa3)
Definition ThirdMomentAveraging.cpp:80
amrex::Real line_average_cell(int ind, int comp1, int comp2, int comp3) const
Definition ThirdMomentAveraging.cpp:293
int m_last_updated_index
Definition ThirdMomentAveraging.H:57
int m_precision
Definition ThirdMomentAveraging.H:56
const amrex::Vector< amrex::Real > & line_moment()
Definition ThirdMomentAveraging.H:38
int m_num_moments
Definition ThirdMomentAveraging.H:52
void set_precision(int p)
Definition ThirdMomentAveraging.H:49
void output_line_average_ascii(const std::string &filename, int step, amrex::Real time)
Definition ThirdMomentAveraging.cpp:5
void compute_average(const IndexSelector &idxOp, const amrex::MultiFab &mfab1, const amrex::MultiFab &mfab2, const amrex::MultiFab &mfab3)
Definition ThirdMomentAveraging.cpp:138
void operator()()
Definition ThirdMomentAveraging.cpp:108
amrex::Real line_average_interpolated(amrex::Real x, int comp1, int comp2, int comp3) const
Definition ThirdMomentAveraging.cpp:237
amrex::Vector< amrex::Real > m_third_moments_line
Definition ThirdMomentAveraging.H:54
FieldPlaneAveraging & m_plane_average2
Definition ThirdMomentAveraging.H:61
Definition BCInterface.cpp:7