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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/VortexPatchScalarVel.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
VortexPatchScalarVel.H
Go to the documentation of this file.
1#ifndef VortexPatchScalarVel_H
2#define VortexPatchScalarVel_H
3
6
17
18namespace amr_wind {
19
20class VortexPatchScalarVel : public Physics::Register<VortexPatchScalarVel>
21{
22 static_assert(
23 AMREX_SPACEDIM == 3,
24 "VortexPatchScalarVel requires 3 dimensional mesh");
25
26public:
27 static std::string identifier() { return "VortexPatchScalarVel"; }
28
29 explicit VortexPatchScalarVel(CFDSim& sim);
30
31 ~VortexPatchScalarVel() override = default;
32
34
35 void initialize_fields(int level, const amrex::Geometry& geom) override;
36
37 void post_init_actions() override {}
38
39 void post_regrid_actions() override {}
40
41 void pre_advance_work() override;
42
43 void post_advance_work() override;
44
45private:
46 const CFDSim& m_sim;
47
51
53 amrex::Vector<amrex::Real> m_loc{0.35, 0.35, 0.35};
54
56 amrex::Real m_radius{0.15};
57
59 amrex::Real m_sfactor{1.0};
60
62 amrex::Real m_TT{3.0};
63};
64
65} // namespace amr_wind
66
67#endif /* VortexPatchScalarVel_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition VortexPatchScalarVel.H:21
amrex::Real m_TT
prescribed velocity period
Definition VortexPatchScalarVel.H:62
static std::string identifier()
Definition VortexPatchScalarVel.H:27
Field & m_velocity
Definition VortexPatchScalarVel.H:48
const CFDSim & m_sim
Definition VortexPatchScalarVel.H:46
void pre_advance_work() override
Definition VortexPatchScalarVel.cpp:118
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Vortex Patch simulations.
Definition VortexPatchScalarVel.cpp:28
~VortexPatchScalarVel() override=default
amrex::Real m_sfactor
smoothing factor
Definition VortexPatchScalarVel.H:59
void post_advance_work() override
Definition VortexPatchScalarVel.cpp:170
void post_init_actions() override
Definition VortexPatchScalarVel.H:37
VortexPatchScalarVel(CFDSim &sim)
Definition VortexPatchScalarVel.cpp:8
Field & m_density
Definition VortexPatchScalarVel.H:50
amrex::Vector< amrex::Real > m_loc
Initial VortexPatchScalarVel location.
Definition VortexPatchScalarVel.H:53
Field & m_levelset
Definition VortexPatchScalarVel.H:49
void post_regrid_actions() override
Definition VortexPatchScalarVel.H:39
amrex::Real m_radius
vortex patch radius value
Definition VortexPatchScalarVel.H:56
Definition BCInterface.cpp:7