/home/runner/work/kynema/kynema/kynema/src/system/beams/calculate_temporary_variables.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/beams/calculate_temporary_variables.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_temporary_variables.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <KokkosBlas.hpp>
4#include <Kokkos_Core.hpp>
5
7
8namespace kynema::beams {
9
10template <typename DeviceType>
12 template <typename ValueType>
13 using View = Kokkos::View<ValueType, DeviceType>;
14 template <typename ValueType>
16
18 const ConstView<double[3]>& x0_prime, const ConstView<double[3]>& u_prime,
19 const View<double[3][3]>& x0pupSS
20 ) {
21 using Kokkos::Array;
22
24 const auto x0pup = View<double[3]>(x0pup_data.data());
25
26 KokkosBlas::serial_axpy(1., u_prime, x0pup);
28 }
29};
30} // namespace kynema::beams
Definition beam_quadrature.hpp:16
KOKKOS_INLINE_FUNCTION void VecTilde(const VectorType &vector, const MatrixType &matrix)
Converts a 3x1 vector to a 3x3 skew-symmetric matrix and returns the result.
Definition vector_operations.hpp:11
Definition calculate_temporary_variables.hpp:11
typename View< ValueType >::const_type ConstView
Definition calculate_temporary_variables.hpp:15
static KOKKOS_FUNCTION void invoke(const ConstView< double[3]> &x0_prime, const ConstView< double[3]> &u_prime, const View< double[3][3]> &x0pupSS)
Definition calculate_temporary_variables.hpp:17
Kokkos::View< ValueType, DeviceType > View
Definition calculate_temporary_variables.hpp:13