BladeInterface Class Reference

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

Interface for blade simulation that manages state, solver, and components. More...

#include <blade_interface.hpp>

Public Types

using DeviceType = Kokkos::Device< Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space >
 

Public Member Functions

 BladeInterface (const components::SolutionInput &solution_input, const components::BeamInput &blade_input)
 Constructs a BladeInterface from solution and blade inputs.
 
components::BeamBlade ()
 Returns a reference to the blade model.
 
bool Step ()
 Steps forward in time.
 
void SaveState ()
 Saves the current state for potential restoration (in correction step)
 
void RestoreState ()
 Restores the previously saved state (in correction step)
 
void SetRootDisplacement (const std::array< double, 7 > &u) const
 Sets the displacement for the root node.
 

Detailed Description

Interface for blade simulation that manages state, solver, and components.

This class represents the primary interface for simulating a WT blade, connecting the blade components with the solver and state management.

Member Typedef Documentation

◆ DeviceType

using kynema::interfaces::BladeInterface::DeviceType = Kokkos::Device<Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space>

Constructor & Destructor Documentation

◆ BladeInterface()

kynema::interfaces::BladeInterface::BladeInterface ( const components::SolutionInput solution_input,
const components::BeamInput blade_input 
)
explicit

Constructs a BladeInterface from solution and blade inputs.

Parameters
solution_inputConfiguration parameters for solver and solution
blade_inputConfiguration parameters for blade geometry

Member Function Documentation

◆ Blade()

components::Beam & kynema::interfaces::BladeInterface::Blade ( )

Returns a reference to the blade model.

◆ RestoreState()

void kynema::interfaces::BladeInterface::RestoreState ( )

Restores the previously saved state (in correction step)

◆ SaveState()

void kynema::interfaces::BladeInterface::SaveState ( )

Saves the current state for potential restoration (in correction step)

◆ SetRootDisplacement()

void kynema::interfaces::BladeInterface::SetRootDisplacement ( const std::array< double, 7 > &  u) const

Sets the displacement for the root node.

Parameters
uDisplacement array (7 components)
Exceptions
std::runtime_errorif prescribed root motion was not enabled

◆ Step()

bool kynema::interfaces::BladeInterface::Step ( )

Steps forward in time.

Returns
true if solver converged, false otherwise

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