yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #14077
Re: [Question #446239]: Yade Installation Process
Question #446239 on Yade changed:
https://answers.launchpad.net/yade/+question/446239
Status: Answered => Open
Felipe is still having a problem:
Hello Anton,
As you have requested me, i am sharing the short script below.
#!/usr/bin/python
# -*- coding: utf-8 -*-
from yade.pack import *
from yade import pack,export,qt
from yade import plot
from yade import ymport
#Def of the material which will be used
O.materials.append(FrictMat(density=8803,young=2e7,poisson=1,frictionAngle=.3,label='caixasup'))#kg/m³; Pa(N/m²);
O.materials.append(FrictMat(density=12815,young=2e7,poisson=1,frictionAngle=.3,label='caixainf'))#kg/m³; Pa(N/m²);
O.materials.append(FrictMat(density=.200,young=2e3,poisson=0.3,frictionAngle=0.3,label='spheres'))#kg/m³; Pa(N/m²);
porosity = 0.55
mesh1 = 'caixa_superior_100mm_ascii'
mesh2 = 'caixa_inferior_100mm_ascii'
mesh3 = 'peso1'
rod1 = O.bodies.append(ymport.stl(mesh1+'.stl',wire=True,material='caixasup'))
rod2 = O.bodies.append(ymport.stl(mesh2+'.stl',wire=True,material='caixainf'))
upBox = box( center=(0,210,0), extents=(35,1,35) ,fixed=True,wire=False,material='peso')
p1=O.bodies.append([upBox])
If you need anything else, let me know to provide you.
Best Regards,
Felipe
--
You received this question notification because your team yade-users is
an answer contact for Yade.