/home/runner/work/amr-wind/amr-wind/amr-wind/ocean_waves/OceanWaves.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/ocean_waves/OceanWaves.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
OceanWaves.H
Go to the documentation of this file.
1#ifndef OCEAN_WAVES_H
2#define OCEAN_WAVES_H
3
7
11
12namespace amr_wind {
13
14class Field;
15
16namespace ocean_waves {
17
18class OceanWavesModel;
19
28class OceanWaves : public Physics::Register<OceanWaves>
29{
30public:
31 static std::string identifier() { return "OceanWaves"; }
32
33 explicit OceanWaves(CFDSim& /*sim*/);
34
35 ~OceanWaves() override;
36
37 void
38 initialize_fields(int /*level*/, const amrex::Geometry& /*geom*/) override;
39
40 void pre_init_actions() override;
41
42 void post_init_actions() override;
43
44 void post_regrid_actions() override;
45
46 void pre_advance_work() override;
47
48 void pre_predictor_work() override;
49
50 void post_advance_work() override;
51
52protected:
53 virtual void prepare_outputs();
54
55private:
57
59 std::unique_ptr<OceanWavesModel> m_owm;
60
63
66
69
74};
75
76} // namespace ocean_waves
77} // namespace amr_wind
78
79#endif /* OCEAN_WAVES_H */
Definition CFDSim.H:55
Definition Field.H:112
CFDSim & m_sim
Definition OceanWaves.H:56
virtual void prepare_outputs()
Definition OceanWaves.cpp:173
Field & m_ow_levelset
Ocean waves target free surface levelset function.
Definition OceanWaves.H:62
void pre_init_actions() override
Definition OceanWaves.cpp:94
void pre_predictor_work() override
Definition OceanWaves.cpp:156
void pre_advance_work() override
Definition OceanWaves.cpp:147
void post_advance_work() override
Definition OceanWaves.cpp:164
void post_init_actions() override
Definition OceanWaves.cpp:131
Field & m_ow_velocity
Ocean waves target velocity.
Definition OceanWaves.H:68
Field & m_ow_vof
Ocean waves target volume-of-fluid.
Definition OceanWaves.H:65
void initialize_fields(int, const amrex::Geometry &) override
Definition OceanWaves.cpp:125
bool m_multiphase_mode
Multiphase mode forces the velocity and vof in the domain When off, single-phase mode simply provides...
Definition OceanWaves.H:73
void post_regrid_actions() override
Definition OceanWaves.cpp:141
OceanWaves(CFDSim &)
Definition OceanWaves.cpp:16
static std::string identifier()
Definition OceanWaves.H:31
std::unique_ptr< OceanWavesModel > m_owm
Unique pointer to the ocean waves model.
Definition OceanWaves.H:59
Definition OceanWavesModel.H:23
Definition OceanWaves.cpp:14
This test case is intended as an evaluation of the momentum advection scheme.
Definition BCInterface.cpp:10