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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/PostProcessing.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
PostProcessing.H
Go to the documentation of this file.
1#ifndef POSTPROCESSING_H
2#define POSTPROCESSING_H
3
4#include <memory>
5
7
16namespace amr_wind {
17
18class CFDSim;
19
29 : public Factory<PostProcessBase, CFDSim&, const std::string&>
30{
31public:
32 static std::string base_identifier() { return "PostProcessBase"; }
33
34 ~PostProcessBase() override = default;
35
36 virtual void pre_init_actions() = 0;
37
43 virtual void initialize() = 0;
44
47 virtual void post_advance_work() = 0;
48
50 virtual void post_regrid_actions() = 0;
51};
52
63{
64public:
65 explicit PostProcessManager(CFDSim& sim);
66
68
69 void pre_init_actions();
70
77 void post_init_actions();
78
80 void post_advance_work();
81
83
84private:
86
87 amrex::Vector<std::unique_ptr<PostProcessBase>> m_post;
88};
89
90} // namespace amr_wind
91
92#endif /* POSTPROCESSING_H */
Definition CFDSim.H:47
Definition PostProcessing.H:30
virtual void pre_init_actions()=0
virtual void initialize()=0
static std::string base_identifier()
Definition PostProcessing.H:32
~PostProcessBase() override=default
virtual void post_regrid_actions()=0
Actions to perform post regrid.
virtual void post_advance_work()=0
Definition PostProcessing.H:63
PostProcessManager(CFDSim &sim)
Definition PostProcessing.cpp:29
void pre_init_actions()
Definition PostProcessing.cpp:31
void post_advance_work()
Call all registered utilities to perform actions after a timestep.
Definition PostProcessing.cpp:60
~PostProcessManager()=default
void post_init_actions()
Definition PostProcessing.cpp:52
void post_regrid_actions()
Definition PostProcessing.cpp:67
CFDSim & m_sim
Definition PostProcessing.H:85
amrex::Vector< std::unique_ptr< PostProcessBase > > m_post
Definition PostProcessing.H:87
Definition BCInterface.cpp:7
Definition Factory.H:65