/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/HurricaneForcing.H Source File

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/HurricaneForcing.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
HurricaneForcing.H
Go to the documentation of this file.
1#ifndef HURRICANE_FORCING_H
2#define HURRICANE_FORCING_H
3
7
8namespace amr_wind::pde::icns {
9
21class HurricaneForcing : public MomentumSource::Register<HurricaneForcing>
22{
23public:
24 static std::string identifier() { return "HurricaneForcing"; }
25
26 explicit HurricaneForcing(const CFDSim& sim);
27
29
30 void operator()(
31 const int lev,
32 const amrex::MFIter& mfi,
33 const amrex::Box& bx,
34 const FieldState fstate,
35 const amrex::Array4<amrex::Real>& src_term) const override;
36
37 void mean_velocity_init(const VelPlaneAveraging& /*vavg*/);
38
39 void mean_velocity_update(const VelPlaneAveraging& /*vavg*/);
40
41private:
43 const amrex::AmrCore& m_mesh;
44
45 amrex::Gpu::DeviceVector<amrex::Real> m_vel_ht;
46 amrex::Gpu::DeviceVector<amrex::Real> m_vel_vals;
47
49 int m_axis{2};
50
52 amrex::Real m_V{40.0}; // V=40 m/s is the default value
53
55 amrex::Real m_dVdR{-0.0008};
56
58 amrex::Real m_Vzh{18000.};
59
61 amrex::Real m_R{40000.0}; // 40km is taken as the default value
62
64 amrex::Real m_coriolis_factor{0.0005};
65};
66
67} // namespace amr_wind::pde::icns
68
69#endif /* HURRICANE_FORCING_H */
Definition CFDSim.H:47
Definition FieldPlaneAveraging.H:140
Definition HurricaneForcing.H:22
amrex::Real m_dVdR
Gradient wind radial decay.
Definition HurricaneForcing.H:55
static std::string identifier()
Definition HurricaneForcing.H:24
amrex::Gpu::DeviceVector< amrex::Real > m_vel_vals
Definition HurricaneForcing.H:46
amrex::Real m_R
Eye-wall radial distance.
Definition HurricaneForcing.H:61
amrex::Gpu::DeviceVector< amrex::Real > m_vel_ht
Definition HurricaneForcing.H:45
HurricaneForcing(const CFDSim &sim)
Definition HurricaneForcing.cpp:14
void mean_velocity_init(const VelPlaneAveraging &)
Definition HurricaneForcing.cpp:94
amrex::Real m_Vzh
Reference gradient wind zero height in metres.
Definition HurricaneForcing.H:58
const amrex::AmrCore & m_mesh
Mesh.
Definition HurricaneForcing.H:43
amrex::Real m_coriolis_factor
Coriolis factor.
Definition HurricaneForcing.H:64
void operator()(const int lev, const amrex::MFIter &mfi, const amrex::Box &bx, const FieldState fstate, const amrex::Array4< amrex::Real > &src_term) const override
Definition HurricaneForcing.cpp:47
amrex::Real m_V
Gradient velocity.
Definition HurricaneForcing.H:52
void mean_velocity_update(const VelPlaneAveraging &)
Definition HurricaneForcing.cpp:116
int m_axis
Axis over which averages are computed.
Definition HurricaneForcing.H:49
FieldState
Definition FieldDescTypes.H:14
Definition ABLForcing.cpp:11