summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeepa-chaudhari2015-06-07 23:38:40 +0530
committerdeepa-chaudhari2015-06-07 23:38:40 +0530
commita57cb415d3873120a89e3bd71aac75afba4c4a74 (patch)
tree1876123ed02a95aaa5788fd1e48a462c4eb26058
parenta8062568cf18cdf18eceddfec5bacfc6617fdd6e (diff)
downloadOsdagLive-a57cb415d3873120a89e3bd71aac75afba4c4a74.tar.gz
OsdagLive-a57cb415d3873120a89e3bd71aac75afba4c4a74.tar.bz2
OsdagLive-a57cb415d3873120a89e3bd71aac75afba4c4a74.zip
working on nutbolt assembly
-rw-r--r--Connections/Shear/Finplate/nutBoltPlacement.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/Connections/Shear/Finplate/nutBoltPlacement.py b/Connections/Shear/Finplate/nutBoltPlacement.py
new file mode 100644
index 0000000..ea4b79b
--- /dev/null
+++ b/Connections/Shear/Finplate/nutBoltPlacement.py
@@ -0,0 +1,41 @@
+'''
+Created on 07-Jun-2015
+
+@author: deepa
+'''
+import numpy
+
+class NutBoltArray():
+ def __init__(self,boltPlaceObj,nut,bolt):
+
+ self.pitch = boltPlaceObj['Bolt']['pitch']
+ self.gauge = boltPlaceObj['Bolt']['gauge']
+ self.edge = boltPlaceObj['Bolt']['edge']
+ self.end = boltPlaceObj['Bolt']['enddist']
+ self.row = boltPlaceObj['Bolt']['numofrow']
+ self.col = boltPlaceObj['Bolt']['numofcol']
+ self.gap = boltPlaceObj['beam_tw'] + boltPlaceObj['plate_thick']
+ self.nut = nut
+ self.bolt = bolt
+ self.origin = numpy.array([0.0, 0.0, 0])
+ self.uDir = numpy.array([1.0, 0.0, 0])
+ self.vDir = numpy.array([0.0, 1.0, 0])
+ self.positions = []
+ for rw in range(1,(len(self.row)+1)):
+ for col in range(self.col):
+ pos = self.pitch +(self.edge + (col * self.gauge))* self.uDir + (rw * self.pitch) * self.vDir
+ self.positions.append(pos)
+
+
+ def place(self, secOrigin, uDir, vDir):
+ for pos in self.position:
+ self.bolt.place(pos,uDir,vDir)
+ self.nut.place(pos + self.gap,uDir,vDir)
+
+ def createModel(self):
+
+ pass
+ def getnutboltModel(self):
+ pass
+
+ \ No newline at end of file