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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/multiphase/ZalesakDisk.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ZalesakDisk.H
Go to the documentation of this file.
1#ifndef ZalesakDisk_H
2#define ZalesakDisk_H
3
6
12namespace amr_wind {
13
14class ZalesakDisk : public Physics::Register<ZalesakDisk>
15{
16
17 static_assert(
18 AMREX_SPACEDIM == 3, "ZalesakDisk requires 3 dimensional mesh");
19
20public:
21 static std::string identifier() { return "ZalesakDisk"; }
22
23 explicit ZalesakDisk(CFDSim& sim);
24
25 ~ZalesakDisk() override = default;
26
28
29 void initialize_fields(int level, const amrex::Geometry& geom) override;
30
31 void post_init_actions() override {}
32
33 void post_regrid_actions() override {}
34
35 void pre_advance_work() override;
36
37 void post_advance_work() override;
38
39private:
40 const CFDSim& m_sim;
41
45
47 amrex::Vector<amrex::Real> m_loc{0.5, 0.72, 0.24};
48
50 amrex::Real m_radius{0.16};
51
53 amrex::Real m_halfwidth{0.04};
54
56 amrex::Real m_depth{0.2};
57
59 amrex::Real m_TT{6.0};
60};
61
62} // namespace amr_wind
63
64#endif /* ZalesakDisk_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition ZalesakDisk.H:15
amrex::Real m_radius
sphere radius value
Definition ZalesakDisk.H:50
amrex::Real m_halfwidth
slot half width value
Definition ZalesakDisk.H:53
void post_init_actions() override
Definition ZalesakDisk.H:31
const CFDSim & m_sim
Definition ZalesakDisk.H:40
void pre_advance_work() override
Definition ZalesakDisk.cpp:135
void post_advance_work() override
Definition ZalesakDisk.cpp:170
Field & m_levelset
Definition ZalesakDisk.H:43
Field & m_density
Definition ZalesakDisk.H:44
ZalesakDisk(CFDSim &sim)
Definition ZalesakDisk.cpp:10
void post_regrid_actions() override
Definition ZalesakDisk.H:33
amrex::Real m_TT
prescribed velocity period
Definition ZalesakDisk.H:59
amrex::Vector< amrex::Real > m_loc
Initial ZalesakDisk location.
Definition ZalesakDisk.H:47
amrex::Real m_depth
slot depth
Definition ZalesakDisk.H:56
Field & m_velocity
Definition ZalesakDisk.H:42
static std::string identifier()
Definition ZalesakDisk.H:21
~ZalesakDisk() override=default
void initialize_fields(int level, const amrex::Geometry &geom) override
Initialize the levelset and velocity fields for Vortex Patch simulations.
Definition ZalesakDisk.cpp:29
Definition BCInterface.cpp:7