-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsolve.h
More file actions
40 lines (24 loc) · 687 Bytes
/
solve.h
File metadata and controls
40 lines (24 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef ASSEMBLY_H_
#define ASSEMBLY_H_
#include <vector>
#include <array>
#include "element.h"
#include "boundary.h"
extern std::vector<element> tetrah_element;
extern std::vector<std::array<int, 2>> edge_basis;
extern std::vector<bdy_element> boundary_element;
extern VectorXd basis_coef;
extern SparseMatrix<double> M;
extern SparseMatrix<double> P;
extern SparseMatrix<double> W;
extern SparseMatrix<double> K;
void parse_edge_basis();
void generate_elements();
void generate_boundary_elements();
void print_edge_basis();
int find_edge(int node_a, int node_b);
void assembly();
Vector3d t(int I);
void solve_eigenmode();
void newmark(int n);
#endif /* ASSEMBLY_H_ */