ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_SimpleAD.H>
Public Member Functions | |
SimpleAD () | |
virtual | ~SimpleAD ()=default |
void | advance (const amrex::Geometry &geom, const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &mf_vars_windfarm, 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 |
void | compute_freestream_velocity (const amrex::MultiFab &cons_in, const amrex::MultiFab &U_old, const amrex::MultiFab &V_old, const amrex::MultiFab &mf_SMark) |
void | source_terms_cellcentered (const amrex::Geometry &geom, const amrex::MultiFab &cons_in, const amrex::MultiFab &mf_Smark, amrex::MultiFab &mf_vars_simpleAD) |
void | update (const amrex::Real &dt_advance, amrex::MultiFab &cons_in, amrex::MultiFab &U_old, amrex::MultiFab &V_old, const amrex::MultiFab &mf_vars) |
void | compute_power_output (const amrex::Real &time) |
Public Member Functions inherited from NullWindFarm | |
NullWindFarm () | |
virtual | ~NullWindFarm ()=default |
virtual void | set_turb_spec (const amrex::Real &rotor_rad, const amrex::Real &hub_height, const amrex::Real &thrust_coeff_standing, const amrex::Vector< amrex::Real > &wind_speed, const amrex::Vector< amrex::Real > &thrust_coeff, const amrex::Vector< amrex::Real > &power) |
virtual void | set_turb_loc (const amrex::Vector< amrex::Real > &xloc, const amrex::Vector< amrex::Real > &yloc) |
virtual void | set_turb_disk_angle (const amrex::Real &turb_disk_angle) |
virtual void | set_blade_spec (const amrex::Vector< amrex::Real > &bld_rad_loc, const amrex::Vector< amrex::Real > &bld_twist, const amrex::Vector< amrex::Real > &bld_chord) |
virtual void | set_blade_airfoil_spec (const amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_aoa, const amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_Cl, const amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_Cd) |
virtual void | set_turb_spec_extra (const amrex::Vector< amrex::Real > &velocity, const amrex::Vector< amrex::Real > &C_P, const amrex::Vector< amrex::Real > &C_T, const amrex::Vector< amrex::Real > &rotor_RPM, const amrex::Vector< amrex::Real > &blade_pitch) |
void | get_turb_spec (amrex::Real &rotor_rad, amrex::Real &hub_height, amrex::Real &thrust_coeff_standing, amrex::Vector< amrex::Real > &wind_speed, amrex::Vector< amrex::Real > &thrust_coeff, amrex::Vector< amrex::Real > &power) |
void | get_turb_loc (amrex::Vector< amrex::Real > &xloc, amrex::Vector< amrex::Real > &yloc) |
void | get_turb_disk_angle (amrex::Real &turb_disk_angle) |
void | get_blade_spec (amrex::Vector< amrex::Real > &bld_rad_loc, amrex::Vector< amrex::Real > &bld_twist, amrex::Vector< amrex::Real > &bld_chord) |
void | get_blade_airfoil_spec (amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_aoa, amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_Cl, amrex::Vector< amrex::Vector< amrex::Real >> &bld_airfoil_Cd) |
void | get_turb_spec_extra (amrex::Vector< amrex::Real > &velocity, amrex::Vector< amrex::Real > &C_P, amrex::Vector< amrex::Real > &C_T, amrex::Vector< amrex::Real > &rotor_RPM, amrex::Vector< amrex::Real > &blade_pitch) |
Protected Attributes | |
amrex::Vector< amrex::Real > | xloc |
amrex::Vector< amrex::Real > | yloc |
amrex::Real | turb_disk_angle |
amrex::Real | hub_height |
amrex::Real | rotor_rad |
amrex::Real | thrust_coeff_standing |
amrex::Real | nominal_power |
amrex::Vector< amrex::Real > | wind_speed |
amrex::Vector< amrex::Real > | thrust_coeff |
amrex::Vector< amrex::Real > | power |
amrex::Vector< amrex::Real > | freestream_velocity |
amrex::Vector< amrex::Real > | freestream_phi |
amrex::Vector< amrex::Real > | disk_cell_count |
Protected Attributes inherited from NullWindFarm | |
amrex::Vector< amrex::Real > | m_xloc |
amrex::Vector< amrex::Real > | m_yloc |
amrex::Real | m_turb_disk_angle |
amrex::Real | m_hub_height |
amrex::Real | m_rotor_rad |
amrex::Real | m_thrust_coeff_standing |
amrex::Real | m_nominal_power |
amrex::Vector< amrex::Real > | m_wind_speed |
amrex::Vector< amrex::Real > | m_thrust_coeff |
amrex::Vector< amrex::Real > | m_power |
amrex::Vector< amrex::Real > | m_bld_rad_loc |
amrex::Vector< amrex::Real > | m_bld_twist |
amrex::Vector< amrex::Real > | m_bld_chord |
amrex::Vector< amrex::Vector< amrex::Real > > | m_bld_airfoil_aoa |
amrex::Vector< amrex::Vector< amrex::Real > > | m_bld_airfoil_Cl |
amrex::Vector< amrex::Vector< amrex::Real > > | m_bld_airfoil_Cd |
amrex::Vector< amrex::Real > | m_velocity |
amrex::Vector< amrex::Real > | m_C_P |
amrex::Vector< amrex::Real > | m_C_T |
amrex::Vector< amrex::Real > | m_rotor_RPM |
amrex::Vector< amrex::Real > | m_blade_pitch |
Additional Inherited Members | |
Static Public Member Functions inherited from NullWindFarm | |
static AMREX_GPU_DEVICE bool | find_if_marked (amrex::Real x1, amrex::Real x2, amrex::Real y1, amrex::Real y2, amrex::Real x0, amrex::Real y0, amrex::Real nx, amrex::Real ny, amrex::Real d_hub_height, amrex::Real d_rotor_rad, amrex::Real z) |
|
virtualdefault |
|
overridevirtual |
Implements NullWindFarm.
void SimpleAD::compute_freestream_velocity | ( | const amrex::MultiFab & | cons_in, |
const amrex::MultiFab & | U_old, | ||
const amrex::MultiFab & | V_old, | ||
const amrex::MultiFab & | mf_SMark | ||
) |
void SimpleAD::compute_power_output | ( | const amrex::Real & | time | ) |
void SimpleAD::source_terms_cellcentered | ( | const amrex::Geometry & | geom, |
const amrex::MultiFab & | cons_in, | ||
const amrex::MultiFab & | mf_Smark, | ||
amrex::MultiFab & | mf_vars_simpleAD | ||
) |
void SimpleAD::update | ( | const amrex::Real & | dt_advance, |
amrex::MultiFab & | cons_in, | ||
amrex::MultiFab & | U_old, | ||
amrex::MultiFab & | V_old, | ||
const amrex::MultiFab & | mf_vars | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |