/home/runner/work/kynema/kynema/kynema/src/constraints/calculate_constraint_output.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/constraints/calculate_constraint_output.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_constraint_output.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
6#include "constraint_type.hpp"
7
9
14template <typename DeviceType>
16 template <typename ValueType>
17 using View = Kokkos::View<ValueType, DeviceType>;
18 template <typename ValueType>
20
24 ConstView<double* [7]> node_x0; // Initial position
29
31 void operator()(int constraint) const {
32 if (type(constraint) == ConstraintType::RevoluteJoint) {
37 return;
38 }
39 }
40};
41
42} // namespace kynema::constraints
Definition calculate_constraint_output.hpp:8
Kernel that calculates the output for a constraints, for use as feedback to controllers.
Definition calculate_constraint_output.hpp:15
Kokkos::View< ValueType, DeviceType > View
Definition calculate_constraint_output.hpp:17
ConstView< double *[3][3]> axes
Definition calculate_constraint_output.hpp:23
ConstView< double *[6]> node_udot
Definition calculate_constraint_output.hpp:26
typename View< ValueType >::const_type ConstView
Definition calculate_constraint_output.hpp:19
ConstView< double *[7]> node_x0
Definition calculate_constraint_output.hpp:24
ConstView< ConstraintType * > type
Definition calculate_constraint_output.hpp:21
KOKKOS_FUNCTION void operator()(int constraint) const
Definition calculate_constraint_output.hpp:31
ConstView< double *[6]> node_uddot
Definition calculate_constraint_output.hpp:27
ConstView< double *[7]> node_u
Definition calculate_constraint_output.hpp:25
View< double *[3]> outputs
Definition calculate_constraint_output.hpp:28
ConstView< size_t * > target_node_index
Definition calculate_constraint_output.hpp:22