FastIface Class Reference

AMR-Wind API: exw_fast::FastIface Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <FastIface.H>

Inheritance diagram for exw_fast::FastIface:
[legend]
Collaboration diagram for exw_fast::FastIface:
[legend]

Public Member Functions

 FastIface (const ::amr_wind::CFDSim &sim)
 
 ~FastIface () override
 
void parse_inputs (const amr_wind::CFDSim &, const std::string &)
 
int register_turbine (FastTurbine &data)
 
void init_turbine (const int local_id)
 
void init_solution (const int local_id)
 
void get_hub_stats (const int local_id)
 
void advance_turbine (const int local_id)
 
void save_restart (const int local_id)
 
int num_local_turbines () const
 

Static Public Member Functions

static std::string identifier ()
 

Protected Member Functions

void allocate_fast_turbines ()
 
void fast_init_turbine (FastTurbine &)
 
void fast_restart_turbine (FastTurbine &)
 
void fast_replay_turbine (FastTurbine &)
 
void prepare_netcdf_file (FastTurbine &)
 
void write_velocity_data (const FastTurbine &)
 

Static Protected Member Functions

static void read_velocity_data (FastTurbine &, const ncutils::NCFile &, const size_t tid)
 

Protected Attributes

std::map< int, int > m_turbine_map
 Global to local index lookup map.
 
std::vector< FastTurbine * > m_turbine_data
 
std::string m_output_dir {"fast_velocity_data"}
 
double m_dt_cfd {0.0}
 
double m_start_time {0.0}
 
double m_stop_time {-1.0}
 
SimMode m_sim_mode {SimMode::init}
 
int m_num_sc_inputs {0}
 
int m_num_sc_outputs {0}
 
int m_num_sc_inputs_glob {0}
 
float m_init_sc_inputs_glob {0.0}
 
float m_init_sc_inputs_turbine {0.0}
 
bool m_is_initialized {false}
 

Constructor & Destructor Documentation

◆ FastIface()

exw_fast::FastIface::FastIface ( const ::amr_wind::CFDSim & sim)
explicit

◆ ~FastIface()

exw_fast::FastIface::~FastIface ( )
override

Member Function Documentation

◆ advance_turbine()

void exw_fast::FastIface::advance_turbine ( const int local_id)

◆ allocate_fast_turbines()

void exw_fast::FastIface::allocate_fast_turbines ( )
protected

◆ fast_init_turbine()

void exw_fast::FastIface::fast_init_turbine ( FastTurbine & fi)
protected

◆ fast_replay_turbine()

void exw_fast::FastIface::fast_replay_turbine ( FastTurbine & fi)
protected

◆ fast_restart_turbine()

void exw_fast::FastIface::fast_restart_turbine ( FastTurbine & fi)
protected

◆ get_hub_stats()

void exw_fast::FastIface::get_hub_stats ( const int local_id)

◆ identifier()

static std::string exw_fast::FastIface::identifier ( )
inlinestatic

◆ init_solution()

void exw_fast::FastIface::init_solution ( const int local_id)

◆ init_turbine()

void exw_fast::FastIface::init_turbine ( const int local_id)

◆ num_local_turbines()

int exw_fast::FastIface::num_local_turbines ( ) const
inline

◆ parse_inputs()

void exw_fast::FastIface::parse_inputs ( const amr_wind::CFDSim & sim,
const std::string & inp_name )

◆ prepare_netcdf_file()

void exw_fast::FastIface::prepare_netcdf_file ( FastTurbine & )
protected

◆ read_velocity_data()

void exw_fast::FastIface::read_velocity_data ( FastTurbine & ,
const ncutils::NCFile & ,
const size_t tid )
staticprotected

◆ register_turbine()

int exw_fast::FastIface::register_turbine ( FastTurbine & data)

◆ save_restart()

void exw_fast::FastIface::save_restart ( const int local_id)

◆ write_velocity_data()

void exw_fast::FastIface::write_velocity_data ( const FastTurbine & )
protected

Member Data Documentation

◆ m_dt_cfd

double exw_fast::FastIface::m_dt_cfd {0.0}
protected

◆ m_init_sc_inputs_glob

float exw_fast::FastIface::m_init_sc_inputs_glob {0.0}
protected

◆ m_init_sc_inputs_turbine

float exw_fast::FastIface::m_init_sc_inputs_turbine {0.0}
protected

◆ m_is_initialized

bool exw_fast::FastIface::m_is_initialized {false}
protected

◆ m_num_sc_inputs

int exw_fast::FastIface::m_num_sc_inputs {0}
protected

◆ m_num_sc_inputs_glob

int exw_fast::FastIface::m_num_sc_inputs_glob {0}
protected

◆ m_num_sc_outputs

int exw_fast::FastIface::m_num_sc_outputs {0}
protected

◆ m_output_dir

std::string exw_fast::FastIface::m_output_dir {"fast_velocity_data"}
protected

◆ m_sim_mode

SimMode exw_fast::FastIface::m_sim_mode {SimMode::init}
protected

◆ m_start_time

double exw_fast::FastIface::m_start_time {0.0}
protected

◆ m_stop_time

double exw_fast::FastIface::m_stop_time {-1.0}
protected

◆ m_turbine_data

std::vector<FastTurbine*> exw_fast::FastIface::m_turbine_data
protected

◆ m_turbine_map

std::map<int, int> exw_fast::FastIface::m_turbine_map
protected

Global to local index lookup map.


The documentation for this class was generated from the following files:
  • /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/turbine/fast/FastIface.H
  • /home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/actuator/turbine/fast/FastIface.cpp