CalculateQPPosition< DeviceType > Struct Template Reference

Kynema API: kynema::beams::CalculateQPPosition< DeviceType > Struct Template Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema::beams::CalculateQPPosition< DeviceType > Struct Template Reference

Functor to calculate current position and orientation at quadrature points. More...

#include <calculate_QP_position.hpp>

Public Types

template<typename ValueType >
using View = Kokkos::View< ValueType, DeviceType >
 
template<typename ValueType >
using ConstView = typename View< ValueType >::const_type
 

Public Member Functions

KOKKOS_FUNCTION void operator() (int qp) const
 

Public Attributes

size_t element
 
ConstView< double **[3]> qp_x0_
 
ConstView< double **[3]> qp_u_
 
ConstView< double **[4]> qp_r0_
 
ConstView< double **[4]> qp_r_
 
View< double **[7]> qp_x_
 

Detailed Description

template<typename DeviceType>
struct kynema::beams::CalculateQPPosition< DeviceType >

Functor to calculate current position and orientation at quadrature points.

This functor updates the current position and orientation (qp_x_) of quadrature points by combining:

  • Initial position (qp_x0_) with displacement (qp_u_) for translational components
  • Initial orientation (qp_r0_) with rotation (qp_r_) for rotational components using quaternions
Parameters
elementElement index
qp_x0_Initial quadrature point positions (num_elems x num_qps x 3)
qp_u_Displacements at quadrature points (num_elems x num_qps x 3)
qp_r0_Initial orientations as quaternions (num_elems x num_qps x 4)
qp_r_Rotations as quaternions (num_elems x num_qps x 4)
qp_x_Output current positions and orientations (num_elems x num_qps x 7) where [0:3] = position, [3:7] = orientation quaternion

Member Typedef Documentation

◆ ConstView

template<typename DeviceType >
template<typename ValueType >
using kynema::beams::CalculateQPPosition< DeviceType >::ConstView = typename View<ValueType>::const_type

◆ View

template<typename DeviceType >
template<typename ValueType >
using kynema::beams::CalculateQPPosition< DeviceType >::View = Kokkos::View<ValueType, DeviceType>

Member Function Documentation

◆ operator()()

template<typename DeviceType >
KOKKOS_FUNCTION void kynema::beams::CalculateQPPosition< DeviceType >::operator() ( int  qp) const
inline

Member Data Documentation

◆ element

template<typename DeviceType >
size_t kynema::beams::CalculateQPPosition< DeviceType >::element

◆ qp_r0_

template<typename DeviceType >
ConstView<double** [4]> kynema::beams::CalculateQPPosition< DeviceType >::qp_r0_

◆ qp_r_

template<typename DeviceType >
ConstView<double** [4]> kynema::beams::CalculateQPPosition< DeviceType >::qp_r_

◆ qp_u_

template<typename DeviceType >
ConstView<double** [3]> kynema::beams::CalculateQPPosition< DeviceType >::qp_u_

◆ qp_x0_

template<typename DeviceType >
ConstView<double** [3]> kynema::beams::CalculateQPPosition< DeviceType >::qp_x0_

◆ qp_x_

template<typename DeviceType >
View<double** [7]> kynema::beams::CalculateQPPosition< DeviceType >::qp_x_

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