ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_EWP.H
Go to the documentation of this file.
1 #ifndef ERF_EWP_H
2 #define ERF_EWP_H
3 
4 #include <AMReX_Geometry.H>
5 #include <AMReX_MultiFab.H>
6 
7 #include "ERF_NullWindFarm.H"
8 
9 class EWP : public NullWindFarm {
10 
11 public:
12 
13  EWP (){}
14 
15  virtual ~EWP () = default;
16 
17  void advance (const amrex::Geometry& geom,
18  const amrex::Real& dt_advance,
19  amrex::MultiFab& cons_in,
20  amrex::MultiFab& mf_vars_ewp,
21  amrex::MultiFab& U_old,
22  amrex::MultiFab& V_old,
23  amrex::MultiFab& W_old,
24  const amrex::MultiFab& mf_Nturb,
25  const amrex::MultiFab& mf_SMark,
26  const amrex::Real& time) override;
27 
28  void source_terms_cellcentered (const amrex::Geometry& geom,
29  const amrex::MultiFab& cons_in,
30  amrex::MultiFab& mf_vars,
31  const amrex::MultiFab& U_old,
32  const amrex::MultiFab& V_old,
33  const amrex::MultiFab& W_old,
34  const amrex::MultiFab& mf_Nturb);
35 
36  void update (const amrex::Real& dt_advance,
37  amrex::MultiFab& cons_in,
38  amrex::MultiFab& U_old,
39  amrex::MultiFab& V_old,
40  const amrex::MultiFab& mf_vars_ewp);
41 
42  void compute_power_output (const amrex::MultiFab& cons_in,
43  const amrex::MultiFab& U_old,
44  const amrex::MultiFab& V_old,
45  const amrex::MultiFab& W_old,
46  const amrex::MultiFab& mf_SMark,
47  const amrex::MultiFab& mf_Nturb,
48  const amrex::Real& time);
49 
50 protected:
51  amrex::Vector<amrex::Real> xloc, yloc;
53  amrex::Vector<amrex::Real> wind_speed, thrust_coeff, power;
54 };
55 
56 #endif
57 
Definition: ERF_EWP.H:9
amrex::Real nominal_power
Definition: ERF_EWP.H:52
amrex::Real thrust_coeff_standing
Definition: ERF_EWP.H:52
amrex::Real hub_height
Definition: ERF_EWP.H:52
amrex::Vector< amrex::Real > wind_speed
Definition: ERF_EWP.H:53
EWP()
Definition: ERF_EWP.H:13
void source_terms_cellcentered(const amrex::Geometry &geom, const amrex::MultiFab &cons_in, amrex::MultiFab &mf_vars, const amrex::MultiFab &U_old, const amrex::MultiFab &V_old, const amrex::MultiFab &W_old, const amrex::MultiFab &mf_Nturb)
Definition: ERF_AdvanceEWP.cpp:128
void advance(const amrex::Geometry &geom, const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &mf_vars_ewp, amrex::MultiFab &U_old, amrex::MultiFab &V_old, amrex::MultiFab &W_old, const amrex::MultiFab &mf_Nturb, const amrex::MultiFab &mf_SMark, const amrex::Real &time) override
Definition: ERF_AdvanceEWP.cpp:9
amrex::Vector< amrex::Real > xloc
Definition: ERF_EWP.H:51
void update(const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &U_old, amrex::MultiFab &V_old, const amrex::MultiFab &mf_vars_ewp)
Definition: ERF_AdvanceEWP.cpp:94
amrex::Vector< amrex::Real > thrust_coeff
Definition: ERF_EWP.H:53
amrex::Vector< amrex::Real > power
Definition: ERF_EWP.H:53
amrex::Real rotor_rad
Definition: ERF_EWP.H:52
virtual ~EWP()=default
amrex::Vector< amrex::Real > yloc
Definition: ERF_EWP.H:51
void compute_power_output(const amrex::MultiFab &cons_in, const amrex::MultiFab &U_old, const amrex::MultiFab &V_old, const amrex::MultiFab &W_old, const amrex::MultiFab &mf_SMark, const amrex::MultiFab &mf_Nturb, const amrex::Real &time)
Definition: ERF_AdvanceEWP.cpp:29
Definition: ERF_NullWindFarm.H:9