/home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_force_vectors.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_force_vectors.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_force_vectors.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
5namespace kynema::springs {
6
7template <typename DeviceType>
9 template <typename ValueType>
10 using View = Kokkos::View<ValueType, DeviceType>;
11 template <typename ValueType>
13
15 const ConstView<double[3]>& r, double c1, const View<double[3]>& f
16 ) {
17 for (auto component = 0; component < 3; ++component) {
18 f(component) = c1 * r(component);
19 }
20 }
21};
22} // namespace kynema::springs
Definition calculate_distance_components.hpp:5
Definition calculate_force_vectors.hpp:8
static KOKKOS_FUNCTION void invoke(const ConstView< double[3]> &r, double c1, const View< double[3]> &f)
Definition calculate_force_vectors.hpp:14
Kokkos::View< ValueType, DeviceType > View
Definition calculate_force_vectors.hpp:10
typename View< ValueType >::const_type ConstView
Definition calculate_force_vectors.hpp:12