/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#include "AMReX_REAL.H"
7
8using namespace amrex::literals;
9
14
15namespace amr_wind {
16
17class DamBreak : public Physics::Register<DamBreak>
18{
19public:
20 static std::string identifier() { return "DamBreak"; }
21
22 explicit DamBreak(CFDSim& sim);
23
24 ~DamBreak() override = default;
25
27
28 void initialize_fields(int level, const amrex::Geometry& geom) override;
29
30 void post_init_actions() override {}
31
32 void post_regrid_actions() override {}
33
34 void pre_advance_work() override {}
35
36 void post_advance_work() override {}
37
38private:
39 const CFDSim& m_sim;
40
44
46 amrex::Vector<amrex::Real> m_loc{0.0_rt, 0.0_rt, 0.0_rt};
47
49 amrex::Real m_width{0.1_rt};
50
52 amrex::Real m_height{0.25_rt};
53};
54
55} // namespace amr_wind
56
57#endif /* DamBreak_H */
Definition CFDSim.H:54
~DamBreak() override=default
Field & m_velocity
Definition DamBreak.H:41
DamBreak(CFDSim &sim)
Definition DamBreak.cpp:13
void post_regrid_actions() override
Definition DamBreak.H:32
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Dam Break simulations.
Definition DamBreak.cpp:30
void pre_advance_work() override
Definition DamBreak.H:34
const CFDSim & m_sim
Definition DamBreak.H:39
amrex::Vector< amrex::Real > m_loc
Initial DamBreak location.
Definition DamBreak.H:46
Field & m_density
Definition DamBreak.H:43
amrex::Real m_height
dam height value
Definition DamBreak.H:52
Field & m_levelset
Definition DamBreak.H:42
void post_advance_work() override
Definition DamBreak.H:36
amrex::Real m_width
dam width value
Definition DamBreak.H:49
void post_init_actions() override
Definition DamBreak.H:30
static std::string identifier()
Definition DamBreak.H:20
Definition Field.H:116
This test case is intended as an evaluation of the momentum advection scheme.
Definition BCInterface.cpp:10