/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/RayleighDamping.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/RayleighDamping.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
RayleighDamping.H
Go to the documentation of this file.
1#ifndef RAYLEIGH_DAMPING_H
2#define RAYLEIGH_DAMPING_H
3
6
7namespace amr_wind::pde::icns {
8
16class RayleighDamping : public MomentumSource::Register<RayleighDamping>
17{
18public:
19 static std::string identifier() { return "RayleighDamping"; }
20
21 explicit RayleighDamping(const CFDSim& /*sim*/);
22
23 ~RayleighDamping() override;
24
25 void operator()(
26 const int lev,
27 const amrex::MFIter& mfi,
28 const amrex::Box& bx,
29 const FieldState fstate,
30 const amrex::Array4<amrex::Real>& src_term) const override;
31
32private:
33 const amrex::AmrCore& m_mesh;
34
36
38 amrex::Vector<amrex::Real> m_ref_vel{15.0, 0.0, 0.0};
39
41 amrex::Real m_dRD{500.};
42
44 amrex::Real m_dFull{300.};
45
47 amrex::Real m_tau{5.0};
48
50 amrex::Vector<int> m_fcoord{1, 1, 1};
51};
52
53} // namespace amr_wind::pde::icns
54
55#endif
Definition CFDSim.H:47
Definition Field.H:116
Definition RayleighDamping.H:17
static std::string identifier()
Definition RayleighDamping.H:19
amrex::Real m_tau
Time scale defined by the user.
Definition RayleighDamping.H:47
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &src_term) const override
Definition RayleighDamping.cpp:32
amrex::Real m_dFull
Damping length.
Definition RayleighDamping.H:44
amrex::Vector< amrex::Real > m_ref_vel
Reference velocity defined as an input.
Definition RayleighDamping.H:38
const Field & m_velocity
Definition RayleighDamping.H:35
amrex::Real m_dRD
Full length of the damping layer.
Definition RayleighDamping.H:41
amrex::Vector< int > m_fcoord
Which coordinate directions are forced.
Definition RayleighDamping.H:50
const amrex::AmrCore & m_mesh
Definition RayleighDamping.H:33
RayleighDamping(const CFDSim &)
Definition RayleighDamping.cpp:10
FieldState
Definition FieldDescTypes.H:14
Definition ABLForcing.cpp:11