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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/VortexPatch.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
VortexPatch.H
Go to the documentation of this file.
1#ifndef VortexPatch_H
2#define VortexPatch_H
3
6
12namespace amr_wind {
13
14class VortexPatch : public Physics::Register<VortexPatch>
15{
16 static_assert(
17 AMREX_SPACEDIM == 3, "VortexPatch requires 3 dimensional mesh");
18
19public:
20 static std::string identifier() { return "VortexPatch"; }
21
22 explicit VortexPatch(CFDSim& sim);
23
24 ~VortexPatch() 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.35, 0.35, 0.35};
47
49 amrex::Real m_radius{0.15};
50
52 amrex::Real m_TT{3.0};
53};
54
55} // namespace amr_wind
56
57#endif /* VortexPatch_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition VortexPatch.H:15
VortexPatch(CFDSim &sim)
Definition VortexPatch.cpp:8
Field & m_levelset
Definition VortexPatch.H:42
void post_advance_work() override
Definition VortexPatch.cpp:156
const CFDSim & m_sim
Definition VortexPatch.H:39
amrex::Real m_radius
vortex patch radius value
Definition VortexPatch.H:49
Field & m_velocity
Definition VortexPatch.H:41
void post_init_actions() override
Definition VortexPatch.H:30
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Vortex Patch simulations.
Definition VortexPatch.cpp:27
amrex::Real m_TT
prescribed velocity period
Definition VortexPatch.H:52
void post_regrid_actions() override
Definition VortexPatch.H:32
~VortexPatch() override=default
Field & m_density
Definition VortexPatch.H:43
void pre_advance_work() override
Definition VortexPatch.cpp:107
static std::string identifier()
Definition VortexPatch.H:20
amrex::Vector< amrex::Real > m_loc
Initial VortexPatch location.
Definition VortexPatch.H:46
Definition BCInterface.cpp:7