← Back to team overview

yade-users team mailing list archive

[Question #660653]: Connect a rod to a horizontal pipe

 

New question #660653 on Yade:
https://answers.launchpad.net/yade/+question/660653

I have made a geometry in which a cylindrical column is kept horizontally inside a sand box. I want to connect a rod vertically to the pipe, such that inside the box, the rod and column make an inverted T shaped figure.

So, far I have written the code for placing the column inside the sand box. I can create a vertical rod, but how to connect the two?
Here's my code:

from yade import pack
from yade import ymport
from yade import plot
from yade import qt

young=5e6

mColumn = O.materials.append(CohFrictMat(young= young,poisson= 0.3,density= 2e3,frictionAngle=radians(0.5),isCohesive= True, normalCohesion= 170e7,shearCohesion=85e7))

def createSandBox(length, height, width, radSpheres, variance, color):
  boxpred = pack.inAlignedBox((0,0.5,-0.5),(length,height,width)) - pack.inCylinder((0.25,1,0), (1.75,1,0), 0.3)
  packing = pack.randomDensePack(boxpred, spheresInCell = 500, radius=radSpheres, rRelFuzz=variance, color=color, returnSpherePack = False)
  return O.bodies.append(packing)

def createStoneColumn(centerBottom, centerTop, radCyl, radSpheres, variance, mat, color):
  cylpred = pack.inCylinder(centerBottom, centerTop, radius=radCyl)
  packing = pack.randomDensePack(cylpred, spheresInCell = 500, radius=radSpheres, rRelFuzz=variance, material=mat, color=color, returnSpherePack = False)
  return O.bodies.append(packing)

idBox = createSandBox(2,1.5,0.5,3e-2,0,(1,0.917,0.659))
idStone = createStoneColumn((0.25,1,0),(1.75,1,0),0.3,2e-2,0, mColumn, (1,0.646,0.361))

Regards
Hashir

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.