Loading [MathJax]/extensions/tex2jax.js

dune-composites (unstable)

Material.hh
1#ifndef MATERIAL__HH
2#define MATERIAL__HH
3
4namespace Dune{
5
6namespace Composites{
7
15
16public:
17
18 Material(){}
19
20 int Type;
21 std::vector<double> matprop;
22 double density;
23
24 void inline setType(int t){
25 Type = t;
26 if (t == 0){ matprop.resize(2); }
27 else if(t == 1){ matprop.resize(9);}
28 else{ matprop.resize(21); }
29 }
30
31 void inline setProp(unsigned int i, double val){
32 assert(i < matprop.size());
33 matprop[i] = val;
34 }
35
36 void inline setDensity(double val){density = val;}
37
38
39private:
40
41
42};
43
44}
45}
46
47#endif
Material class.
Definition: Material.hh:14
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 3, 22:46, 2025)