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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/boundary_conditions/wall_models/ShearStressSimple.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
ShearStressSimple.H
Go to the documentation of this file.
1#ifndef SHEARSTRESSSIMPLE_H
2#define SHEARSTRESSSIMPLE_H
3
6
7namespace amr_wind {
8
10{
12 : utau2(ll.utau_mean * ll.utau_mean), wspd_mean(ll.wspd_mean), m_ll(ll)
13 {}
14
15 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real
16 get_shear(amrex::Real u, amrex::Real /* wspd */) const
17 {
18 return u / wspd_mean * utau2;
19 };
20
21 amrex::Real utau2;
22 amrex::Real wspd_mean;
24};
26{
27 explicit SimpleShearLogLaw(const amr_wind::LogLaw& ll) : m_ll(ll) {}
28
29 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real
30 get_shear(amrex::Real u, amrex::Real wspd) const
31 {
32 amrex::Real utau = m_ll.get_utau(wspd);
33 return utau * utau * u / wspd;
34 };
35
37};
38} // namespace amr_wind
39
40#endif /* SHEARSTRESSSIMPLE_H */
Definition BCInterface.cpp:7
Definition LogLaw.H:8
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real get_utau(amrex::Real wspd) const
Definition LogLaw.H:33
Definition ShearStressSimple.H:26
SimpleShearLogLaw(const amr_wind::LogLaw &ll)
Definition ShearStressSimple.H:27
const amr_wind::LogLaw m_ll
Definition ShearStressSimple.H:36
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real get_shear(amrex::Real u, amrex::Real wspd) const
Definition ShearStressSimple.H:30
Definition ShearStressSimple.H:10
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real get_shear(amrex::Real u, amrex::Real) const
Definition ShearStressSimple.H:16
amrex::Real wspd_mean
Definition ShearStressSimple.H:22
const amr_wind::LogLaw m_ll
Definition ShearStressSimple.H:23
SimpleShearSchumann(const amr_wind::LogLaw &ll)
Definition ShearStressSimple.H:11
amrex::Real utau2
Definition ShearStressSimple.H:21