/home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/BreakingWaves.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/BreakingWaves.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
BreakingWaves.H
Go to the documentation of this file.
1#ifndef NWB_H
2#define NWB_H
3
6
24namespace amr_wind {
25
30class BreakingWaves : public Physics::Register<BreakingWaves>
31{
32public:
33 static std::string identifier() { return "BreakingWaves"; }
34
35 explicit BreakingWaves(CFDSim& sim);
36
37 ~BreakingWaves() override;
38
39 void initialize_fields(int level, const amrex::Geometry& geom) 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
49private:
50 const CFDSim& m_sim;
51
55
57 amrex::Real m_tke0{0.000001};
58
60 amrex::Real m_sdr0{1.0};
61
63 amrex::Real m_amplitude{0.1};
64
65 amrex::Real m_air_vel_shear_rate{0.1};
66
68 amrex::Real m_wavelength{2.0};
69
71 amrex::Real m_waterlevel{0.0};
72
73 bool m_laminar{false};
74};
75
76} // namespace amr_wind
77
78#endif /* NWB_H */
Definition BreakingWaves.H:31
static std::string identifier()
Definition BreakingWaves.H:33
void post_init_actions() override
Definition BreakingWaves.H:41
amrex::Real m_tke0
initial tke value
Definition BreakingWaves.H:57
void post_advance_work() override
Definition BreakingWaves.H:47
amrex::Real m_wavelength
Initial free surface wavelength.
Definition BreakingWaves.H:68
amrex::Real m_waterlevel
Initial zero-level free-surface water depth.
Definition BreakingWaves.H:71
amrex::Real m_amplitude
Initial free surface amplitude magnitude.
Definition BreakingWaves.H:63
void post_regrid_actions() override
Definition BreakingWaves.H:43
Field & m_levelset
Definition BreakingWaves.H:53
Field & m_velocity
Definition BreakingWaves.H:52
amrex::Real m_sdr0
initial sdr value
Definition BreakingWaves.H:60
BreakingWaves(CFDSim &sim)
Definition BreakingWaves.cpp:9
void pre_advance_work() override
Definition BreakingWaves.H:45
Field & m_density
Definition BreakingWaves.H:54
const CFDSim & m_sim
Definition BreakingWaves.H:50
bool m_laminar
Definition BreakingWaves.H:73
amrex::Real m_air_vel_shear_rate
Definition BreakingWaves.H:65
void initialize_fields(int level, const amrex::Geometry &geom) override
Definition BreakingWaves.cpp:46
Definition CFDSim.H:47
Definition Field.H:116
Definition BCInterface.cpp:7