ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Fitch.H
Go to the documentation of this file.
1 #ifndef ERF_FITCH_H
2 #define ERF_FITCH_H
3 
4 #include <AMReX_Geometry.H>
5 #include <AMReX_MultiFab.H>
6 
7 #include "ERF_NullWindFarm.H"
8 
9 class Fitch : public NullWindFarm {
10 
11 public:
12 
13  Fitch () {}
14 
15  virtual ~Fitch () = 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_fitch,
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_ewp,
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, amrex::MultiFab& V_old,
39  const amrex::MultiFab& mf_vars_fitch);
40 
41  void compute_power_output (const amrex::MultiFab& cons_in,
42  const amrex::MultiFab& U_old,
43  const amrex::MultiFab& V_old,
44  const amrex::MultiFab& mf_SMark,
45  const amrex::MultiFab& mf_Nturb,
46  const amrex::Real& time);
47 
48 protected:
49  amrex::Vector<amrex::Real> hub_height_velocity;
50  amrex::Vector<amrex::Real> xloc, yloc;
52  amrex::Vector<amrex::Real> wind_speed, thrust_coeff, power;
53 };
54 
55 #endif
56 
Definition: ERF_Fitch.H:9
void update(const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &U_old, amrex::MultiFab &V_old, const amrex::MultiFab &mf_vars_fitch)
Definition: ERF_AdvanceFitch.cpp:68
void compute_power_output(const amrex::MultiFab &cons_in, const amrex::MultiFab &U_old, const amrex::MultiFab &V_old, const amrex::MultiFab &mf_SMark, const amrex::MultiFab &mf_Nturb, const amrex::Real &time)
Definition: ERF_AdvanceFitch.cpp:102
amrex::Vector< amrex::Real > yloc
Definition: ERF_Fitch.H:50
Fitch()
Definition: ERF_Fitch.H:13
amrex::Vector< amrex::Real > xloc
Definition: ERF_Fitch.H:50
amrex::Vector< amrex::Real > thrust_coeff
Definition: ERF_Fitch.H:52
amrex::Vector< amrex::Real > power
Definition: ERF_Fitch.H:52
void advance(const amrex::Geometry &geom, const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &mf_vars_fitch, 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_AdvanceFitch.cpp:48
void source_terms_cellcentered(const amrex::Geometry &geom, const amrex::MultiFab &cons_in, amrex::MultiFab &mf_vars_ewp, const amrex::MultiFab &U_old, const amrex::MultiFab &V_old, const amrex::MultiFab &W_old, const amrex::MultiFab &mf_Nturb)
Definition: ERF_AdvanceFitch.cpp:163
amrex::Real rotor_rad
Definition: ERF_Fitch.H:51
amrex::Real thrust_coeff_standing
Definition: ERF_Fitch.H:51
amrex::Real hub_height
Definition: ERF_Fitch.H:51
amrex::Vector< amrex::Real > wind_speed
Definition: ERF_Fitch.H:52
amrex::Vector< amrex::Real > hub_height_velocity
Definition: ERF_Fitch.H:49
virtual ~Fitch()=default
amrex::Real nominal_power
Definition: ERF_Fitch.H:51
Definition: ERF_NullWindFarm.H:9