/home/runner/work/kynema/kynema/kynema/src/elements/springs/spring_element.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/elements/springs/spring_element.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
spring_element.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <cmath>
5
6namespace kynema {
7
13 size_t ID; // Element identifier
14 std::array<size_t, 2> node_ids; // 2 node IDs (start and end points of spring)
15 double stiffness; // Spring stiffness coefficient
16 double undeformed_length; // Reference/undeformed length of spring
17
18 SpringElement(size_t id, std::array<size_t, 2> n_ids, double k, double l0)
19 : ID(id), node_ids(n_ids), stiffness(k), undeformed_length(l0) {}
20};
21
22} // namespace kynema
Definition calculate_constraint_output.hpp:8
Spring element represents a constitutively linear spring connecting two nodes and defined by its scal...
Definition spring_element.hpp:12
size_t ID
Definition spring_element.hpp:13
double stiffness
Definition spring_element.hpp:15
std::array< size_t, 2 > node_ids
Definition spring_element.hpp:14
double undeformed_length
Definition spring_element.hpp:16
SpringElement(size_t id, std::array< size_t, 2 > n_ids, double k, double l0)
Definition spring_element.hpp:18