-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsectionFiberMain.py
387 lines (375 loc) · 23.5 KB
/
sectionFiberMain.py
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
######################################################################################
# Author: Junjun Guo
# E-mail: [email protected]/[email protected]
# Date: 05/02/2020
# Environemet: Successfully excucted in python 3.8
######################################################################################
import matplotlib.pyplot as plt
from fiberGenerate import CircleSection,PolygonSection,figureSize
######################################################################################
def circleSection(sectionName,outD,coverThick,outbarD,outbarDist,coreSize,coverSize,plot=False,inD=None,inBarD=None,inBarDist=None):
"""
#####################################################################
def circleSection(outD,coverThick,outbarD,outbarDist,coreSize,coverSize,plot=False,inD=None,inBarD=None,inBarDist=None)
Input:
---outD # the diameter of the outside circle
---coverThick # the thinckness of the cover concrete
---outbarD # outside bar diameter
---outbarDist # outside bar space
---coreSize # the size of core concrete fiber
---coverSize # the size of cover concrete fiber
---plot #plot the fiber or not plot=True or False
---inD # the diameter of the inner circle,if not inD=None
---inBarD # inside bar diameter, if not inBarD=None
---inBarDist # inside bar space,if not inBarDist=None
Output:
---coreFiber,coverFiber,barFiber #core concrete, cover concrete anb bar fibers information
for eaxample coreFiber=[(y1,z1,area1),(y2,y2,area2),...], y1,z1 is the fiber coordinate values in loacal y-z plane
area1 is the fiber area
#####################################################################
#######################---solid circle example---#####################
outD=2 # the diameter of the outside circle
coverThick=0.1 # the thinckness of the cover concrete
outbarD=0.03 # outside bar diameter
outbarDist=0.15 # outside bar space
coreSize=0.2 # the size of core concrete fiber
coverSize=0.2 # the size of cover concrete fiber
plotState=False # plot the fiber or not plot=True or False
corFiber,coverFiber,barFiber=circleSection(outD, coverThick, outbarD, outbarDist, coreSize, coverSize,plotState)
######################################################################
##################---circle with a hole example---####################
outD = 2 # the diameter of the outside circle
coverThick = 0.06 # the thinckness of the cover concrete
outbarD = 0.03 # outside bar diameter
outbarDist = 0.15 # outside bar space
coreSize = 0.1 # the size of core concrete fiber
coverSize = 0.1 # the size of cover concrete fiber
plotState = True # plot the fiber or not plot=True or False
inD =1 # the diameter of the inside circle
inBarD=0.03 # inside bar diameter
inBarDist=0.15 # inside bar space
corFiber, coverFiber, barFiber = circleSection(outD, coverThick, outbarD, outbarDist, coreSize, coverSize,
plotState,inD,inBarD,inBarDist)
######################################################################
"""
circleInstance = CircleSection(coverThick, outD, inD) # call the circle section generate class
xListPlot, yListPlot = circleInstance.initSectionPlot() # plot profile of the circle
# generate core concrete fiber elements
coreFiber, pointsPlot, trianglesPlot = circleInstance.coreMesh(coreSize)
# generate cover concrete fiber elements
coverFiber, coverXListPlot, coverYListPlot, xBorderPlot, yBorderPlot = circleInstance.coverMesh(coverSize)
# generate the bar fiber elements
barFiber, barXListPlot, barYListPlot = circleInstance.barMesh(outbarD, outbarDist, inBarD, inBarDist)
if plot==True:
outSideNode = {1: (-outD,-outD), 2: (outD,outD)}
w, h = figureSize(outSideNode)
fig = plt.figure(figsize=(w, h))
ax = fig.add_subplot(111)
for eachx, eachy in zip(xListPlot, yListPlot):
ax.plot(eachx, eachy, "r", linewidth=1, zorder=2)
ax.triplot(pointsPlot[:, 0], pointsPlot[:, 1], trianglesPlot)
for coverx, covery in zip(coverXListPlot, coverYListPlot):
ax.plot(coverx, covery, "r", linewidth=1, zorder=2)
for borderx, bordery in zip(xBorderPlot, yBorderPlot):
ax.plot(borderx, bordery, "r", linewidth=1, zorder=2)
for barx, bary in zip(barXListPlot, barYListPlot):
ax.scatter(barx, bary, s=10, c="k", zorder=3)
plt.savefig(sectionName+".eps")
plt.savefig(sectionName+".jpg")
plt.show()
else:
pass
return coreFiber,coverFiber,barFiber
######################################################################################
######################################################################################
######################################################################################
def polygonSection(sectionName,outSideNode,outSideEle,coverThick,coreSize,coverSize,outBarD,outBarDist,\
plot=False,autoBarMesh=True,userBarNodeDict=None,userBarEleDict=None,inSideNode=None,\
inSideEle=None,inBarD=None,inBarDist=None):
"""
Input:
---outSideNode # the outside vertexes consecutively numbering and coordinate values in local y-z plane in dict container
---outSideEle # the outside vertexes loop consecutively numbering in dict container
---coverThick # the thinck of the cover concrete
---coreSize # the size of the core concrete fiber elements
---coverSize # the size of the cover concrete fiber elements
---outBarD # outside bar diameter
---outBarDist # outside bar space
---plot=True # plot the fiber or not plot=True or False
---autoBarMesh=True # generate the bar fiber automatically, otherwise manually provide the bar divide information
---userBarNodeDict=None# {1:(y1,z1),2:(y2,z2),...}
---userBarEleDict=None #{1:(nodeI,nodeJ,barD,barDist)}
---inSideNode #the inside vertexes consecutively numbering and coordinate values in local y-z plane in list container
---inSideEle # the inside vertexes loop consecutively numbering in list container
---inBarD #inside bar diameter
---inBarDist #inside bar space
Output:
---coreFiber,coverFiber,barFiber #core concrete, cover concrete anb bar fibers information
for eaxample coreFiber=[(y1,z1,area1),(y2,y2,area2),...], y1,z1 is the fiber coordinate values in loacal y-z plane
area1 is the fiber area
#####################################################################
################---solid polygon section example---##################
# the outside vertexes consecutively numbering and coordinate values in local y-z plane in dict container
outSideNode = {1: (3.5, 3), 2: (1.5, 5), 3: (-1.5, 5), 4: (-3.5, 3), 5: (-3.5, -3), 6: (-1.5, -5), 7: (1.5, -5),
8: (3.5, -3)}
# the outside vertexes loop consecutively numbering in dict container
outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 1)}
coverThick = 0.06 # the thinck of the cover concrete
coreSize = 0.2 # the size of the core concrete fiber elements
coverSize = 0.3 # the size of the cover concrete fiber elements
outBarD = 0.032 # outside bar diameter
outBarDist = 0.2 # outside bar space
plotState=True # plot the fiber or not plot=True or False
autoBarMesh=True #if false provide the barControlNodeDict and barEleDict
userBarNodeDict=None # {1:(y1,z1),2:(y2,z2),...} bar line end nodes
userBarEleDict=None # {1:(nodeI,nodeJ,barD,barDist),...} bar line end nodes number and diameter and distance
coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
outBarD, outBarDist,plotState,autoBarMesh)
#####################################################################
############---PolygenThreeHole section fiber generate example---##############
outSideNode = {1: (0, 0), 2: (7, 0), 3: (7,3), 4: (0, 3)}
# the outside vertexes loop consecutively numbering in dict container
outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4,1)}
# the inside vertexes consecutively numbering and coordinate values in local y-z plane in list container
inSideNode = [
{1: (1, 1), 2: (2, 1), 3: (2, 2), 4: (1, 2)},
{1: (3, 1), 2: (4, 1), 3: (4, 2), 4: (3, 2)},
{1: (5, 1), 2: (6, 1), 3: (6, 2), 4: (5, 2)}]
# the inside vertexes loop consecutively numbering in dict container
inSideEle = [{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)},
{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)},
{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)}]
coverThick = 0.06 # the thinck of the cover concrete
coreSize = 0.2 # the size of the core concrete fiber elements
coverSize = 0.3 # the size of the cover concrete fiber elements
outBarD = 0.032 # outside bar diameter
outBarDist = 0.2 # outside bar space
plotState = True # plot the fiber or not plot=True or False
autoBarMesh=True #if false provide the barControlNodeDict and barEleDict
userBarNodeDict=None
userBarEleDict=None
inBarD=0.032 # inside bar diameter (None)
inBarDist=0.2 # inside bar space (None)
coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
outBarD, outBarDist,plotState,autoBarMesh,userBarNodeDict,userBarEleDict,\
inSideNode,inSideEle,inBarD,inBarDist)
#####################################################################
############---polygon with one hole section user bar mesh example example---###########
from sectionFiberMain import polygonSection
# the outside vertexes consecutively numbering and coordinate values in local y-z plane in dict container
outSideNode = {1: (2.559, 2.1), 2: (-2.559, 2.1), 3: (-2.559, 1.6), 4: (-3.059, 1.6), 5: (-3.059, -1.6),
6: (-2.559, -1.6), 7: (-2.559, -2.1), 8: (2.559, -2.1), 9: (2.559, -1.6), 10: (3.059, -1.6), 11: (3.059, 1.6),
12: (2.559, 1.6)}
# the outside vertexes loop consecutively numbering in dict container
outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 9), 9: (9, 10),\
10: (10, 11), 11: (11, 12), 12: (12, 1)}
# the inside vertexes consecutively numbering and coordinate values in local y-z plane in list container
inSideNode = [{1: (1.809, 1.35), 2: (-1.809, 1.35), 3: (-2.309, 0.85), 4: (-2.309, -0.85), 5: (-1.809, -1.35), \
6: (1.809, -1.35), 7: (2.309, -0.85), 8: (2.309, 0.85)}] ##(None)
# the inside vertexes loop consecutively numbering in dict container
inSideEle = [{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 1)}]
coverThick = 0.06 # the thinck of the cover concrete
coreSize = 0.2 # the size of the core concrete fiber elements
coverSize = 0.3 # the size of the cover concrete fiber elements
outBarD = 0.032 # outside bar diameter(None)
outBarDist = 0.2 # outside bar space (None)
plotState=True # plot the fiber or not plot=True or False
autoBarMesh=False #if false provide the barControlNodeDict and barEleDict
userBarNodeDict={1: (2.975, 1.516), 2: (2.475, 1.516), 3: (2.475, 2.016), 4: (-2.475, 2.016), 5: (-2.475, 1.516),
6: (-2.975, 1.516),7: (-2.975, -1.516), 8: (-2.475, -1.516), 9: (-2.475, -2.016), 10: (2.475, -2.016),
11: (2.475, -1.516), 12: (2.975, -1.516)} #{1:(y1,z1),2:(y2,z2),...} (None)
userBarEleDict={1: (1, 2,0.01,0.2), 2: (2, 3,0.01,0.2), 3: (3, 4,0.01,0.2), 4: (4, 5,0.01,0.2),\
5: (6, 5,0.01,0.2), 6: (5, 2,0.01,0.2), 7: (7, 8,0.01,0.2), 8: (8, 9,0.01,0.2), 9: (9, 10,0.01,0.2),
10: (10, 11,0.01,0.2), 11: (12, 11,0.01,0.2), 12: (11, 8,0.01,0.2),\
} #{1:(nodeI,nodeJ,barD,barDist)}(None)
inBarD=0.032 # inside bar diameter (None)
inBarDist=0.2 # inside bar space (None)
coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
outBarD, outBarDist,plotState,autoBarMesh,userBarNodeDict,userBarEleDict,\
inSideNode,inSideEle,inBarD,inBarDist)
######################################################################
"""
sectInstance = PolygonSection(outSideNode, outSideEle, inSideNode, inSideEle)
originalNodeListPlot = sectInstance.sectPlot() # [([x1,x2],[y1,y2]),([].[])]
outLineList, coverlineListPlot = sectInstance.coverLinePlot(coverThick)
if inSideNode==None:
sectInstance = PolygonSection(outSideNode, outSideEle)
originalNodeListPlot = sectInstance.sectPlot() # [([x1,x2],[y1,y2]),([].[])]
outLineList, coverlineListPlot = sectInstance.coverLinePlot(coverThick)
coreFiber, pointsPlot, trianglesPlot = sectInstance.coreMesh(coreSize, outLineList)
coverFiber, outNodeReturnPlot, inNodeReturnPlot = sectInstance.coverMesh(coverSize, coverThick)
if autoBarMesh==True:
barFiber, barXListPlot, barYListPlot = sectInstance.barMesh(outBarD, outBarDist, coverThick)
elif autoBarMesh==False:
barFiber, barXListPlot, barYListPlot=sectInstance.userBarMesh(userBarNodeDict,userBarEleDict)
else:
print("Please input True or False!")
else:
sectInstance = PolygonSection(outSideNode, outSideEle, inSideNode, inSideEle)
originalNodeListPlot = sectInstance.sectPlot()
outLineList, coverlineListPlot = sectInstance.coverLinePlot(coverThick)
inLineList, innerLineListPlot = sectInstance.innerLinePlot(coverThick)
coreFiber, pointsPlot, trianglesPlot = sectInstance.coreMesh(coreSize, outLineList, inLineList)
coverFiber, outNodeReturnPlot, inNodeReturnPlot = sectInstance.coverMesh(coverSize, coverThick)
if autoBarMesh==True:
barFiber, barXListPlot, barYListPlot = sectInstance.barMesh(outBarD, outBarDist, coverThick, inBarD, inBarDist)
elif autoBarMesh==False:
barFiber, barXListPlot, barYListPlot=sectInstance.userBarMesh(userBarNodeDict,userBarEleDict)
else:
print("Please input True or False!")
if inSideNode==None and plot==True:
w, h = figureSize(outSideNode)
fig = plt.figure(figsize=(w, h))
ax = fig.add_subplot(111)
coverColor = "r"
coreColor = "b"
lineWid = 1
barMarkSize = 20
barColor = "k"
for each1 in originalNodeListPlot:
ax.plot(each1[0], each1[1], coverColor, lineWid, zorder=0)
for each2 in coverlineListPlot:
ax.plot(each2[0], each2[1], coverColor, lineWid, zorder=1)
ax.triplot(pointsPlot[:, 0], pointsPlot[:, 1], trianglesPlot, c=coreColor, lw=lineWid)
for i1 in range(len(outNodeReturnPlot) - 1):
ax.plot([inNodeReturnPlot[i1][0], outNodeReturnPlot[i1][0]],
[inNodeReturnPlot[i1][1], outNodeReturnPlot[i1][1]],
coverColor, linewidth=lineWid, zorder=0)
ax.scatter(barXListPlot, barYListPlot, s=barMarkSize, c=barColor, linewidth=lineWid, zorder=2)
plt.savefig(sectionName+".eps")
plt.savefig(sectionName+".jpg")
plt.show()
elif inSideNode!=None and plot==True:
w, h = figureSize(outSideNode)
fig = plt.figure(figsize=(w, h))
ax = fig.add_subplot(111)
coverColor = "r"
coreColor = "b"
lineWid = 1
barMarkSize = 20
barColor = "k"
for each1 in originalNodeListPlot:
ax.plot(each1[0], each1[1], coverColor, lineWid, zorder=0)
for each2 in coverlineListPlot:
ax.plot(each2[0], each2[1], coverColor, lineWid, zorder=1)
for each3 in innerLineListPlot:
ax.plot(each3[0], each3[1], coverColor, lineWid, zorder=1)
ax.triplot(pointsPlot[:, 0], pointsPlot[:, 1], trianglesPlot, c=coreColor, lw=lineWid)
for i1 in range(len(outNodeReturnPlot) - 1):
ax.plot([inNodeReturnPlot[i1][0], outNodeReturnPlot[i1][0]],
[inNodeReturnPlot[i1][1], outNodeReturnPlot[i1][1]],
coverColor, linewidth=lineWid, zorder=0)
ax.scatter(barXListPlot, barYListPlot, s=barMarkSize, c=barColor, linewidth=lineWid, zorder=2)
plt.savefig(sectionName+".eps")
plt.savefig(sectionName+".jpg")
plt.show()
else:
pass
return coreFiber,coverFiber,barFiber
######################################################################################
# if __name__ == "__main__":
###################---solid circle---################
####################################################
# outD=2 # the diameter of the outside circle
# coverThick=0.1 # the thinckness of the cover concrete
# outbarD=0.03 # outside bar diameter
# outbarDist=0.15 # outside bar space
# coreSize=0.2 # the size of core concrete fiber
# coverSize=0.2 # the size of cover concrete fiber
# plotState=True # plot the fiber or not plot=True or False
# corFiber,coverFiber,barFiber=circleSection(outD, coverThick, outbarD, outbarDist, coreSize, coverSize,plotState)
###################---circle with a hole ---################
####################################################
# outD = 2 # the diameter of the outside circle
# coverThick = 0.06 # the thinckness of the cover concrete
# outbarD = 0.03 # outside bar diameter
# outbarDist = 0.15 # outside bar space
# coreSize = 0.1 # the size of core concrete fiber
# coverSize = 0.1 # the size of cover concrete fiber
# plotState = True # plot the fiber or not plot=True or False
# inD =1 # the diameter of the inside circle
# inBarD=0.03 # inside bar diameter
# inBarDist=0.15 # inside bar space
# corFiber, coverFiber, barFiber = circleSection(outD, coverThick, outbarD, outbarDist, coreSize, coverSize,
# plotState,inD,inBarD,inBarDist)
# ############---solid polygon section ---############
####################################################
# # the outside vertexes consecutively numbering and coordinate values in local y-z plane in dict container
# outSideNode = {1: (3.5, 3), 2: (1.5, 5), 3: (-1.5, 5), 4: (-3.5, 3), 5: (-3.5, -3), 6: (-1.5, -5), 7: (1.5, -5),
# 8: (3.5, -3)}
# # the outside vertexes loop consecutively numbering in dict container
# outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 1)}
# coverThick = 0.06 # the thinck of the cover concrete
# coreSize = 0.2 # the size of the core concrete fiber elements
# coverSize = 0.3 # the size of the cover concrete fiber elements
# outBarD = 0.032 # outside bar diameter
# outBarDist = 0.2 # outside bar space
# plotState=True # plot the fiber or not plot=True or False
# autoBarMesh=True #if false provide the barControlNodeDict and barEleDict
# userBarNodeDict=None
# userBarEleDict=None
# coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
# outBarD, outBarDist,plotState,autoBarMesh)
#####################################################################
############---polygon with one hole section user bar mesh example---##############
# the outside vertexes consecutively numbering and coordinate values in local y-z plane in dict container
# outSideNode = {1: (2.559, 2.1), 2: (-2.559, 2.1), 3: (-2.559, 1.6), 4: (-3.059, 1.6), 5: (-3.059, -1.6),
# 6: (-2.559, -1.6), 7: (-2.559, -2.1), 8: (2.559, -2.1), 9: (2.559, -1.6), 10: (3.059, -1.6), 11: (3.059, 1.6),
# 12: (2.559, 1.6)}
# # the outside vertexes loop consecutively numbering in dict container
# outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 9), 9: (9, 10),\
# 10: (10, 11), 11: (11, 12), 12: (12, 1)}
# # the inside vertexes consecutively numbering and coordinate values in local y-z plane in list container
# inSideNode = [{1: (1.809, 1.35), 2: (-1.809, 1.35), 3: (-2.309, 0.85), 4: (-2.309, -0.85), 5: (-1.809, -1.35), \
# 6: (1.809, -1.35), 7: (2.309, -0.85), 8: (2.309, 0.85)}] ##(None)
# # the inside vertexes loop consecutively numbering in dict container
# inSideEle = [{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 5), 5: (5, 6), 6: (6, 7), 7: (7, 8), 8: (8, 1)}]
# coverThick = 0.06 # the thinck of the cover concrete
# coreSize = 0.2 # the size of the core concrete fiber elements
# coverSize = 0.3 # the size of the cover concrete fiber elements
# outBarD = 0.032 # outside bar diameter(None)
# outBarDist = 0.2 # outside bar space (None)
# plotState=True # plot the fiber or not plot=True or False
# autoBarMesh=False #if false provide the barControlNodeDict and barEleDict
# userBarNodeDict={1: (2.975, 1.516), 2: (2.475, 1.516), 3: (2.475, 2.016), 4: (-2.475, 2.016), 5: (-2.475, 1.516),
# 6: (-2.975, 1.516),7: (-2.975, -1.516), 8: (-2.475, -1.516), 9: (-2.475, -2.016), 10: (2.475, -2.016),
# 11: (2.475, -1.516), 12: (2.975, -1.516)} #{1:(y1,z1),2:(y2,z2),...} (None)
# userBarEleDict={1: (1, 2,0.01,0.2), 2: (2, 3,0.01,0.2), 3: (3, 4,0.01,0.2), 4: (4, 5,0.01,0.2),\
# 5: (6, 5,0.01,0.2), 6: (5, 2,0.01,0.2), 7: (7, 8,0.01,0.2), 8: (8, 9,0.01,0.2), 9: (9, 10,0.01,0.2),
# 10: (10, 11,0.01,0.2), 11: (12, 11,0.01,0.2), 12: (11, 8,0.01,0.2),\
# } #{1:(nodeI,nodeJ,barD,barDist)}(None)
# inBarD=0.032 # inside bar diameter (None)
# inBarDist=0.2 # inside bar space (None)
# coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
# outBarD, outBarDist,plotState,autoBarMesh,userBarNodeDict,userBarEleDict,\
# inSideNode,inSideEle,inBarD,inBarDist)
#####################################################################
# ############---polygon with three holes section example---###########
# outSideNode = {1: (0, 0), 2: (7, 0), 3: (7,3), 4: (0, 3)}
# # the outside vertexes loop consecutively numbering in dict container
# outSideEle = {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4,1)}
# # the inside vertexes consecutively numbering and coordinate values in local y-z plane in list container
# inSideNode = [
# {1: (1, 1), 2: (2, 1), 3: (2, 2), 4: (1, 2)},
# {1: (3, 1), 2: (4, 1), 3: (4, 2), 4: (3, 2)},
# {1: (5, 1), 2: (6, 1), 3: (6, 2), 4: (5, 2)}]
# # the inside vertexes loop consecutively numbering in dict container
# inSideEle = [{1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)},
# {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)},
# {1: (1, 2), 2: (2, 3), 3: (3, 4), 4: (4, 1)}]
# coverThick = 0.06 # the thinck of the cover concrete
# coreSize = 0.2 # the size of the core concrete fiber elements
# coverSize = 0.3 # the size of the cover concrete fiber elements
# outBarD = 0.032 # outside bar diameter
# outBarDist = 0.2 # outside bar space
# plotState = True # plot the fiber or not plot=True or False
# autoBarMesh=True #if false provide the barControlNodeDict and barEleDict
# userBarNodeDict=None
# userBarEleDict=None
# inBarD=0.032 # inside bar diameter (None)
# inBarDist=0.2 # inside bar space (None)
# coreFiber,coverFiber,barFiber=polygonSection(outSideNode, outSideEle, coverThick, coreSize, coverSize,\
# outBarD, outBarDist,plotState,autoBarMesh,userBarNodeDict,userBarEleDict,\
# inSideNode,inSideEle,inBarD,inBarDist)
#####################################################################
# print(help(polygonSection))