MassMatrixLinear.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 #ifndef MASSMATRIXLINEAR_H_INCLUDED
25 #define MASSMATRIXLINEAR_H_INCLUDED
26 
27 #define NUM_ELEMENTS_LOWER_TRIANGULAR_4X4 10
28 
29 #define NUM_LINEAR_SHAPE_FUNCTIONS 4
30 
31 #include "mat_vec_types.h"
32 #include "dimensions.h"
34 public:
36 
37  scalar * get_M_alpha_mem_loc(int i, int j);
38 
39  void build(scalar density, scalar vol);
40 
41  scalar get_M_alpha_value(int i, int j);
42  void print_details();
43 private:
45 
46  void zero();
47 };
48 
49 
50 #endif
void print_details()
Definition: MassMatrixLinear.cpp:92
Definition: MassMatrixLinear.h:33
void build(scalar density, scalar vol)
Definition: MassMatrixLinear.cpp:49
#define NUM_ELEMENTS_LOWER_TRIANGULAR_4X4
Definition: MassMatrixLinear.h:27
void zero()
Definition: MassMatrixLinear.cpp:86
scalar M_alpha[NUM_ELEMENTS_LOWER_TRIANGULAR_4X4]
Definition: MassMatrixLinear.h:44
scalar get_M_alpha_value(int i, int j)
Definition: MassMatrixLinear.cpp:66
scalar * get_M_alpha_mem_loc(int i, int j)
Definition: MassMatrixLinear.cpp:30
MassMatrixLinear()
Definition: MassMatrixLinear.cpp:26
static const int i
index of ith thing
Definition: rod_math_v9.h:63
double scalar
Definition: mat_vec_types.h:36