Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-27 Thread chiara modenese
On 27 April 2010 17:13, Bruno Chareyre wrote: > > I was only testing a contact law forcing displacements, but now I realize >> that the best way to check that is actually applying a force (constant or >> variable in time) or an initial velocity (in the way you suggest). >> > Ok. For this proble

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-27 Thread Bruno Chareyre
I was only testing a contact law forcing displacements, but now I realize that the best way to check that is actually applying a force (constant or variable in time) or an initial velocity (in the way you suggest). Ok. For this problem, I would simply block DOF's and assign constant velocit

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-27 Thread chiara modenese
On 27 April 2010 12:53, Bruno Chareyre wrote: > > Would not just be simply an initial velocity you assign, which might >> change once your body hits another one, isn't it? >> > In that case, you just assign an initial velocity (body.vel=.., no engine, > no blocked DOF). This is not what I call a

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-27 Thread Bruno Chareyre
Would not just be simply an initial velocity you assign, which might change once your body hits another one, isn't it? In that case, you just assign an initial velocity (body.vel=.., no engine, no blocked DOF). This is not what I call a "prescribed-something" body, just the usual dynamic body

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-26 Thread chiara modenese
On 26 April 2010 11:49, Bruno Chareyre wrote: > >> Prescribing displacement (even by fixing position of >> support) means that energy might disappear from the system... >> > This is what I was trying to find out, I mean, _why_ that happens.. > >> >> > > By definition, you impose displacement on

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-26 Thread Bruno Chareyre
Prescribing displacement (even by fixing position of support) means that energy might disappear from the system... By definition, you impose displacement on a non-equilibrated body. So that if you impose a displacement "du" on body "i", you provide energy du*force[i] to the system, which

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-26 Thread Václav Šmilauer
> I am not entirely happy with this. I think the result is correct, the > code does what we say to do. However, dose this mean that if you apply > an initial velocity to the body, instead of a force, the coefficient > of restitution would be zero? Sorry if I guess, thanks for comments. Applying d

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-26 Thread chiara modenese
2010/4/25 Václav Šmilauer > > > both TranslationEngine and JumpChangeSe3 work if bodies are dynamic. > > Now I tried a simple sphere-sphere interaction test using the basic > > Law2_ScGeom_FrictPhys_Basic() law. One ball is fixed, the other one is > > moved by using JumpChangeSe3 (setting setVelo

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-25 Thread chiara modenese
2010/4/25 Václav Šmilauer > > > both TranslationEngine and JumpChangeSe3 work if bodies are dynamic. > > Now I tried a simple sphere-sphere interaction test using the basic > > Law2_ScGeom_FrictPhys_Basic() law. One ball is fixed, the other one is > > moved by using JumpChangeSe3 (setting setVelo

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-25 Thread Václav Šmilauer
> both TranslationEngine and JumpChangeSe3 work if bodies are dynamic. > Now I tried a simple sphere-sphere interaction test using the basic > Law2_ScGeom_FrictPhys_Basic() law. One ball is fixed, the other one is > moved by using JumpChangeSe3 (setting setVelocities to true). The only > thing I n

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-24 Thread chiara modenese
2010/4/23 Václav Šmilauer > > > > > Using ScGeom, being the bodies Dynamic and using JumpChangeSe3 should > > work? > > Well let's try again.. I will let you know.. > > Make sure you set > > https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.JumpChangeSe3.setVelocitiesto > true (it i

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread Bruno Chareyre
Yes Bruno, this would be lovely (and perhaps simple to do). Can we (you) do that? Do we already have a sort of DOFs for velocities exactly as for generalized displacements? Apparently, it is already implemented that way. NewtonIntegrator.cpp:182 : blockTranslateDOFs(state->blockedDOFs, st

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread chiara modenese
On 23 April 2010 14:06, Bruno Chareyre wrote: > A logic I found very efficient for this problem (perhaps already possible > in Yade?) is the one of PFC : > You can declare some DOF's fixed for velocities/spins (say, Vx is declared > fixed). > After that, if you set Vx=0, the body doesn't move. If

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread Bruno Chareyre
A logic I found very efficient for this problem (perhaps already possible in Yade?) is the one of PFC : You can declare some DOF's fixed for velocities/spins (say, Vx is declared fixed). After that, if you set Vx=0, the body doesn't move. If you set Vx=something, it will move at constant Vx. If

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread Václav Šmilauer
> Ok, thanks a lot. But how is it that with TranslationEngine doesn't > work? I mean it doesn't because we account for the displacement twice? > I am looking at the code right now but I cannot find out why.. TranslationEngine will work for dynamic bodies, as it only sets velocity, nothing else. I

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread chiara modenese
2010/4/23 Václav Šmilauer > > > > > Using ScGeom, being the bodies Dynamic and using JumpChangeSe3 should > > work? > > Well let's try again.. I will let you know.. > > Make sure you set > > https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.JumpChangeSe3.setVelocitiesto > true (it i

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread Václav Šmilauer
> > Using ScGeom, being the bodies Dynamic and using JumpChangeSe3 should > work? > Well let's try again.. I will let you know.. Make sure you set https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.JumpChangeSe3.setVelocities to true (it is false by default), then it will work. See

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread chiara modenese
2010/4/23 Václav Šmilauer > > > Reading JumpChangeSe3 (wouldn't it be better to call it > > StepChangeSe3, > > or rather StepChange... something else?) code, positions are > > updated "by > > hand" > > > > if(!setVelocities || (setVelocities && !b-

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread Václav Šmilauer
> Reading JumpChangeSe3 (wouldn't it be better to call it > StepChangeSe3, > or rather StepChange... something else?) code, positions are > updated "by > hand" > > if(!setVelocities || (setVelocities && !b->isDynamic)) > >

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-23 Thread chiara modenese
2010/4/19 Václav Šmilauer > > > > > Yes, I confirm (by myself :-) ) that doing so we account for the > > applied displacement twice. Actually this fact is already documented > > and avoid in JumpChangeSe3 class. Maybe we can add a comment also in > > TranslationEngine so that if one wants to use

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-19 Thread Václav Šmilauer
> > Yes, I confirm (by myself :-) ) that doing so we account for the > applied displacement twice. Actually this fact is already documented > and avoid in JumpChangeSe3 class. Maybe we can add a comment also in > TranslationEngine so that if one wants to use it on dynamic bodies, it > knows that

Re: [Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-19 Thread chiara modenese
I then tried to see what happens if I use TranslationEngine. In such case I > can still run the simulation havin non dynamic bodies (and I get the same > result as above). My question is: in this second case, if I set the body I > am forcing to move as dynamic, am I considering twice the applied >

[Yade-users] TranslationEngine Vs JumpChangeSe3

2010-04-19 Thread chiara modenese
Hi Vaclav, I am doing a comparison between TranslationEngine and JumpChangeSe3. I see that using JumpChangeSe3, setting velocities (as I am using ScGeom), and setting the displacement it works fine. What I note is that in this way I am not using NewtonIntegrator at all as bodies are non dynamic,