/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
6
11namespace amr_wind {
12
13class Field;
14
15namespace ocean_waves {
16
17class OceanWavesModel;
18
27class OceanWaves : public Physics::Register<OceanWaves>
28{
29public:
30 static std::string identifier() { return "OceanWaves"; }
31
32 explicit OceanWaves(CFDSim& /*sim*/);
33
34 ~OceanWaves() override;
35
36 void
37 initialize_fields(int /*level*/, const amrex::Geometry& /*geom*/) override;
38
39 void pre_init_actions() override;
40
41 void post_init_actions() override;
42
43 void post_regrid_actions() override;
44
45 void pre_advance_work() override;
46
47 void post_advance_work() override;
48
49protected:
50 virtual void prepare_outputs();
51
52private:
53 void relaxation_zones();
54
56
58 std::unique_ptr<OceanWavesModel> m_owm;
59
62
65
68
70 // Field& m_ow_pressure;
71};
72
73} // namespace ocean_waves
74} // namespace amr_wind
75
76#endif /* OCEAN_WAVES_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition OceanWaves.H:28
CFDSim & m_sim
Definition OceanWaves.H:55
virtual void prepare_outputs()
Definition OceanWaves.cpp:94
Field & m_ow_levelset
Ocean waves target free surface levelset function.
Definition OceanWaves.H:61
void pre_init_actions() override
Definition OceanWaves.cpp:30
void pre_advance_work() override
Definition OceanWaves.cpp:72
void post_advance_work() override
Definition OceanWaves.cpp:77
void post_init_actions() override
Definition OceanWaves.cpp:60
Field & m_ow_velocity
Ocean waves target velocity.
Definition OceanWaves.H:67
Field & m_ow_vof
Ocean waves target volume-of-fluid.
Definition OceanWaves.H:64
void relaxation_zones()
Definition OceanWaves.cpp:86
void initialize_fields(int, const amrex::Geometry &) override
Definition OceanWaves.cpp:54
void post_regrid_actions() override
Definition OceanWaves.cpp:66
OceanWaves(CFDSim &)
Definition OceanWaves.cpp:13
static std::string identifier()
Definition OceanWaves.H:30
std::unique_ptr< OceanWavesModel > m_owm
Unique pointer to the ocean waves model.
Definition OceanWaves.H:58
Definition BCInterface.cpp:7