/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/temperature/source_terms/TempSpongeForcing.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/temperature/source_terms/TempSpongeForcing.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
TempSpongeForcing.H
Go to the documentation of this file.
1#ifndef TEMPSPONGEFORCING_H
2#define TEMPSPONGEFORCING_H
3
6#include "amr-wind/CFDSim.H"
7
9
10class TempSpongeForcing : public TemperatureSource::Register<TempSpongeForcing>
11{
12public:
13 static std::string identifier() { return "TempSpongeForcing"; }
14
15 explicit TempSpongeForcing(const CFDSim& sim);
16
18
19 void operator()(
20 const int lev,
21 const amrex::MFIter& mfi,
22 const amrex::Box& bx,
23 const FieldState /*fstate*/,
24 const amrex::Array4<amrex::Real>& src_term) const override;
25
26private:
27 const amrex::AmrCore& m_mesh;
29 amrex::Vector<amrex::Real> m_theta_heights;
30 amrex::Vector<amrex::Real> m_theta_values;
31 amrex::Gpu::DeviceVector<amrex::Real> m_theta_heights_d;
32 amrex::Gpu::DeviceVector<amrex::Real> m_theta_values_d;
33 amrex::Real m_sponge_start{600};
34};
35
36} // namespace amr_wind::pde::temperature
37#endif
Definition CFDSim.H:51
Definition Field.H:116
Definition TempSpongeForcing.H:11
static std::string identifier()
Definition TempSpongeForcing.H:13
amrex::Gpu::DeviceVector< amrex::Real > m_theta_values_d
Definition TempSpongeForcing.H:32
amrex::Vector< amrex::Real > m_theta_heights
Definition TempSpongeForcing.H:29
amrex::Real m_sponge_start
Definition TempSpongeForcing.H:33
amrex::Vector< amrex::Real > m_theta_values
Definition TempSpongeForcing.H:30
amrex::Gpu::DeviceVector< amrex::Real > m_theta_heights_d
Definition TempSpongeForcing.H:31
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState, const amrex::Array4< amrex::Real > &src_term) const override
Definition TempSpongeForcing.cpp:34
const Field & m_temperature
Definition TempSpongeForcing.H:28
const amrex::AmrCore & m_mesh
Definition TempSpongeForcing.H:27
TempSpongeForcing(const CFDSim &sim)
Definition TempSpongeForcing.cpp:12
FieldState
Definition FieldDescTypes.H:14
Definition ABLMesoForcingTemp.cpp:14