Elements< DeviceType > Struct Template Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
kynema::Elements< DeviceType > Struct Template Reference
A container providing handle to all structural elements present in the model. More...
#include <elements.hpp>
Public Member Functions | |
Elements () | |
Elements (Beams< DeviceType > b, Masses< DeviceType > m, Springs< DeviceType > s) | |
size_t | NumElementsInSystem () const |
Returns the total number of elements across all types in the system. | |
Kokkos::View< size_t *, DeviceType > | NumberOfNodesPerElement () const |
Returns the number of nodes per element for each element in the system. | |
Kokkos::View< size_t **, DeviceType > | NodeStateIndices () const |
Returns the state indices for each node of each element in the system. | |
Public Attributes | |
Beams< DeviceType > | beams |
Masses< DeviceType > | masses |
Springs< DeviceType > | springs |
Detailed Description
template<typename DeviceType>
struct kynema::Elements< DeviceType >
struct kynema::Elements< DeviceType >
A container providing handle to all structural elements present in the model.
This class serves as a container for wrapping all structural elements in the model, including beams, point masses, and springs, effectively providing the entire mesh as a single object to be used by the gen-alpha solver logic.
Constructor & Destructor Documentation
◆ Elements() [1/2]
template<typename DeviceType >
|
inline |
◆ Elements() [2/2]
template<typename DeviceType >
|
inline |
Member Function Documentation
◆ NodeStateIndices()
template<typename DeviceType >
|
inline |
Returns the state indices for each node of each element in the system.
- Returns
- Kokkos::View<size_t**> A 2D view containing the state indices for each node, concatenated in the order: [beams] -> [masses] -> [springs]
◆ NumberOfNodesPerElement()
template<typename DeviceType >
|
inline |
Returns the number of nodes per element for each element in the system.
- Returns
- Kokkos::View<size_t*> A 1D view containing the number of nodes for each element, concatenated in the order: [beams] -> [masses] -> [springs]
◆ NumElementsInSystem()
template<typename DeviceType >
|
inline |
Returns the total number of elements across all types in the system.
Member Data Documentation
◆ beams
template<typename DeviceType >
Beams<DeviceType> kynema::Elements< DeviceType >::beams |
◆ masses
template<typename DeviceType >
Masses<DeviceType> kynema::Elements< DeviceType >::masses |
◆ springs
template<typename DeviceType >
Springs<DeviceType> kynema::Elements< DeviceType >::springs |
The documentation for this struct was generated from the following file:
- /home/runner/work/kynema/kynema/kynema/src/elements/elements.hpp
Generated by