BeamsInput Struct Reference

Kynema API: kynema::BeamsInput Struct Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema::BeamsInput Struct Reference

Represents the input data for creating flexible beams. More...

#include <beams_input.hpp>

Public Member Functions

 BeamsInput (std::span< const BeamElement > elems, std::span< const double, 3 > g)
 
size_t NumElements () const
 Returns the number of elements in the beam.
 
template<typename Accessor >
size_t ComputeSum (Accessor accessor) const
 Computes the sum of a value across all elements.
 
template<typename Accessor >
size_t ComputeMax (Accessor accessor) const
 Computes the maximum of a value across all elements.
 
size_t NumNodes () const
 Returns the total number of nodes in the beam.
 
size_t NumQuadraturePoints () const
 Returns the total number of quadrature points in the beam.
 
size_t MaxElemNodes () const
 Returns the maximum number of nodes in any element of the beam.
 
size_t MaxElemQuadraturePoints () const
 Returns the maximum number of quadrature points in any element of the beam.
 

Public Attributes

std::vector< BeamElementelements
 
std::array< double, 3 > gravity
 

Detailed Description

Represents the input data for creating flexible beams.

This struct encapsulates all necessary input parameters for instantiating flex beams in kynema i.e. the beam elements and environmental factors such as gravity. It also provides some utilities for computing properties such as

  • total number of nodes/quadrature points
  • maximum number of nodes/quadrature points per element etc.

Constructor & Destructor Documentation

◆ BeamsInput()

kynema::BeamsInput::BeamsInput ( std::span< const BeamElement elems,
std::span< const double, 3 >  g 
)
inline

Member Function Documentation

◆ ComputeMax()

template<typename Accessor >
size_t kynema::BeamsInput::ComputeMax ( Accessor  accessor) const
inline

Computes the maximum of a value across all elements.

◆ ComputeSum()

template<typename Accessor >
size_t kynema::BeamsInput::ComputeSum ( Accessor  accessor) const
inline

Computes the sum of a value across all elements.

◆ MaxElemNodes()

size_t kynema::BeamsInput::MaxElemNodes ( ) const
inline

Returns the maximum number of nodes in any element of the beam.

◆ MaxElemQuadraturePoints()

size_t kynema::BeamsInput::MaxElemQuadraturePoints ( ) const
inline

Returns the maximum number of quadrature points in any element of the beam.

◆ NumElements()

size_t kynema::BeamsInput::NumElements ( ) const
inline

Returns the number of elements in the beam.

◆ NumNodes()

size_t kynema::BeamsInput::NumNodes ( ) const
inline

Returns the total number of nodes in the beam.

◆ NumQuadraturePoints()

size_t kynema::BeamsInput::NumQuadraturePoints ( ) const
inline

Returns the total number of quadrature points in the beam.

Member Data Documentation

◆ elements

std::vector<BeamElement> kynema::BeamsInput::elements

◆ gravity

std::array<double, 3> kynema::BeamsInput::gravity

The documentation for this struct was generated from the following file:
  • /home/runner/work/kynema/kynema/kynema/src/elements/beams/beams_input.hpp