MeshData Struct Reference

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

Struct to hold the motion + loads data of any structural mesh component in AeroDyn/InflowWind compatible format. More...

#include <aerodyn_inflow.hpp>

Public Member Functions

 MeshData (size_t n_nodes)
 Constructor to initialize all mesh data to zero based on provided number of nodes.
 
 MeshData (size_t n_mesh_pts, std::span< const std::array< double, 7 > > pos, std::span< const std::array< float, 6 > > vel, std::span< const std::array< float, 6 > > acc, std::span< const std::array< float, 6 > > ld)
 Constructor to initialize all mesh data based on provided inputs.
 
void Validate () const
 
size_t NumberOfMeshPoints () const
 Returns the number of mesh points as size_t.
 
void SetValues (size_t point_number, std::span< const double, 7 > pos, std::span< const double, 6 > vel, std::span< const double, 6 > acc)
 

Public Attributes

int32_t n_points
 
std::vector< std::array< float, 3 > > position
 
std::vector< std::array< std::array< double, 3 >, 3 > > orientation
 
std::vector< std::array< float, 6 > > velocity
 
std::vector< std::array< float, 6 > > acceleration
 
std::vector< std::array< float, 6 > > load
 

Detailed Description

Struct to hold the motion + loads data of any structural mesh component in AeroDyn/InflowWind compatible format.

This struct holds the motion data (i.e. position 3x1, orientation 9x1, velocity 6x1, and acceleration 6x1) and aerodynamic loads 6x1 of the structural mesh components– which can be the hub, nacelle, root, or blade

Constructor & Destructor Documentation

◆ MeshData() [1/2]

kynema::util::MeshData::MeshData ( size_t  n_nodes)
inline

Constructor to initialize all mesh data to zero based on provided number of nodes.

◆ MeshData() [2/2]

kynema::util::MeshData::MeshData ( size_t  n_mesh_pts,
std::span< const std::array< double, 7 > >  pos,
std::span< const std::array< float, 6 > >  vel,
std::span< const std::array< float, 6 > >  acc,
std::span< const std::array< float, 6 > >  ld 
)
inline

Constructor to initialize all mesh data based on provided inputs.

Member Function Documentation

◆ NumberOfMeshPoints()

size_t kynema::util::MeshData::NumberOfMeshPoints ( ) const
inline

Returns the number of mesh points as size_t.

◆ SetValues()

void kynema::util::MeshData::SetValues ( size_t  point_number,
std::span< const double, 7 >  pos,
std::span< const double, 6 >  vel,
std::span< const double, 6 >  acc 
)
inline

◆ Validate()

void kynema::util::MeshData::Validate ( ) const
inline

Member Data Documentation

◆ acceleration

std::vector<std::array<float, 6> > kynema::util::MeshData::acceleration

◆ load

std::vector<std::array<float, 6> > kynema::util::MeshData::load

◆ n_points

int32_t kynema::util::MeshData::n_points

◆ orientation

std::vector<std::array<std::array<double, 3>, 3> > kynema::util::MeshData::orientation

◆ position

std::vector<std::array<float, 3> > kynema::util::MeshData::position

◆ velocity

std::vector<std::array<float, 6> > kynema::util::MeshData::velocity

The documentation for this struct was generated from the following file: