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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/VortexDipole.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
VortexDipole.H
Go to the documentation of this file.
1#ifndef VORTEX_DIPOLE_H
2#define VORTEX_DIPOLE_H
3
6
7namespace amr_wind {
12class VortexDipole : public Physics::Register<VortexDipole>
13{
14public:
15 static std::string identifier() { return "VortexDipole"; }
16
17 explicit VortexDipole(const CFDSim& sim);
18
19 ~VortexDipole() override = default;
20
21 void initialize_fields(int level, const amrex::Geometry& geom) override;
22
23 void post_init_actions() override {}
24
25 void post_regrid_actions() override {}
26
27 void pre_advance_work() override {}
28
29 void post_advance_work() override {}
30
31private:
34
36 amrex::Real m_rho{1.0};
37
39 amrex::Vector<amrex::Real> m_loc_left{-0.1, 0., 0.};
40
42 amrex::Vector<amrex::Real> m_loc_right{0.1, 0., 0.};
43
45 amrex::Real m_omegaEmag{299.5283853752};
46
48 amrex::Real m_r0{0.1};
49};
50
51} // namespace amr_wind
52
53#endif /* VORTEX_DIPOLE_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition VortexDipole.H:13
amrex::Vector< amrex::Real > m_loc_right
Initial location of the right vortex.
Definition VortexDipole.H:42
void post_init_actions() override
Definition VortexDipole.H:23
void post_regrid_actions() override
Definition VortexDipole.H:25
VortexDipole(const CFDSim &sim)
Definition VortexDipole.cpp:8
amrex::Vector< amrex::Real > m_loc_left
Initial location of the left vortex.
Definition VortexDipole.H:39
void initialize_fields(int level, const amrex::Geometry &geom) override
Definition VortexDipole.cpp:28
amrex::Real m_r0
Vortex.
Definition VortexDipole.H:48
Field & m_velocity
Definition VortexDipole.H:32
~VortexDipole() override=default
amrex::Real m_omegaEmag
Initial vorticity.
Definition VortexDipole.H:45
void pre_advance_work() override
Definition VortexDipole.H:27
amrex::Real m_rho
initial density value
Definition VortexDipole.H:36
void post_advance_work() override
Definition VortexDipole.H:29
static std::string identifier()
Definition VortexDipole.H:15
Field & m_density
Definition VortexDipole.H:33
Definition BCInterface.cpp:7