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

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/beams/calculate_force_FC.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_force_FC.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <KokkosBlas.hpp>
4#include <Kokkos_Core.hpp>
5
6namespace kynema::beams {
7
8template <typename DeviceType>
10 template <typename ValueType>
11 using View = Kokkos::View<ValueType, DeviceType>;
12 template <typename ValueType>
14
16 const ConstView<double[6][6]>& Cuu, const ConstView<double[6]>& strain,
17 const View<double[6]>& FC
18 ) {
19 using NoTranspose = KokkosBlas::Trans::NoTranspose;
20 using Default = KokkosBlas::Algo::Gemv::Default;
21 using Gemv = KokkosBlas::SerialGemv<NoTranspose, Default>;
22 Gemv::invoke(1., Cuu, strain, 0., FC);
23 }
24};
25} // namespace kynema::beams
Definition beam_quadrature.hpp:16
Definition calculate_force_FC.hpp:9
static KOKKOS_FUNCTION void invoke(const ConstView< double[6][6]> &Cuu, const ConstView< double[6]> &strain, const View< double[6]> &FC)
Definition calculate_force_FC.hpp:15
Kokkos::View< ValueType, DeviceType > View
Definition calculate_force_FC.hpp:11
typename View< ValueType >::const_type ConstView
Definition calculate_force_FC.hpp:13