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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/RainDrop.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
RainDrop.H
Go to the documentation of this file.
1#ifndef RainDrop_H
2#define RainDrop_H
3
6
12namespace amr_wind {
13
14class RainDrop : public Physics::Register<RainDrop>
15{
16 static_assert(AMREX_SPACEDIM == 3, "RainDrop requires 3 dimensional mesh");
17
18public:
19 static std::string identifier() { return "RainDrop"; }
20
21 explicit RainDrop(CFDSim& sim);
22
23 ~RainDrop() override = default;
24
26
27 void initialize_fields(int level, const amrex::Geometry& geom) override;
28
29 void post_init_actions() override {}
30
31 void post_regrid_actions() override {}
32
33 void pre_advance_work() override {}
34
35 void post_advance_work() override {}
36
37private:
40
43
45 amrex::Vector<amrex::Real> m_loc{0.006, 0.006, 0.006};
46
48 amrex::Vector<amrex::Real> m_vel{0.0, 0.0, 0.0};
49
51 amrex::Real m_radius{0.003};
52};
53
54} // namespace amr_wind
55
56#endif /* RainDrop_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition RainDrop.H:15
amrex::Vector< amrex::Real > m_vel
Initial Rain Drop velocity.
Definition RainDrop.H:48
amrex::Real m_radius
Raindrop radius value.
Definition RainDrop.H:51
amrex::Vector< amrex::Real > m_loc
Initial Rain Drop location.
Definition RainDrop.H:45
void post_regrid_actions() override
Definition RainDrop.H:31
CFDSim & m_sim
Not const because calculation of VOF takes place during initialize.
Definition RainDrop.H:42
void post_init_actions() override
Definition RainDrop.H:29
void post_advance_work() override
Definition RainDrop.H:35
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Rain Drop simulations.
Definition RainDrop.cpp:24
~RainDrop() override=default
RainDrop(CFDSim &sim)
Definition RainDrop.cpp:8
static std::string identifier()
Definition RainDrop.H:19
Field & m_velocity
Definition RainDrop.H:38
Field & m_levelset
Definition RainDrop.H:39
void pre_advance_work() override
Definition RainDrop.H:33
Definition BCInterface.cpp:7