/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"
9
10namespace amr_wind {
11
20{
21public:
22 explicit WallFunction(CFDSim& sim);
23
24 amrex::Real utau() const { return m_log_law.utau_mean; }
25 LogLaw log_law() const { return m_log_law; }
26 MOSD mosd() const { return m_mosd; }
27
29 void update_umean();
30 void update_utau_mean();
31 void update_time();
32
33 ~WallFunction() = default;
34
35private:
36 const CFDSim& m_sim;
37
38 const amrex::AmrCore& m_mesh;
39
42 int m_direction{2};
44
46};
47
54{
55public:
56 VelWallFunc(Field& velocity, WallFunction& wall_func);
57
58 void operator()(Field& velocity, const FieldState rho_state) override;
59
60 static void wall_model(
61 Field& velocity, const FieldState rho_state, const amrex::Real utau);
62
63 template <typename ShearStressSimple>
64 static void wall_model(
65 Field& velocity,
66 const FieldState rho_state,
67 const ShearStressSimple& tau);
68
69private:
71 std::string m_wall_shear_stress_type{"constant"};
72};
73} // namespace amr_wind
74
75#endif /* WALLFUNCTION_H */
Definition CFDSim.H:47
Definition FieldBCOps.H:32
Definition Field.H:116
Definition FieldPlaneAveragingFine.H:114
Definition WallFunction.H:54
std::string m_wall_shear_stress_type
Definition WallFunction.H:71
WallFunction & m_wall_func
Definition WallFunction.H:70
void operator()(Field &velocity, const FieldState rho_state) override
Definition WallFunction.cpp:302
VelWallFunc(Field &velocity, WallFunction &wall_func)
Definition WallFunction.cpp:57
Definition WallFunction.H:20
MOSD m_mosd
Definition WallFunction.H:45
LogLaw log_law() const
Definition WallFunction.H:25
WallFunction(CFDSim &sim)
Definition WallFunction.cpp:15
amrex::Real utau() const
Definition WallFunction.H:24
int m_direction
Direction normal to wall, hardcoded to z.
Definition WallFunction.H:42
void update_time()
Definition WallFunction.cpp:333
VelPlaneAveragingFine m_pa_vel
Definition WallFunction.H:43
const CFDSim & m_sim
Definition WallFunction.H:36
MOSD mosd() const
Definition WallFunction.H:26
LogLaw m_log_law
LogLaw instance.
Definition WallFunction.H:41
const amrex::AmrCore & m_mesh
Definition WallFunction.H:38
void update_umean()
Update the mean velocity at a given timestep.
Definition WallFunction.cpp:324
void update_utau_mean()
Definition WallFunction.cpp:331
FieldState
Definition FieldDescTypes.H:14
@ wall_model
Definition BCInterface.cpp:7
Definition LogLaw.H:8
amrex::Real utau_mean
Definition LogLaw.H:27
Definition MOSD.H:8