Re: [Yade-users] displacement time history with python

2010-04-23 Thread Václav Šmilauer
> > Thanks for the updated script, I am using it to see how it works. Give > me a try with the TranslationEngine, I will tell you if I need your > help.. ;) Good. The key to simplicity is to inherit from TranslationEngine and call its own ::action to do the work from the new engine (like

[Yade-users] Open Source DEM with LIGGGHTS

2010-04-23 Thread Christoph Kloss
Dear all, I am pleased to announce the official launch of www.liggghts.com / www.cfdem.com along with the release of the Open Source Discrete Element Particle Simulator LIGGGHTS, version 1.0. LIGGGHTS stands for LAMMPS Improved for General Granular and Granular Heat Transfer Simulations. As this

Re: [Yade-users] displacement time history with python

2010-04-23 Thread chiara modenese
On 23 April 2010 16:12, chiara modenese wrote: > > > 2010/4/23 Václav Šmilauer > >> I updated scripts/test/interpolating-force.py so that it shows something >> meaningful. >> > Hi Vaclav, > I see that in InterpolatingDirectedForceEngine we define our force as a > function of time within _times_

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] displacement time history with python

2010-04-23 Thread chiara modenese
2010/4/23 Václav Šmilauer > I updated scripts/test/interpolating-force.py so that it shows something > meaningful. > Hi Vaclav, I see that in InterpolatingDirectedForceEngine we define our force as a function of time within _times_ variable range. If the variable _wrap_ is set to true, I see we r

Re: [Yade-users] displacement time history with python

2010-04-23 Thread chiara modenese
2010/4/23 Václav Šmilauer > Hi Chia, > > there is > > https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.InterpolatingDirectedForceEnginewhich > you might consider. Implementing analogous > InterpolatingTranslationEngine would be trivial, you can try that; or I can > do it if you nee

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] displacement time history with python

2010-04-23 Thread Václav Šmilauer
I updated scripts/test/interpolating-force.py so that it shows something meaningful. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://h

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] displacement time history with python

2010-04-23 Thread Václav Šmilauer
Hi Chia, there is https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.InterpolatingDirectedForceEngine which you might consider. Implementing analogous InterpolatingTranslationEngine would be trivial, you can try that; or I can do it if you need :-) Cheers, v. > Hi all, > > how ca

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

[Yade-users] displacement time history with python

2010-04-23 Thread chiara modenese
Hi all, how can I impose a force (or better a displacement) changing over time in the simulation (let's say increasing/decreasing)? PyPeriodicRunner? Any examples already done in Yade? cheers, Chiara ___ Mailing list: https://launchpad.net/~yade-users P