-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeometryObjects.py
More file actions
140 lines (105 loc) · 3.57 KB
/
Copy pathgeometryObjects.py
File metadata and controls
140 lines (105 loc) · 3.57 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
class Ellipse:
def __init__(self,x0=50,y0=50,a=10,b=5,theta=0,Label=0):
self.x0 = x0
self.y0 = y0
self.a = a
self.b = b
self.theta = theta
self.Label = Label
self.Name = "ellipse"
class Circle:
def __init__(self,x0=50,y0=50, r=10,Label=0):
self.x0 = x0
self.y0 = y0
self.r = r
self.Label = Label
self.Name = "circle"
class Rectangle:
def __init__(self,x0=50,y0=50, W=50,H=50,theta=0,Label=0):
self.x0 = x0
self.y0 = y0
self.W = W
self.H = H
self.theta = theta
self.Label = Label
self.Name = "rectangle"
class Square:
def __init__(self,x0=50,y0=50, L=50,theta=0,Label=0):
self.x0 = x0
self.y0 = y0
self.L = L
self.theta = theta
self.Label = Label
self.Name = "square"
class Inclusions:
def __init__(self, Diameter=1.0, Fraction=0.10, Label=60):
self.Diameter = Diameter
self.Fraction = Fraction
self.Label = Label
self.Name = "inclusion"
class Concrete2Phase:
def __init__(self, Fraction=0.1, LabelAggregate=40, MinDiameter=0.5, MaxDiameter=10.0,
Grading=0.10, MinAspectRatio=0.5, MaxAspectRatio=0.80):
self.Fraction = Fraction
self.LabelAggregate = LabelAggregate
self.MinDiameter = MinDiameter
self.MaxDiameter = MaxDiameter
self.Grading = Grading
self.MinAspectRatio = MinAspectRatio
self.MaxAspectRatio = MaxAspectRatio
self.Name = "Concrete2Phase"
class Concrete2PhaseImmersion:
def __init__(self, Fraction=0.1, LabelMatrix=40, MinDiameter=0.5, MaxDiameter=10.0,
Grading=0.10, MinAspectRatio=0.5, MaxAspectRatio=0.80,
BoxWidth=50, BoxHeight=50, isCircular=False, LabelAggregate=80):
self.Fraction = Fraction
self.LabelMatrix = LabelMatrix
self.MinDiameter = MinDiameter
self.MaxDiameter = MaxDiameter
self.Grading = Grading
self.MinAspectRatio = MinAspectRatio
self.MaxAspectRatio = MaxAspectRatio
self.BoxWidth = BoxWidth
self.BoxHeight = BoxHeight
self.isCircular = isCircular
self.LabelAggregate = LabelAggregate
self.Name = "Concrete2PhaseImmersion"
class Concrete3Phase:
def __init__(self, Fraction=10, LabelAggregate=40, MinDiameter=0.5, MaxDiameter=10.0,
Grading=0.10, MinAspectRatio=0.5, MaxAspectRatio=0.80,
FractionsAir = 0.01, LabelAir =80, MinDiameterAir=0.5, MaxDiameterAir=1.0, GradingAir=0.1):
self.Fraction = Fraction
self.LabelAggregate = LabelAggregate
self.MinDiameter = MinDiameter
self.MaxDiameter = MaxDiameter
self.Grading = Grading
self.MinAspectRatio = MinAspectRatio
self.MaxAspectRatio = MaxAspectRatio
self.FractionAir = FractionsAir
self.LabelAir = LabelAir
self.MinDiameterAir = MinDiameterAir
self.MaxDiameterAir = MaxDiameterAir
self.GradingAir = GradingAir
self.Name = "Concrete3Phase"
class Concrete3PhaseImmersion:
def __init__(self, LabelMatrix = 40, Fraction=0.1, LabelAggregate=80, MinDiameter=0.5, MaxDiameter=10.0,
Grading=0.10, MinAspectRatio=0.5, MaxAspectRatio=0.80,
FractionsAir = 0.01, LabelAir =120, MinDiameterAir=0.5, MaxDiameterAir=1.0, GradingAir=0.1,
BoxWidth=50, BoxHeight=50, isCircular=False ):
self.Fraction = Fraction
self.LabelMatrix = LabelMatrix
self.LabelAggregate = LabelAggregate
self.MinDiameter = MinDiameter
self.MaxDiameter = MaxDiameter
self.Grading = Grading
self.MinAspectRatio = MinAspectRatio
self.MaxAspectRatio = MaxAspectRatio
self.FractionAir = FractionsAir
self.LabelAir = LabelAir
self.MinDiameterAir = MinDiameterAir
self.MaxDiameterAir = MaxDiameterAir
self.GradingAir = GradingAir
self.BoxWidth = BoxWidth
self.BoxHeight = BoxHeight
self.isCircular = isCircular
self.Name = "Concrete3PhaseImmersion"