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

AMR-Wind API: /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/icns/source_terms/CoriolisForcing.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
CoriolisForcing.H
Go to the documentation of this file.
1#ifndef CORIOLISFORCING_H
2#define CORIOLISFORCING_H
3
6
7namespace amr_wind::pde::icns {
8
13class CoriolisForcing : public MomentumSource::Register<CoriolisForcing>
14{
15public:
16 static std::string identifier() { return "CoriolisForcing"; }
17
18 explicit CoriolisForcing(const CFDSim& /*sim*/);
19
20 ~CoriolisForcing() override;
21
22 void operator()(
23 const int lev,
24 const amrex::MFIter& mfi,
25 const amrex::Box& bx,
26 const FieldState fstate,
27 const amrex::Array4<amrex::Real>& src_term) const override;
28
29private:
31
33
35 amrex::Vector<amrex::Real> m_east{1.0, 0.0, 0.0};
36 amrex::Vector<amrex::Real> m_north{0.0, 1.0, 0.0};
37 amrex::Vector<amrex::Real> m_up{0.0, 0.0, 1.0};
39
42 amrex::Real m_latitude{0.0};
43
44 amrex::Real m_sinphi{0.0};
45 amrex::Real m_cosphi{0.0};
46
48 amrex::Real m_omega{7.3e-5};
49
51 amrex::Real m_coriolis_factor{0.0};
52
53 bool m_is_horizontal{false};
54};
55
56} // namespace amr_wind::pde::icns
57
58#endif /* CORIOLISFORCING_H */
Definition CFDSim.H:47
Definition Field.H:116
Definition CoriolisForcing.H:14
amrex::Real m_latitude
Definition CoriolisForcing.H:42
amrex::Vector< amrex::Real > m_north
Definition CoriolisForcing.H:36
bool m_is_horizontal
Definition CoriolisForcing.H:53
CoriolisForcing(const CFDSim &)
Definition CoriolisForcing.cpp:24
amrex::Real m_sinphi
Definition CoriolisForcing.H:44
const Field & m_velocity
Definition CoriolisForcing.H:30
amrex::Real m_coriolis_factor
2.0 * omega
Definition CoriolisForcing.H:51
amrex::Real m_cosphi
Definition CoriolisForcing.H:45
amrex::Vector< amrex::Real > m_east
Definition CoriolisForcing.H:35
static std::string identifier()
Definition CoriolisForcing.H:16
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 CoriolisForcing.cpp:56
amrex::Real m_omega
omega --> Earth’s rotation angular speed
Definition CoriolisForcing.H:48
amrex::Vector< amrex::Real > m_up
Definition CoriolisForcing.H:37
FieldState
Definition FieldDescTypes.H:14
Definition ABLForcing.cpp:11