/home/runner/work/kynema/kynema/kynema/src/state/update_algorithmic_acceleration.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/state/update_algorithmic_acceleration.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
update_algorithmic_acceleration.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
5namespace kynema::state {
6
11template <typename DeviceType>
13 typename Kokkos::View<double* [6], DeviceType> acceleration;
14 typename Kokkos::View<double* [6], DeviceType>::const_type vd;
15 double alpha_f;
16 double alpha_m;
17
18 KOKKOS_FUNCTION
19 void operator()(int node) const {
20 for (auto component = 0; component < 6; ++component) {
21 acceleration(node, component) += (1. - alpha_f) / (1. - alpha_m) * vd(node, component);
22 }
23 }
24};
25
26} // namespace kynema::state
Definition calculate_displacement.hpp:7
A Kernel to update the algorithmic acceleration based on the acceleration and generalized alpha solve...
Definition update_algorithmic_acceleration.hpp:12
Kokkos::View< double *[6], DeviceType > acceleration
Definition update_algorithmic_acceleration.hpp:13
double alpha_f
Definition update_algorithmic_acceleration.hpp:15
Kokkos::View< double *[6], DeviceType >::const_type vd
Definition update_algorithmic_acceleration.hpp:14
double alpha_m
Definition update_algorithmic_acceleration.hpp:16
KOKKOS_FUNCTION void operator()(int node) const
Definition update_algorithmic_acceleration.hpp:19