-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMaterialModel.h
More file actions
36 lines (28 loc) · 780 Bytes
/
MaterialModel.h
File metadata and controls
36 lines (28 loc) · 780 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
#ifndef _MATMOD_H_
#define _MATMOD_H_
#include "Mesh.h"
#include <armadillo>
#include <vector>
class MaterialModel {
//Attributes
private:
unsigned int nn; //init list
unsigned int n_lvls;
arma::colvec* lvls;
arma::colvec* velocities;
arma::colvec* control_func;
//Methods
public:
MaterialModel(unsigned int nnodes, double init_value);
~MaterialModel();
void set(unsigned int n_levels, std::vector<double> levels, std::vector<double> velocities_arr);
arma::colvec* get_levels();
arma::colvec* get_velocities();
arma::colvec* get_control_function();
unsigned int get_nlvls();
unsigned int get_nvels();
void log_control_func();
void log_levels();
void log_velocities();
};
#endif // _MATMOD_H_