yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07180
[Question #223478]: Ball bouncing on the wall
New question #223478 on Yade:
https://answers.launchpad.net/yade/+question/223478
My name is Majid Ashraf and I am doing my Master's in Chemical Engineering from New Jersey Institute Of Technology. I was recently assigned to work on YADE by my professor and he said to start with a simple model i-e ball bouncing on the wall. I have compiled yade and tried making up the syntax for the above model but it's not working.
This is what i am using.
> O.bodies.append([
> utils.wall(position=Vector3(0,1,2),axis=2,sense=1,color=(1,0,0),material=RpmMat,mask=1),
> #utils._commonBodySetup(),
> utils.sphere((0,0,2),.5)
> ])
> O.engines=[
> ForceResetter(),
> InsertionSortCollider([Bo1_Sphere_Aabb()]),
> InteractionLoop(
> [Ig2_Wall_Sphere_ScGeom()],
> [Ip2_FrictMat_FrictMat_FrictPhys()], # collision "physics"
> [Law2_L3Geom_FrictPhys_ElPerfPl()] # contact law -- apply forces
> ),
> GravityEngine(gravity=(0,0,-9.81)),
> # damping: numerical dissipation of energy
> NewtonIntegrator(damping=0.1)
> ]
>
> # set timestep to a fraction of the critical timestep
> # the fraction is very small, so that the simulation is not too fast
> # and the motion can be observed
> O.dt=.5e-4*utils.PWaveTimeStep()
>
> # save the simulation, so that it can be reloaded later, for
> experimentation
> O.saveTmp()
>
> Can anyone please help me out in this regard? I will really appreciate your
> concern. Thanks.
>
> Best Regards,
>
> Majid
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.