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

Kynema API: /home/runner/work/kynema/kynema/kynema/src/system/springs/calculate_force_coefficients.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
calculate_force_coefficients.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>
8KOKKOS_INLINE_FUNCTION double CalculateForceCoefficient1(double k, double l_ref, double l) {
9 return k * (l_ref / l - 1.);
10}
11
12template <typename DeviceType>
13KOKKOS_INLINE_FUNCTION double CalculateForceCoefficient2(double k, double l_ref, double l) {
14 return k * l_ref / (l * l * l);
15}
16
17} // namespace kynema::springs
Definition calculate_distance_components.hpp:5
KOKKOS_INLINE_FUNCTION double CalculateForceCoefficient1(double k, double l_ref, double l)
Definition calculate_force_coefficients.hpp:8
KOKKOS_INLINE_FUNCTION double CalculateForceCoefficient2(double k, double l_ref, double l)
Definition calculate_force_coefficients.hpp:13