-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTBCData.h
More file actions
61 lines (39 loc) · 960 Bytes
/
TBCData.h
File metadata and controls
61 lines (39 loc) · 960 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// TBCData.h
// IntegrationPointExperiments
//
// Created by Omar Durán on 3/26/19.
//
#ifndef TBCData_h
#define TBCData_h
#include <stdio.h>
#include <vector>
#include "pzreal.h"
class TBCData {
protected:
/// material identifier
int m_id = -1;
/// bc type - 0 -> Dirichlet and 1 -> Neumann
int m_type = -1;
/// The boundary data
std::vector<REAL> m_value;
REAL m_initial_value = -1;
public:
/// Default constructor
TBCData();
/// Copy constructor
TBCData(const TBCData & other);
/// Assignmet constructor
TBCData & operator=(const TBCData & other);
/// Default destructor
~TBCData();
void SetId (int id);
int Id ();
void SetType (int type);
int Type ();
void SetValue (std::vector<REAL> m_value);
std::vector<REAL> Value ();
void SetInitialValue (REAL initv);
REAL InitialValue();
};
#endif /* TBCData_h */