예제 #1
0
파일: load_model_base.py 프로젝트: xyuan/xc
 def genLstLoadDef(self):
     '''generates a list with the definition of all the wheel loads 
     '''
     deltaL=2*self.slopeDistr*self.hDistr
     ldWheels=list()
     cont=0
     for w in self.loadModel.wheelLoads:
         nm=self.name+str(cont)
         lVect=xc.Vector([0,0,-w.load,0,0,0])
         xCwheel=self.xCentr+w.position.x
         yCwheel=self.yCentr+w.position.y
         basePrism=gu.rect2DPolygon(xCent=xCwheel,yCent=yCwheel,Lx=w.lx+deltaL,Ly=w.ly+deltaL)
         ldWheels.append(loads.PointLoadOverShellElems(nm,self.xcSet,lVect,basePrism,'Z','Global'))
         cont+=1
     return ldWheels
예제 #2
0
#                      - for Y-axis-prism: (x,z)
#                      - for Z-axis-prism: (x,y)
#    prismAxis: axis of the prism (can be equal to 'X', 'Y', 'Z')
#                   (defaults to 'Z')
#    refSystem:  reference system in which loadVector is defined:
#                   'Local': element local coordinate system
#                   'Global': global coordinate system (defaults to 'Global')

prBase = gut.rect2DPolygon(xCent=LbeamX / 2.,
                           yCent=LbeamY / 2.,
                           Lx=0.5,
                           Ly=1.0)
wheelDeck1 = loads.PointLoadOverShellElems(name='wheelDeck1',
                                           xcSet=decklv1,
                                           loadVector=xc.Vector(
                                               [0, 0, -Qwheel]),
                                           prismBase=prBase,
                                           prismAxis='Z',
                                           refSystem='Global')

# Point loads defined in the object lModel, distributed over the shell
# elements under the wheels affected by them.

# syntax: VehicleDistrLoad(name,xcSet,loadModel, xCentr,yCentr,hDistr,slopeDistr)
#      name: name identifying the load
#      xcSet: set that contains the shell elements
#      lModel: instance of the class LoadModel with the definition of
#               vehicle of the load model.
#      xCent: global coord. X where to place the centroid of the vehicle
#      yCent: global coord. Y where  to place the centroid of the vehicle
#      hDistr: height considered to distribute each point load with