-
Notifications
You must be signed in to change notification settings - Fork 0
/
TPZSimulationData.cpp
65 lines (45 loc) · 1.34 KB
/
TPZSimulationData.cpp
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
//
// TPZSimulationData.cpp
// PZ
//
// Created by Omar on 8/28/16.
//
//
#include "TPZSimulationData.h"
/** @brief Initialize the raw data */
TPZSimulationData::TPZSimulationData(){
/** @brief initial state */
fIsInitialStateQ = false;
/** @brief current time state */
fIsCurrentStateQ = false;
/** @brief Definition gravity field */
fg.Resize(0);
/** @brief Store time values to be reported */
fReportingTimes.Resize(0);
/** @brief Prestress state */
fsigma_0.Resize(0, 0);
/** @brief ntime steps */
fn_steps = 0;
/** @brief Time step */
fdt = 0.0;
/** @brief Time step */
ftime = 0.0;
}
/** @brief destructor */
TPZSimulationData::~TPZSimulationData(){
}
/** @brief Setup reporting times and time step size */
void TPZSimulationData::SetTimeControls(int n_times, REAL dt){
fn_steps = n_times;
fdt = dt;
fReportingTimes.Resize(n_times, 0.0);
for (int it = 0; it < n_times; it++) {
fReportingTimes[it] = it*dt;
}
}
/** @brief Setup reporting times and time step size */
void TPZSimulationData::SetNumericControls(int n_corrections, REAL epsilon_res, REAL epsilon_cor){
fn_corrections = n_corrections;
fepsilon_res = epsilon_res;
fepsilon_cor = epsilon_cor;
}