/home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/wall_models/WallFunction.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/wall_models/WallFunction.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
WallFunction.H
Go to the documentation of this file.
1#ifndef WALLFUNCTION_H
2#define WALLFUNCTION_H
3
4#include "amr-wind/CFDSim.H"
8
9namespace amr_wind {
10
19{
20public:
21 explicit WallFunction(CFDSim& sim);
22
23 amrex::Real utau() const { return m_log_law.utau_mean; }
24 LogLaw log_law() const { return m_log_law; }
25
27 void update_umean();
28 void update_utau_mean();
29
30 ~WallFunction() = default;
31
32private:
33 const CFDSim& m_sim;
34
35 const amrex::AmrCore& m_mesh;
36
39 int m_direction{2};
41};
42
49{
50public:
51 VelWallFunc(Field& velocity, WallFunction& wall_func);
52
53 void operator()(Field& velocity, const FieldState rho_state) override;
54
55 static void wall_model(
56 Field& velocity, const FieldState rho_state, const amrex::Real utau);
57
58 template <typename ShearStressSimple>
59 static void wall_model(
60 Field& velocity,
61 const FieldState rho_state,
62 const ShearStressSimple& tau);
63
64private:
66 std::string m_wall_shear_stress_type{"constant"};
67};
68} // namespace amr_wind
69
70#endif /* WALLFUNCTION_H */
Definition CFDSim.H:47
Definition FieldBCOps.H:32
Definition Field.H:116
Definition FieldPlaneAveragingFine.H:114
Definition WallFunction.H:49
std::string m_wall_shear_stress_type
Definition WallFunction.H:66
WallFunction & m_wall_func
Definition WallFunction.H:65
void operator()(Field &velocity, const FieldState rho_state) override
Definition WallFunction.cpp:228
VelWallFunc(Field &velocity, WallFunction &wall_func)
Definition WallFunction.cpp:49
Definition WallFunction.H:19
LogLaw log_law() const
Definition WallFunction.H:24
WallFunction(CFDSim &sim)
Definition WallFunction.cpp:15
amrex::Real utau() const
Definition WallFunction.H:23
int m_direction
Direction normal to wall, hardcoded to z.
Definition WallFunction.H:39
VelPlaneAveragingFine m_pa_vel
Definition WallFunction.H:40
const CFDSim & m_sim
Definition WallFunction.H:33
LogLaw m_log_law
LogLaw instance.
Definition WallFunction.H:38
const amrex::AmrCore & m_mesh
Definition WallFunction.H:35
void update_umean()
Update the mean velocity at a given timestep.
Definition WallFunction.cpp:244
void update_utau_mean()
Definition WallFunction.cpp:251
FieldState
Definition FieldDescTypes.H:14
@ wall_model
Definition BCInterface.cpp:7
Definition LogLaw.H:8
amrex::Real utau_mean
Definition LogLaw.H:27