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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/DamBreak.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
DamBreak.H
Go to the documentation of this file.
1#ifndef DamBreak_H
2#define DamBreak_H
3
6
12namespace amr_wind {
13
14class DamBreak : public Physics::Register<DamBreak>
15{
16public:
17 static std::string identifier() { return "DamBreak"; }
18
19 explicit DamBreak(CFDSim& sim);
20
21 ~DamBreak() override = default;
22
24
25 void initialize_fields(int level, const amrex::Geometry& geom) override;
26
27 void post_init_actions() override {}
28
29 void post_regrid_actions() override {}
30
31 void pre_advance_work() override {}
32
33 void post_advance_work() override {}
34
35private:
36 const CFDSim& m_sim;
37
41
43 amrex::Vector<amrex::Real> m_loc{0.0, 0.0, 0.0};
44
46 amrex::Real m_width{0.1};
47
49 amrex::Real m_height{0.25};
50};
51
52} // namespace amr_wind
53
54#endif /* DamBreak_H */
Definition CFDSim.H:47
Definition DamBreak.H:15
~DamBreak() override=default
Field & m_velocity
Definition DamBreak.H:38
DamBreak(CFDSim &sim)
Definition DamBreak.cpp:10
void post_regrid_actions() override
Definition DamBreak.H:29
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Dam Break simulations.
Definition DamBreak.cpp:27
void pre_advance_work() override
Definition DamBreak.H:31
const CFDSim & m_sim
Definition DamBreak.H:36
amrex::Vector< amrex::Real > m_loc
Initial DamBreak location.
Definition DamBreak.H:43
Field & m_density
Definition DamBreak.H:40
amrex::Real m_height
dam height value
Definition DamBreak.H:49
Field & m_levelset
Definition DamBreak.H:39
void post_advance_work() override
Definition DamBreak.H:33
amrex::Real m_width
dam width value
Definition DamBreak.H:46
void post_init_actions() override
Definition DamBreak.H:27
static std::string identifier()
Definition DamBreak.H:17
Definition Field.H:116
Definition BCInterface.cpp:7