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, amrex::MultiFab& V_old,
39  const amrex::MultiFab& mf_vars_ewp);
40 
41 protected:
42  amrex::Vector<amrex::Real> xloc, yloc;
44  amrex::Vector<amrex::Real> wind_speed, thrust_coeff, power;
45 };
46 
47 #endif
48 
Definition: ERF_EWP.H:9
amrex::Real nominal_power
Definition: ERF_EWP.H:43
amrex::Real thrust_coeff_standing
Definition: ERF_EWP.H:43
amrex::Real hub_height
Definition: ERF_EWP.H:43
amrex::Vector< amrex::Real > wind_speed
Definition: ERF_EWP.H:44
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:62
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:42
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:28
amrex::Vector< amrex::Real > thrust_coeff
Definition: ERF_EWP.H:44
amrex::Vector< amrex::Real > power
Definition: ERF_EWP.H:44
amrex::Real rotor_rad
Definition: ERF_EWP.H:43
virtual ~EWP()=default
amrex::Vector< amrex::Real > yloc
Definition: ERF_EWP.H:42
Definition: ERF_NullWindFarm.H:9