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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/temperature/source_terms/DragTempForcing.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
DragTempForcing.H
Go to the documentation of this file.
1#ifndef DRAGTEMPFORCING_H
2#define DRAGTEMPFORCING_H
3
6#include "amr-wind/CFDSim.H"
8
10
11class DragTempForcing : public TemperatureSource::Register<DragTempForcing>
12{
13public:
14 static std::string identifier() { return "DragTempForcing"; }
15
16 explicit DragTempForcing(const CFDSim& sim);
17
18 ~DragTempForcing() override;
19
20 void operator()(
21 const int lev,
22 const amrex::MFIter& mfi,
23 const amrex::Box& bx,
24 const FieldState /*fstate*/,
25 const amrex::Array4<amrex::Real>& src_term) const override;
26
27private:
28 const CFDSim& m_sim;
29 const amrex::AmrCore& m_mesh;
32 amrex::Real m_drag_coefficient{1.0};
33
36
38 std::unique_ptr<ScratchField> m_ref_theta;
39};
40
41} // namespace amr_wind::pde::temperature
42#endif
Definition CFDSim.H:51
Definition Field.H:116
Definition DragTempForcing.H:12
const Field & m_temperature
Definition DragTempForcing.H:31
const CFDSim & m_sim
Definition DragTempForcing.H:28
const amrex::AmrCore & m_mesh
Definition DragTempForcing.H:29
amrex::Real m_drag_coefficient
Definition DragTempForcing.H:32
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 DragTempForcing.cpp:30
std::unique_ptr< ScratchField > m_ref_theta
Reference temperature.
Definition DragTempForcing.H:38
const Field & m_velocity
Definition DragTempForcing.H:30
const transport::TransportModel & m_transport
Transport model.
Definition DragTempForcing.H:35
DragTempForcing(const CFDSim &sim)
Definition DragTempForcing.cpp:11
static std::string identifier()
Definition DragTempForcing.H:14
Definition TransportModel.H:30
FieldState
Definition FieldDescTypes.H:14
Definition ABLMesoForcingTemp.cpp:14