-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaterial.cpp
More file actions
36 lines (29 loc) · 751 Bytes
/
material.cpp
File metadata and controls
36 lines (29 loc) · 751 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
// Standard libraries
#include "headers.hpp"
// My libraries
#ifndef INCLUDE_MATERIAL
#include "material.hpp"
#define INCLUDE_MATERIAL
#endif
Material::Material(const std::vector< std::vector<double> > &_boundaries, const double &_rho, const double &_cp, const double &_lambda, const double &_qv) {
boundaries = _boundaries;
rho = _rho;
cp = _cp;
lambda = _lambda;
qv = _qv;
} // would need to use initialization list if we used const members
std::vector< std::vector<double> > Material::get_boundaries() const {
return boundaries;
}
double Material::get_cp() const {
return cp;
}
double Material::get_rho() const {
return rho;
}
double Material::get_lambda() const {
return lambda;
}
double Material::get_qv() const {
return qv;
}