/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#include "AMReX_REAL.H"
7
8using namespace amrex::literals;
9
14
15namespace amr_wind {
16
17class VortexPatch : public Physics::Register<VortexPatch>
18{
19 static_assert(
20 AMREX_SPACEDIM == 3, "VortexPatch requires 3 dimensional mesh");
21
22public:
23 static std::string identifier() { return "VortexPatch"; }
24
25 explicit VortexPatch(CFDSim& sim);
26
27 ~VortexPatch() override = default;
28
30
31 void initialize_fields(int level, const amrex::Geometry& geom) override;
32
33 void post_init_actions() override {}
34
35 void post_regrid_actions() override {}
36
37 void pre_advance_work() override;
38
39 void post_advance_work() override;
40
41private:
42 const CFDSim& m_sim;
43
47
49 amrex::Vector<amrex::Real> m_loc{0.35_rt, 0.35_rt, 0.35_rt};
50
52 amrex::Real m_radius{0.15_rt};
53
55 amrex::Real m_TT{3.0_rt};
56};
57
58} // namespace amr_wind
59
60#endif /* VortexPatch_H */
Definition CFDSim.H:54
Definition Field.H:116
VortexPatch(CFDSim &sim)
Definition VortexPatch.cpp:11
Field & m_levelset
Definition VortexPatch.H:45
void post_advance_work() override
Definition VortexPatch.cpp:176
const CFDSim & m_sim
Definition VortexPatch.H:42
amrex::Real m_radius
vortex patch radius value
Definition VortexPatch.H:52
Field & m_velocity
Definition VortexPatch.H:44
void post_init_actions() override
Definition VortexPatch.H:33
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Vortex Patch simulations.
Definition VortexPatch.cpp:30
amrex::Real m_TT
prescribed velocity period
Definition VortexPatch.H:55
void post_regrid_actions() override
Definition VortexPatch.H:35
~VortexPatch() override=default
Field & m_density
Definition VortexPatch.H:46
void pre_advance_work() override
Definition VortexPatch.cpp:122
static std::string identifier()
Definition VortexPatch.H:23
amrex::Vector< amrex::Real > m_loc
Initial VortexPatch location.
Definition VortexPatch.H:49
This test case is intended as an evaluation of the momentum advection scheme.
Definition BCInterface.cpp:10