NodeData Struct Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
A collection of data defining the state at a given node and providing an ergonomic way to extract that data from the State object or set the loads therein. More...
#include <node_data.hpp>
Public Types | |
using | DeviceType = Kokkos::Device< Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space > |
Public Member Functions | |
NodeData (size_t id_) | |
Node data constructor. | |
void | ClearLoads () |
Set point loads and moments to zero. | |
void | GetMotion (const HostState< DeviceType > &host_state) |
Populates node position, displacement, velocity, acceleration from state data. | |
void | SetLoads (HostState< DeviceType > &host_state) const |
Updates the node loads in the host state. | |
Public Attributes | |
size_t | id |
Node identifier in model. | |
std::array< double, 7 > | position {0., 0., 0., 1., 0., 0., 0.} |
Absolute position of node in global coordinates. | |
std::array< double, 7 > | displacement {0., 0., 0., 1., 0., 0., 0.} |
Displacement from reference position. | |
std::array< double, 6 > | velocity {0., 0., 0., 0., 0., 0.} |
Velocity of node in global coordinates. | |
std::array< double, 6 > | acceleration {0., 0., 0., 0., 0., 0.} |
Acceleration of node in global coordinates. | |
std::array< double, 6 > | loads {0., 0., 0., 0., 0., 0.} |
Point loads/moment applied to node in global coordinates. | |
Detailed Description
A collection of data defining the state at a given node and providing an ergonomic way to extract that data from the State object or set the loads therein.
Member Typedef Documentation
◆ DeviceType
using kynema::interfaces::NodeData::DeviceType = Kokkos::Device<Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space> |
Constructor & Destructor Documentation
◆ NodeData()
|
inlineexplicit |
Member Function Documentation
◆ ClearLoads()
void kynema::interfaces::NodeData::ClearLoads | ( | ) |
Set point loads and moments to zero.
◆ GetMotion()
void kynema::interfaces::NodeData::GetMotion | ( | const HostState< DeviceType > & | host_state | ) |
Populates node position, displacement, velocity, acceleration from state data.
- Parameters
-
host_state Host state from which to obtain data
◆ SetLoads()
void kynema::interfaces::NodeData::SetLoads | ( | HostState< DeviceType > & | host_state | ) | const |
Updates the node loads in the host state.
- Parameters
-
host_state Host state to update
Member Data Documentation
◆ acceleration
std::array<double, 6> kynema::interfaces::NodeData::acceleration {0., 0., 0., 0., 0., 0.} |
Acceleration of node in global coordinates.
◆ displacement
std::array<double, 7> kynema::interfaces::NodeData::displacement {0., 0., 0., 1., 0., 0., 0.} |
Displacement from reference position.
◆ id
size_t kynema::interfaces::NodeData::id |
Node identifier in model.
◆ loads
std::array<double, 6> kynema::interfaces::NodeData::loads {0., 0., 0., 0., 0., 0.} |
Point loads/moment applied to node in global coordinates.
◆ position
std::array<double, 7> kynema::interfaces::NodeData::position {0., 0., 0., 1., 0., 0., 0.} |
Absolute position of node in global coordinates.
◆ velocity
std::array<double, 6> kynema::interfaces::NodeData::velocity {0., 0., 0., 0., 0., 0.} |
Velocity of node in global coordinates.
The documentation for this struct was generated from the following files:
- /home/runner/work/kynema/kynema/kynema/src/interfaces/node_data.hpp
- /home/runner/work/kynema/kynema/kynema/src/interfaces/node_data.cpp
Generated by