DFNgen
2.0
DFN Model Generator
structures.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include "
structures.h
"
3
4
// Constructor
8
IntPoints::IntPoints
(){
9
fract1
= -1;
10
fract2
= -1;
11
intersectionShortened
=
false
;
12
}
13
14
// Constructor
16
RejectionReasons::RejectionReasons
() {
17
shortIntersection = 0;
18
closeToNode = 0;
19
closeToEdge = 0;
20
closePointToEdge = 0;
21
outside = 0;
22
triple = 0;
23
interCloseToInter = 0;
24
}
25
26
// Constructor
28
Poly::Poly
(){
29
groupNum = 0;
30
area = 0;
31
aperture
= 0;
32
familyNum = 0;
33
xradius = yradius = 0;
34
faces[0] = 0;
35
faces[1] = 0;
36
faces[2] = 0;
37
faces[3] = 0;
38
faces[4] = 0;
39
faces[5] = 0;
40
permeability = 0;
41
XYPlane = 0;
42
truncated = 0;
43
}
44
45
// Constructor
47
Point::Point
() {
48
x = 0;
49
y = 0;
50
z = 0;
51
}
52
53
// Constructor
56
Point::Point
(
double
_x,
double
_y,
double
_z) {
57
x = _x;
58
y = _y;
59
z = _z;
60
}
61
62
// Constructor
65
FractureGroups::FractureGroups
() {
66
polyList.reserve(100);
67
}
68
69
// Constructor
72
GroupData::GroupData
(){
73
size = 0;
74
valid = 1;
75
faces[0] = 0;
76
faces[1] = 0;
77
faces[2] = 0;
78
faces[3] = 0;
79
faces[4] = 0;
80
faces[5] = 0;
81
}
82
83
// Constructor
86
Stats::Stats
() {
87
acceptedPolyCount = 0;
88
rejectedPolyCount = 0;
89
retranslatedPolyCount = 0;
90
truncated = 0;
91
intersectionsShortened = 0;
92
nextGroupNum = 1;
93
fractGroup.reserve(16);
94
originalLength = 0;
95
discardedLength = 0;
96
intersectionNodeCount = 0;
97
tripleNodeCount = 0;
98
areaBeforeRemoval = 0;
99
areaAfterRemoval = 0;
100
volBeforeRemoval = 0;
101
volAfterRemoval = 0;
102
}
103
104
// Constructor
106
Shape::Shape
() {
107
p32Target
= 0;
108
currentP32
= 0;
109
radiiIdx
= 0;
110
}
111
112
RejectionReasons::RejectionReasons
RejectionReasons()
Definition:
structures.cpp:16
structures.h
Stats::Stats
Stats()
Definition:
structures.cpp:86
Poly::Poly
Poly()
Definition:
structures.cpp:28
aperture
int aperture
Definition:
readInput.cpp:413
FractureGroups::FractureGroups
FractureGroups()
Definition:
structures.cpp:65
IntPoints::fract1
long int fract1
Definition:
structures.h:135
GroupData::GroupData
GroupData()
Definition:
structures.cpp:72
Shape::radiiIdx
unsigned int radiiIdx
Definition:
structures.h:405
IntPoints::IntPoints
IntPoints()
Definition:
structures.cpp:8
Shape::Shape
Shape()
Definition:
structures.cpp:106
Shape::p32Target
float p32Target
Definition:
structures.h:418
IntPoints::intersectionShortened
bool intersectionShortened
Definition:
structures.h:158
IntPoints::fract2
long int fract2
Definition:
structures.h:139
Point::Point
Point()
Definition:
structures.cpp:47
Shape::currentP32
float currentP32
Definition:
structures.h:421
structures.cpp
Generated by
1.8.12