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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/averaging/ReAveraging.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ReAveraging.H
Go to the documentation of this file.
1#ifndef REAVERAGING_H
2#define REAVERAGING_H
3
5
6namespace amr_wind::averaging {
7
10class ReAveraging : public FieldTimeAverage::Register<ReAveraging>
11{
12public:
13 static std::string identifier() { return "ReAveraging"; }
14
15 ReAveraging(CFDSim& /*sim*/, const std::string& fname);
16
24 void operator()(
25 const SimTime& /*unused*/,
26 const amrex::Real /*unused*/,
27 const amrex::Real /*unused*/) override;
28
29 const std::string& average_field_name() override;
30
31private:
33 static std::string avg_name(const std::string& fname)
34 {
35 return fname + "_mean";
36 }
37
39 const Field& m_field;
40
43};
44
45} // namespace amr_wind::averaging
46
47#endif /* REAVERAGING_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition SimTime.H:30
Definition ReAveraging.H:11
Field & m_average
Reynolds averaged field.
Definition ReAveraging.H:42
static std::string avg_name(const std::string &fname)
Generate the averaged field name based on the field name.
Definition ReAveraging.H:33
const std::string & average_field_name() override
Definition ReAveraging.cpp:28
ReAveraging(CFDSim &, const std::string &fname)
Definition ReAveraging.cpp:9
static std::string identifier()
Definition ReAveraging.H:13
void operator()(const SimTime &, const amrex::Real, const amrex::Real) override
Definition ReAveraging.cpp:33
const Field & m_field
Fluctuating field.
Definition ReAveraging.H:39
Definition ReAveraging.cpp:7