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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/BoussinesqBubbleFieldInit.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
BoussinesqBubbleFieldInit.H
Go to the documentation of this file.
1#ifndef BoussinesqBubbleFIELDINIT_H
2#define BoussinesqBubbleFIELDINIT_H
3
4#include "AMReX_Array.H"
5#include "AMReX_Array4.H"
6#include "AMReX_Box.H"
7#include "AMReX_Geometry.H"
8#include "AMReX_REAL.H"
9#include "AMReX_Vector.H"
10#include "AMReX_Gpu.H"
11
12namespace amr_wind {
13
17{
18 static_assert(
19 AMREX_SPACEDIM == 3, "BoussinesqBubble requires 3 dimensional mesh");
20
21public:
23
24 void operator()(
25 const amrex::Box& vbx,
26 const amrex::Geometry& geom,
27 const amrex::Array4<amrex::Real>& velocity,
28 const amrex::Array4<amrex::Real>& density,
29 const amrex::Array4<amrex::Real>& tracer) const;
30
31private:
33 amrex::Vector<amrex::Real> m_loc{0.25, 0.25, 0.5};
34
36 amrex::Real m_rho{1.0};
37
39 amrex::Real m_tracer_inner{0.0};
40
42 amrex::Real m_tracer_outer{0.01};
43
45 amrex::Real m_tracer_radius{0.1};
46};
47
48} // namespace amr_wind
49
50#endif /* BoussinesqBubbleFIELDINIT_H */
Definition BoussinesqBubbleFieldInit.H:17
amrex::Vector< amrex::Real > m_loc
Initial bubble location.
Definition BoussinesqBubbleFieldInit.H:33
amrex::Real m_rho
Initial density field.
Definition BoussinesqBubbleFieldInit.H:36
amrex::Real m_tracer_inner
tracer inner value
Definition BoussinesqBubbleFieldInit.H:39
amrex::Real m_tracer_outer
tracer outer value
Definition BoussinesqBubbleFieldInit.H:42
amrex::Real m_tracer_radius
tracer bubble radius value
Definition BoussinesqBubbleFieldInit.H:45
BoussinesqBubbleFieldInit()
Definition BoussinesqBubbleFieldInit.cpp:9
void operator()(const amrex::Box &vbx, const amrex::Geometry &geom, const amrex::Array4< amrex::Real > &velocity, const amrex::Array4< amrex::Real > &density, const amrex::Array4< amrex::Real > &tracer) const
Definition BoussinesqBubbleFieldInit.cpp:21
Definition BCInterface.cpp:7