/home/runner/work/kynema/kynema/kynema/src/interfaces/components/controller_input.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/interfaces/components/controller_input.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
controller_input.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6
16 std::string shared_lib_path;
17 std::string function_name;
18 std::string input_file_path;
19 std::string simulation_name;
20 bool yaw_control_enabled{false};
21
23 ControllerInput() = default;
24
33 std::string lib_path, std::string func_name = "DISCON", std::string inp_file_path = "",
34 std::string sim_name = ""
35 )
36 : shared_lib_path(std::move(lib_path)),
37 function_name(std::move(func_name)),
38 input_file_path(std::move(inp_file_path)),
39 simulation_name(std::move(sim_name)) {}
40
43 [[nodiscard]] bool IsEnabled() const { return !shared_lib_path.empty(); }
44};
45
46} // namespace kynema::interfaces::components
Definition aerodynamics.cpp:5
Configuration parameters for a DISCON-style turbine controller.
Definition controller_input.hpp:15
std::string simulation_name
Simulation name for controller.
Definition controller_input.hpp:19
std::string function_name
Controller function name (default: "DISCON")
Definition controller_input.hpp:17
ControllerInput(std::string lib_path, std::string func_name="DISCON", std::string inp_file_path="", std::string sim_name="")
Constructor with all parameters.
Definition controller_input.hpp:32
std::string input_file_path
Path to controller input file.
Definition controller_input.hpp:18
std::string shared_lib_path
Path to controller shared library.
Definition controller_input.hpp:16
bool yaw_control_enabled
Flag to enable yaw control.
Definition controller_input.hpp:20
bool IsEnabled() const
Check if controller is enabled (i.e. has library path)
Definition controller_input.hpp:43
ControllerInput()=default
Default constructor - creates empty controller input.