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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/physics/TerrainDrag.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
TerrainDrag.H
Go to the documentation of this file.
1#ifndef TerrainDrag_H
2#define TerrainDrag_H
3
6#include "amr-wind/CFDSim.H"
7
8namespace amr_wind::terraindrag {
9
10namespace {} // namespace
11
16class TerrainDrag : public Physics::Register<TerrainDrag>
17{
18public:
19 static std::string identifier() { return "TerrainDrag"; }
20
21 explicit TerrainDrag(CFDSim& sim);
22
23 ~TerrainDrag() override = default;
24
25 void initialize_fields(int level, const amrex::Geometry& geom) override;
26
27 void pre_init_actions() override {}
28
29 void post_init_actions() override {}
30
31 void post_regrid_actions() override;
32
33 void pre_advance_work() override {}
34
35 void post_advance_work() override {}
36
37private:
40 const amrex::AmrCore& m_mesh;
41
46
48 std::string m_terrain_file{"terrain.amrwind"};
49
51 std::string m_roughness_file{"terrain.roughness"};
52
56};
57} // namespace amr_wind::terraindrag
58
59#endif
Definition CFDSim.H:47
Definition Field.H:116
Definition FieldRepo.H:86
Definition IntField.H:20
Definition TerrainDrag.H:17
Field & m_terrainz0
Roughness fields.
Definition TerrainDrag.H:54
std::string m_terrain_file
Terrain file.
Definition TerrainDrag.H:48
void post_regrid_actions() override
Definition TerrainDrag.cpp:143
Field & m_terrain_height
Definition TerrainDrag.H:55
static std::string identifier()
Definition TerrainDrag.H:19
IntField & m_terrain_drag
Terrain drag force term.
Definition TerrainDrag.H:45
IntField & m_terrain_blank
Blanking field for terrain or buildings.
Definition TerrainDrag.H:43
const amrex::AmrCore & m_mesh
Definition TerrainDrag.H:40
void pre_init_actions() override
Definition TerrainDrag.H:27
void pre_advance_work() override
Definition TerrainDrag.H:33
void post_advance_work() override
Definition TerrainDrag.H:35
const FieldRepo & m_repo
Definition TerrainDrag.H:39
TerrainDrag(CFDSim &sim)
Definition TerrainDrag.cpp:16
void initialize_fields(int level, const amrex::Geometry &geom) override
Definition TerrainDrag.cpp:40
void post_init_actions() override
Definition TerrainDrag.H:29
CFDSim & m_sim
Definition TerrainDrag.H:38
std::string m_roughness_file
Roughness file.
Definition TerrainDrag.H:51
Definition TerrainDrag.cpp:12