Spring.h
Go to the documentation of this file.
1 //
2 // This file is part of the FFEA simulation package
3 //
4 // Copyright (c) by the Theory and Development FFEA teams,
5 // as they appear in the README.md file.
6 //
7 // FFEA is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // FFEA is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with FFEA. If not, see <http://www.gnu.org/licenses/>.
19 //
20 // To help us fund FFEA development, we humbly ask that you cite
21 // the research papers on the package.
22 //
23 
24 #include "mat_vec_types.h"
25 #include <stdlib.h>
26 
27 class Spring {
28 public:
29 
30  Spring();
31 
32  ~Spring();
33 
34  /* * Variables */
35 
37 
39 
40  int *blob_index;
41 
43 
44  int *node_index;
45 
46  bool am_i_active;
47 };
int * conformation_index
Conformations connected to.
Definition: Spring.h:42
scalar l
Equilibrium length.
Definition: Spring.h:38
Spring()
Definition: Spring.cpp:26
int * blob_index
Blobs connected to.
Definition: Spring.h:40
Definition: Spring.h:27
scalar k
Spring constant.
Definition: Spring.h:36
bool am_i_active
Check if spring is active.
Definition: Spring.h:46
int * node_index
Nodes connected to.
Definition: Spring.h:44
~Spring()
Definition: Spring.cpp:35
double scalar
Definition: mat_vec_types.h:36