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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/temperature/source_terms/BodyForce.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
BodyForce.H
Go to the documentation of this file.
1#ifndef BODYFORCE_H
2#define BODYFORCE_H
3
6#include <AMReX_GpuContainers.H>
7#include <AMReX_REAL.H>
8#include <AMReX_Vector.H>
9#include <cstddef>
10
12
13class BodyForce : public TemperatureSource::Register<BodyForce>
14{
15
16public:
17 static std::string identifier() { return "BodyForce"; }
18
19 explicit BodyForce(const CFDSim& /*sim*/);
20
21 ~BodyForce() override;
22
23 void operator()(
24 const int lev,
25 const amrex::MFIter& /*mfi*/,
26 const amrex::Box& bx,
27 const FieldState /*fstate*/,
28 const amrex::Array4<amrex::Real>& src_term) const override;
29
30 void read_bforce_profile(const std::string& filename);
31
32private:
34 const amrex::AmrCore& m_mesh;
35
36 std::string m_type{"height_varying"};
37 std::string m_bforce_file;
39
40 amrex::Gpu::DeviceVector<amrex::Real> m_prof_theta;
41 amrex::Gpu::DeviceVector<amrex::Real> m_ht;
42};
43
44} // namespace amr_wind::pde::temperature
45
46#endif
Definition CFDSim.H:47
Definition SimTime.H:30
Definition BodyForce.H:14
amrex::Gpu::DeviceVector< amrex::Real > m_ht
Definition BodyForce.H:41
const SimTime & m_time
Definition BodyForce.H:33
size_t m_bforce_profile_nhts
Definition BodyForce.H:38
std::string m_bforce_file
Definition BodyForce.H:37
void read_bforce_profile(const std::string &filename)
Definition BodyForce.cpp:38
std::string m_type
Definition BodyForce.H:36
const amrex::AmrCore & m_mesh
Definition BodyForce.H:34
amrex::Gpu::DeviceVector< amrex::Real > m_prof_theta
Definition BodyForce.H:40
static std::string identifier()
Definition BodyForce.H:17
BodyForce(const CFDSim &)
Definition BodyForce.cpp:20
void operator()(const int lev, const amrex::MFIter &, const amrex::Box &bx, const FieldState, const amrex::Array4< amrex::Real > &src_term) const override
Definition BodyForce.cpp:66
FieldState
Definition FieldDescTypes.H:14
Definition ABLMesoForcingTemp.cpp:14