-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTElastoPlasticData.cpp
More file actions
76 lines (57 loc) · 1.55 KB
/
TElastoPlasticData.cpp
File metadata and controls
76 lines (57 loc) · 1.55 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// TElastoPlasticData.cpp
// IntegrationPointExperiments
//
// Created by Omar Durán on 3/26/19.
//
#include "TElastoPlasticData.h"
TElastoPlasticData::TElastoPlasticData(){
m_gamma_data.resize(0);
}
TElastoPlasticData::TElastoPlasticData(const TElastoPlasticData & other){
m_gamma_data = other.m_gamma_data;
m_id = other.m_id;
m_LER = other.m_LER;
m_MC_phi = other.m_MC_phi;
m_MC_c = other.m_MC_c;
}
TElastoPlasticData & TElastoPlasticData::operator=(const TElastoPlasticData & other){
/// check for self-assignment
if(&other == this){
return *this;
}
m_gamma_data = other.m_gamma_data;
m_id = other.m_id;
m_LER = other.m_LER;
m_MC_phi = other.m_MC_phi;
m_MC_c = other.m_MC_c;
return *this;
}
TElastoPlasticData::~TElastoPlasticData(){
}
void TElastoPlasticData::SetBoundaryData (std::vector<TBCData> bcdata) {
m_gamma_data = bcdata;
}
std::vector<TBCData> TElastoPlasticData::BoundaryData () {
return m_gamma_data;
}
void TElastoPlasticData::SetId (int id) {
m_id = id;
}
int TElastoPlasticData::Id () {
return m_id;
}
void TElastoPlasticData::SetMaterialParameters (TPZElasticResponse ER, REAL phi, REAL c) {
m_LER = ER;
m_MC_phi = phi;
m_MC_c = c;
}
TPZElasticResponse TElastoPlasticData::ElasticResponse () {
return m_LER;
}
REAL TElastoPlasticData::FrictionAngle() {
return m_MC_phi;
}
REAL TElastoPlasticData::Cohesion() {
return m_MC_c;
}