DYNAMICS C API
C-compatible interface to the DYNAMICS library
Loading...
Searching...
No Matches
c_spring_element_2d Struct Reference

A two-dimensional linear, axial spring element with x and y translations at each node. More...

#include <dynamics.h>

Public Attributes

double stiffness
 The spring stiffness.
 
c_node node_1
 The first node of the element.
 
c_node node_2
 The second node of the element.
 
double direction [2]
 The spring axis; used only if use_direction is true.
 
bool use_direction
 True to define the spring axis by direction; false to define it by the vector from node_1 to node_2, in which case the nodes must not be coincident.
 

Detailed Description

A two-dimensional linear, axial spring element with x and y translations at each node.

Member Data Documentation

◆ stiffness

double c_spring_element_2d::stiffness

The spring stiffness.

◆ node_1

c_node c_spring_element_2d::node_1

The first node of the element.

◆ node_2

c_node c_spring_element_2d::node_2

The second node of the element.

◆ direction

double c_spring_element_2d::direction[2]

The spring axis; used only if use_direction is true.

The vector must be non-zero and is normalized internally.

◆ use_direction

bool c_spring_element_2d::use_direction

True to define the spring axis by direction; false to define it by the vector from node_1 to node_2, in which case the nodes must not be coincident.


The documentation for this struct was generated from the following file: