TurbineController Class Reference

Kynema API: kynema::util::TurbineController Class Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema::util::TurbineController Class Reference

#include <turbine_controller.hpp>

Public Member Functions

 TurbineController (std::string shared_lib_path, std::string controller_function_name, std::string input_file_path, std::string output_file_path, double initial_yaw_angle=0.0, bool yaw_control_enabled=false)
 Constructor for the TurbineController class.
 
void CallController ()
 Method to call the controller function from the shared library.
 
double YawAngleCommand () const
 Get the commanded yaw angle (rad) integrated from yaw rate command.
 

Public Attributes

ControllerIO io
 Pointer to structure mapping swap array -> named fields i.e. ControllerIO.
 

Detailed Description

A turbine controller class that works as a wrapper around the shared library containing the controller logic

Constructor & Destructor Documentation

◆ TurbineController()

kynema::util::TurbineController::TurbineController ( std::string  shared_lib_path,
std::string  controller_function_name,
std::string  input_file_path,
std::string  output_file_path,
double  initial_yaw_angle = 0.0,
bool  yaw_control_enabled = false 
)

Constructor for the TurbineController class.

Parameters
shared_lib_pathPath to the shared library containing the controller function
controller_function_nameName of the controller function in the shared library
input_file_pathPath to the input file
output_file_pathPath to the output file
initial_yaw_angleInitial yaw angle (rad)
yaw_control_enabledFlag to enable yaw control

Member Function Documentation

◆ CallController()

void kynema::util::TurbineController::CallController ( )

Method to call the controller function from the shared library.

◆ YawAngleCommand()

double kynema::util::TurbineController::YawAngleCommand ( ) const
inline

Get the commanded yaw angle (rad) integrated from yaw rate command.

Member Data Documentation

◆ io

ControllerIO kynema::util::TurbineController::io

Pointer to structure mapping swap array -> named fields i.e. ControllerIO.


The documentation for this class was generated from the following files: