yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07182
Re: [Question #223478]: Ball bouncing on the wall
Question #223478 on Yade changed:
https://answers.launchpad.net/yade/+question/223478
Status: Answered => Open
Majid Ashraf is still having a problem:
Hello Jan,
Thanks for the thumbs up on my problem. I am using Yade
0.70.0 and my friend compiled it for me. I wrote the whole syntax in
IPython and then used yade to recall that using .py extension. I am not
getting any syntax errors but the ball is passing through the wall instead
of bouncing. I have also attached a picture which will give you a better
idea of what's going on.
Best Regards,
Majid
On Tue, Mar 5, 2013 at 1:55 PM, Jan Stránský <
question223478@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Your question #223478 on Yade changed:
> https://answers.launchpad.net/yade/+question/223478
>
> Status: Open => Answered
>
> Jan Stránský proposed the following answer:
> Hello Majid,
>
> from what you wrote, it is very hard to say what is the reason.. To help
> you, we will need some more information. Firstly, what version of Yade you
> are using and how you compiled it. Then how you run your code (from script
> or from IPython). Also why it is not working - do you get some errors or
> the program does something different from what you want?
>
> so please provide us with these information and hopefully we will be able
> to help you :-)
> Best regards
> Jan
>
>
> I run your script without any errors..
>
>
> > 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.
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-users
> > Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-users
> > More help : https://help.launchpad.net/ListHelp
> >
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/yade/+question/223478/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/yade/+question/223478
>
> You received this question notification because you asked the question.
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.