ErrorHandling Struct Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
kynema::util::ErrorHandling Struct Reference
Struct for error handling settings. More...
#include <aerodyn_inflow.hpp>
Public Types | |
enum class | ErrorLevel : uint8_t { kNone = 0 , kInfo = 1 , kWarning = 2 , kSevereError = 3 , kFatalError = 4 } |
Error levels used in InflowWind. More... | |
Public Member Functions | |
void | CheckError () const |
Checks for errors and throws an exception if found. | |
Public Attributes | |
int | abort_error_level |
int | error_status {0} |
std::array< char, kErrorMessagesLength > | error_message {} |
Static Public Attributes | |
static constexpr size_t | kErrorMessagesLength {1025U} |
Detailed Description
Struct for error handling settings.
AeroDynInflowLibrary: C++ wrapper for the AeroDyn/InflowWind (ADI) shared library
Provides a modern C++ interface to AeroDyn x InflowWind functionality, encapsulating the C-bindings of the Fortran library.
Key Features:
- AeroDyn: Blade element momentum (BEM) theory for aerodynamic force calculations (dynamic stall, unsteady aerodynamics, tower shadow, wind shear, tip/hub losses)
- InflowWind: Simulates complex inflow conditions (turbulence, wind shear, gusts)
Usage:
- Instantiate AeroDynInflowLibrary with shared library path
- Initialize: PreInitialize() -> SetupRotor() -> Initialize()
- Simulate: SetupRotorMotion() -> UpdateStates() -> CalculateOutputChannels() -> GetRotorAerodynamicLoads()
- Finalize() and handle errors
See unit tests for detailed usage examples.
References:
- OpenFAST/AeroDyn: https://openfast.readthedocs.io/en/main/source/user/aerodyn/index.html
- OpenFAST/InflowWind: https://openfast.readthedocs.io/en/main/source/user/inflowwind/index.html
C bindings: https://github.com/OpenFAST/openfast/blob/dev/modules/aerodyn/src/AeroDyn_Inflow_C_Binding.f90
This struct holds the error handling settings for the AeroDynInflow library wrapper. It includes an error level enum, a maximum error message length, and methods for checking and handling errors.
Member Enumeration Documentation
◆ ErrorLevel
|
strong |
Member Function Documentation
◆ CheckError()
|
inline |
Checks for errors and throws an exception if found.
Member Data Documentation
◆ abort_error_level
int kynema::util::ErrorHandling::abort_error_level |
Initial value:
{
}
@ kFatalError
◆ error_message
std::array<char, kErrorMessagesLength> kynema::util::ErrorHandling::error_message {} |
◆ error_status
int kynema::util::ErrorHandling::error_status {0} |
◆ kErrorMessagesLength
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/runner/work/kynema/kynema/kynema/src/utilities/aerodynamics/aerodyn_inflow.hpp
Generated by