/home/runner/work/kynema/kynema/kynema/src/solver/condition_system.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/solver/condition_system.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
condition_system.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4
5namespace kynema::solver {
6
10template <typename DeviceType>
11struct ConditionR {
13 Kokkos::View<double* [1], Kokkos::LayoutLeft, DeviceType> R;
14
15 KOKKOS_FUNCTION
16 void operator()(int i) const { R(i, 0) *= conditioner; }
17};
18
23template <typename DeviceType>
27 Kokkos::View<double* [1], Kokkos::LayoutLeft, DeviceType> x;
28
29 KOKKOS_FUNCTION
30 void operator()(size_t i) const { x(i + num_system_dofs, 0) /= conditioner; }
31};
32
33} // namespace kynema::solver
Definition calculate_error_sum_squares.hpp:5
A Kernel which applies the given factor to the system RHS vector.
Definition condition_system.hpp:11
double conditioner
Definition condition_system.hpp:12
Kokkos::View< double *[1], Kokkos::LayoutLeft, DeviceType > R
Definition condition_system.hpp:13
KOKKOS_FUNCTION void operator()(int i) const
Definition condition_system.hpp:16
A Kernel which divides the RHS vector terms corresponding to the constraints by a given conditioner f...
Definition condition_system.hpp:24
double conditioner
Definition condition_system.hpp:26
KOKKOS_FUNCTION void operator()(size_t i) const
Definition condition_system.hpp:30
Kokkos::View< double *[1], Kokkos::LayoutLeft, DeviceType > x
Definition condition_system.hpp:27
size_t num_system_dofs
Definition condition_system.hpp:25