-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpolygonWithThreeHoles_Example.py
34 lines (34 loc) · 1.91 KB
/
polygonWithThreeHoles_Example.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
######################################################################################
# Author: Junjun Guo
# E-mail: [email protected]/[email protected]
# Date: 1/16/2021
# Environemet: Successfully excucted in python 3.8
######################################################################################
from sectionFiberMain import polygonSection
name="polygonWithThreeHoles"
outSideNode = {1: (0, 0), 2: (7, 0), 3: (7,3), 4: (0, 3)} # anti-clockwise numbering
# 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)}] # anti-clockwise numbering
# 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(name,outSideNode, outSideEle, coverThick, coreSize, coverSize,\
outBarD, outBarDist,plotState,autoBarMesh,userBarNodeDict,userBarEleDict,\
inSideNode,inSideEle,inBarD,inBarDist)