Re: [Yade-dev] normalized null quaternion has length 0...

2008-09-17 Thread Václav Šmilauer
Bruno Chareyre napsal(a): Thank you. I don't feel really good now... Do you think some uninitialised quaternions could be used somewhere? Why did you hit this feature? Eh, I found a few moments (hours) later that I actually had code like: Quaternionr q1,q2; q1-s31orientation*qq1.Conjugate();

Re: [Yade-dev] Shop::unbalancedForce

2008-09-24 Thread Václav Šmilauer
I also hope that such generic interactions will reduce code duplication (for instance, there is unbalancedForce computation in Triaxial, but now it can use this function). Very good. I get it you modified the class hierarchy, or NormalShearI has been here for a while and I didn't

[Yade-dev] calling EngineUnit::go to create persistent interaction?

2008-10-06 Thread Václav Šmilauer
Hi, do we have some plan how to use existing EngineUnits to create persistent interactions, i.e. transient but requested explicitly, not using the collider? We need to disable proximity checks (see IS2IS4SCG) so that the interaction can be created even if the spheres are too far away. I thought

Re: [Yade-dev] ContactLaw1

2008-10-10 Thread Václav Šmilauer
It sounds good to me, except for two ascpects : - it will require different geometry classes for different constitutive laws, because if you don't have moment at contacts, you don't want a geometry class computing relative rotations (waste of time). SpheresContactGeometry::hasShear determines

Re: [Yade-dev] Problem with DeusExMachina('TranslationEngine', {'subscribedBodies':[idWall], 'velocity':[x, y, z]}) on Python

2008-10-28 Thread Václav Šmilauer
BTW for the colors problem, there is utils.randomizeColors() of which existence I forgot. Also, I changed utils.sphere etc to have random color by default, since it makes no sense to have white by default... I just commited that now (1563) Vaclav ___

[Yade-dev] detecting cutpaste in yade

2008-12-14 Thread Václav Šmilauer
Hi, using http://pmd.sourceforge.net, I got results on code that is duplicated in our codebase. See the results here: http://beta.arcig.cz/~eudoxos/yade/cut-and-paste.detected.txt.gz ... Vaclav ___ Mailing list: https://launchpad.net/~yade-dev Post to

Re: [Yade-dev] dynamic_cast from Engine* to BroadInteractor* failed

2009-01-23 Thread Václav Šmilauer
sega napsal(a): Hi, all! I have failed dynamic_cast from Engine* to BroadInteractor*. Can anybody tell me why? Maybe http://article.gmane.org/gmane.science.physics.yade.devel/584/ , if not, I will check what you attached in a few days. HTH, V.

[Yade-dev] multiple 3d views global GL lock

2009-01-31 Thread Václav Šmilauer
Hi, I just commited code that among other introduces GL mutex the allows GL manipulation from other threads. In brief, paintGL (which is called periodically and contains preDraw, draw and postDraw methods) tries to lock the mutex, but returns if it fails (no deadlock). Other threads, like from

[Yade-dev] ConstitutiveLawDispatcher wiki

2009-02-08 Thread Václav Šmilauer
Hello everybody, I just commited new MetaEngine (ConstitutiveLawDispatcher) for dispatching interaction solvers (ConstitutiveLaw) based on interaction geometry and physics classes. There is a sample ConstutituveLaw called ef2_Spheres_NormalShear_ElasticFrictionalLaw. This is a necessary step to

[Yade-dev] shared_ptrPhysicalAction

2009-02-16 Thread Václav Šmilauer
Hi there, any reason PhysicalActionContainer contains shared_ptr's? Wouldn't it be better to contain just array of PhysicalActions? It would allow for very fast resetting with memset(action[0],0,sizeof(thisAction)) and perhaps would save some shared_ptr overhead we have currently. V.

[Yade-dev] removing PhysicalAction genericity?

2009-02-21 Thread Václav Šmilauer
Hi, I would like to have some discussion whether it would be OK to remove generic PhysicalAction approach and replace it by handful of hard-coded physical actions. Now, there is just Force and Momentum (and Stiffness, which doesn't really count) and there was not anything added since I remember.

Re: [Yade-dev] removing PhysicalAction genericity?

2009-02-21 Thread Václav Šmilauer
(2) or it will be two (and more) separate vectors: vector Vector3r _force; vector Vector3r _momentum; vector SomeComplexAction _complexAction; I like this one better, too. According to http://herbsutter.wordpress.com/2008/04/07/cringe-not-vectors-are-guaranteed-to-be-contiguous/,

[Yade-dev] Wm3 replacement candidate

2009-02-22 Thread Václav Šmilauer
Hi, I stumbled upon http://eigen.tuxfamily.org, nice math library that would suit our needs to replace wm3 with which we had a few problems (recently, but not only). It is actively developed, seems stable, packaged for a many distributions and used by big pieces of software (krita, some chemistry

Re: [Yade-dev] Wm3 replacement candidate

2009-02-22 Thread Václav Šmilauer
What are you looking for exactly? More than vector3 and quaternions? Rather something, as you say serious and maintained. We're on our own with bugs (or questions) in wm3... I posted one question about eigen on their forum and I got reply in 1 hour, that's sort of nice. Anyway, lot of work and

Re: [Yade-dev] plain `svn up` breaks stuff

2009-02-23 Thread Václav Šmilauer
You skipped the 1st one. I reproduced it on two different machines. XMLFormatManager is not detected, although it is loaded. I know, that's what meant by I will have a look at that. Weird, since it works from python. I was changing the way plugins register, that might be the cause. V.

Re: [Yade-dev] static_assert warning

2009-03-01 Thread Václav Šmilauer
Add -Wno-c++0x to CXXFLAGS. It could be turned on by default, but g++ 3.x doesn't know this option and it would therefore break defaul compilation for such machines. V. I get this message often enough to make it annoying: warning: identifier `static_assert' will become a keyword in C++0x

Re: [Yade-dev] collider benchmark errors

2009-03-01 Thread Václav Šmilauer
out of curiosity I launched the benchmark, thanks to the fact that it is so easy to do. It's a 16core x7...@2.93ghz Thanks for spotting that. It was both TriaxialTest error (defaultDt is wrong by a few orders) as well as regresison I introduced to Shop::loadSpheresFromFile yesterday. It

Re: [Yade-dev] [Yade-users] Python and Generator

2009-03-01 Thread Václav Šmilauer
[sorry to have sent that to your private mail first] I have written a script in python that should work properly, but generator will not recognize the file and create a .xml file. How can I create a .xml file from my python script? Have a look at scripts/simple-scene.py. After you've setup

[Yade-dev] contact logic (again)

2009-03-01 Thread Václav Šmilauer
Hi, based on the collider benchmark I thought new collider could be developed (someone? Nice topic for diploma thesis: google NBC contact detection or munjiza-rougier and other). For that reason, I renamed BroadInteractor to Collider and I would like to move collider-independent logic there.

Re: [Yade-dev] defaultDt in TriaxialTest

2009-03-02 Thread Václav Šmilauer
Dne 2.3.2009 14:10, Bruno Chareyre napsal(a): I agree with anything that works correclty. If PWave is ok, go for it. The hardcoded value is correct for default TriaxialTest, nothing more. OK, I will make the default -1, which will mean to use PWave, otherwise if it is specified by hand (0),

Re: [Yade-dev] contact logic (again)

2009-03-02 Thread Václav Šmilauer
A quick review found nothing wrong. I was just a little surprised by the fact interactions are erased in 2 different places (in the core of action() and in updateOverlapingBBset). I don't think this is a recent change though. Yes, it's been there since long. InteractionGeometryMetaEngine

Re: [Yade-dev] [svn] r1709

2009-03-04 Thread Václav Šmilauer
I see you modified SDECLinkedSpheres.cpp, so can I ask what did you modify? because in the past this simulation always crash, I am not sure anybody have fixed it or not. Hi, just removing one useless include; no change in functionality. Modified:

Re: [Yade-dev] [Yade-users] Problem with dispatcher and simulation

2009-03-06 Thread Václav Šmilauer
InteractionDispatchers( [EngineUnit('InteractingSphere2InteractingSphere4SpheresContactGeometry'),], [EngineUnit('InteractingSphere2InteractingSphere4SpheresContactGeometry'),], [EngineUnit('InteractingFacet2InteractingSphere4SpheresContactGeometry'),],

Re: [Yade-dev] Shear force computation

2009-03-10 Thread Václav Šmilauer
zeroPoint is the point through which passes the axis of rotation of a rigid body. It is used to calculate the linear velocity of the contact point on the surface of the body, not rotating around its center of inertia (se3). For example, to set facets set zeroPoint, and sets the angular velocity

Re: [Yade-dev] [deprecated list] impossible to compile without python / sqlite3

2009-03-19 Thread Václav Šmilauer
done r1723 (sorry for the private mail). V ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

[Yade-dev] facets

2009-03-19 Thread Václav Šmilauer
Sega (and others), I commited Dem3DofGeom_FacetSphere class recently, along with a test script in scripts/test/Dem3DofGeom.py. 1. I copied your algorithm from InteractingFacet2InteractingSphere4SpheresContactGeometry without understanding some parts of that. Could you please review the code

Re: [Yade-dev] facets

2009-03-19 Thread Václav Šmilauer
Dne 19.3.2009 16:55, Kien Dang, Mr napsal(a): Hi, According to my understanding, the shrink factor in the paper is used to avoid the sphere interact with more than one facet, it is; however, not effective and it may cause unstability if shrink factor is too large and determine shrink factor

Re: [Yade-dev] facets

2009-03-20 Thread Václav Šmilauer
Let eB be an active edge. If a sphere S is on fB near eB (and, so, eA) then S has real contact with only fB because eA is inactive . But if S is on fA near eA (and, so, eB) then S has real contact with fA AND with eB because eB is active! Thus, we will have a surface anisotropy in this case...

[Yade-dev] removing PhysicalAction

2009-03-29 Thread Václav Šmilauer
Hello, after converting all code in trunk to use both BexContainer and PhysicalActionContainer, I will now remove PhysicalActionContainer and all related things, to be able to clean the code from ugly #ifdefs. Other classes that will be removed are * GlobalStiffnessCounter (not used anymore) *

Re: [Yade-dev] [deprecated list] r1757 - in trunk: extra pkg/common/DataClass/InteractingGeometry pkg/dem pkg/dem/DataClass/InteractionGeometry pkg/dem/Engine/EngineUnit pkg/dem/Engine/StandAloneEngin

2009-04-23 Thread Václav Šmilauer
that's the point. Something is wrong about the architecture of code, because it encourages bad behavior, like yours. What's wrong, how to fix it? What is questionable in the first place is that sphere-* contact is represented as sphere-sphere contact (sphere-facet, sphere-box). I tried

Re: [Yade-dev] Python scripts and clump creation

2009-05-04 Thread Václav Šmilauer
Hi, I will post the solution tomorrow. Clumps are not yet wrapped in python, but it is fairly easy thing to do: function taking list of bodies and appending those as clump to the body container. For the obscurity of syntax, there are 2 points. 1. Creating instance of a class. It used to be

Re: [Yade-dev] Python scripts and clump creation

2009-05-04 Thread Václav Šmilauer
Grab the latest svn (r1766) and see scripts/test/clump.py (it sort-of does the same as ClumpTestGen). Delete your installation directory before compiling r1766, since some plugins do not exist any longer and could crash yade if loaded. Feel free to get back with questions. Regards, Vaclav Hi,

Re: [Yade-dev] Python scripts and clump creation

2009-05-05 Thread Václav Šmilauer
Very nice! Now it looks like o.engines is a tuple of C functions even if it should not be (I imagine) Just like in c++, ClassName() creates instance of the type ClassName. O.engines is a list of python objects and their python classes have same names as the c++ classes they wrap. That means

Re: [Yade-dev] Python scripts and clump creation

2009-05-05 Thread Václav Šmilauer
Delete your installation directory before compiling r1766, since some plugins do not exist any longer and could crash yade if loaded. You can propose solution, but I don't see how scons could know that... PS: are you going to be around on irc or jabber? You can try, no problem.

[Yade-dev] InsertionSortColllider 2x faster than PersistentSAPCollider

2009-05-23 Thread Václav Šmilauer
Hello, I commited initial version of InsertionSortCollider yesterday. I thought of using a different algorithm than PersistentSAPCollider but in the end it uses more or less the same algorithm. The good news is that it is like 2x faster than PersistentSAPCollider, (probably) due to some memory

Re: [Yade-dev] InsertionSortColllider 2x faster than PersistentSAPCollider

2009-05-23 Thread Václav Šmilauer
FWIW, this is the output of yade-multi when running the collider-perf suite (localhost:9080 serves that). (The failures are some stuff at exit, no serious) First part is PersistentSAPColllider, the .q is SpatialQuickSortCollider and .i InsertionSortCollider. Title: Yade-multi overview Running

Re: [Yade-dev] [svn] r1772 - trunk/pkg/common/Engine/StandAloneEngine

2009-05-23 Thread Václav Šmilauer
Hello. With r1772 I have an error: s...@laptop:~/work/yade/trunk yade-trunk-opt INFO core/yade.cpp:258 main: Loading /home/sega/.yade-trunk-opt/preferences.xml INFO core/yade.cpp:260 main: Loading plugins FATAL core/Omega.cpp:187 scanPlugins: libQtGUI: undefined symbol

Re: [Yade-dev] Doxygen docs

2009-05-27 Thread Václav Šmilauer
Does someone can tell me if the doxygen docs are regularly generated? And where I can find it? cd trunk scons doc firefox doc/doxygen/html/index.html (not sure about the last path exactly) ___ Mailing list: https://launchpad.net/~yade-dev Post

[Yade-dev] snow law hacks

2009-05-29 Thread Václav Šmilauer
Janek, could you please review your code at Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp:228 Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp:432 ? I am not able to read what is it supposed to do. Reason: I will be removing isNew and isReal, replacing it only by

Re: [Yade-dev] [svn] r1788 - in trunk: core gui/py lib/serialization pkg/dem pkg/dem/Engine/StandAloneEngine

2009-06-03 Thread Václav Šmilauer
2. Replace vectorbody_id_t by Vector2body_id_t and make it properly serializable (should be faster) Hi, Quick question: Is it possible to serialize a vectordouble **? No. It makes no sense to serialize pointers as they hold address in memory which will be different at every run. V.

[Yade-dev] contact logic InsertionSortCollider

2009-06-14 Thread Václav Šmilauer
Hi folks, I updated the wiki page about contact logic http://yade.wikia.com/wiki/Sanitizing_Contact_Logic#Current_status_.28svn_as_of_r1786_.2F_June_2009.29 so that the current svn situation is described accurately. Some of the modifications I made follow what was in the discussion at that page

Re: [Yade-dev] Parallelepiped instead of cube

2009-06-17 Thread Václav Šmilauer
This is a pack.py .. .. .. ii,jj,kk=[range(0,int(2*dim[0]/a)+1),range(0,int(dim[1]/h)+1),range(0,int(dim[2]/h)+1)] for i,j,k in itertools.product(ii,jj,kk): Oh, my fault, it is a leftover from pervious code where dim was etxtents of the box, not whole dimension. Thanks for spotting

Re: [Yade-dev] BoxStack and RotatingBox

2009-06-23 Thread Václav Šmilauer
Thanks for spotting that, I fixed that in r1806. ErrorTolerant contact doesn't use interactionPhysics, which I didn't know. V SVN 1805 BoxStack and RotatingBox are not working for me. ___ Mailing list: https://launchpad.net/~yade-dev Post to :

Re: [Yade-dev] build crash

2009-06-23 Thread Václav Šmilauer
I have this error in yade.cpp (related to log4cxx), after an svn update, anyone got this before? Hi, I had this issue on an older RedHat cluster recently. The __attribute__((constructor(number))) syntax requires gcc=4.0 IIRC. I can fix that by removing that, however, as I don't think it is

Re: [Yade-dev] build crash

2009-06-23 Thread Václav Šmilauer
I have this error in yade.cpp (related to log4cxx), after an svn update, anyone got this before? Grab r1810, it is fixed there. Best, Vaclav ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe

Re: [Yade-dev] [svn] r1822 - in trunk: pkg/dem/Engine/StandAloneEngine scripts scripts/test

2009-06-29 Thread Václav Šmilauer
1. Rename ef2_Dem3Dof_Elastic_ElasticLaw to Law2_Dem3Dof_Elastic_Elastic (in scripts as well) Hi, Some news about naming convention? Just some tentatives in individual cases. If we call 2d functors ef2, it will be too many ef2_* things. So I tried to call it Law2_..., just like I already

Re: [Yade-dev] forgotten _packSpheres.cpp

2009-07-02 Thread Václav Šmilauer
It seems to me that the file _packSpheres.cpp is missing (or should be removed from a Sconscript) (??) Fixed in r1830. Can we use bugtracker for this kind of things? It is easier to not forget about them. (Anton actually reported it: https://bugs.launchpad.net/yade/+bug/394631) Vaclav

Re: [Yade-dev] forgotten _packSpheres.cpp

2009-07-02 Thread Václav Šmilauer
What about switching the source code tree from berlios.de to launchpad? They use bzr, but it is more convenient to keep all things in one place. That's my guess. I tried a while back, but it was quite slow for initial checkout and it faced considerable opposition. Bzr is much faster now

Re: [Yade-dev] Adding new files to source

2009-07-02 Thread Václav Šmilauer
I am trying to implement Mining Rock constitutive law. It is just a start and I made it on Vaclav's howto and concretepm.cpp Can you put it to SVN? Then it will be easier to try. I assume the error you get is some undefined symbol. You probably need to add libs that you have to link with, at

Re: [Yade-dev] Adding new files to source

2009-07-02 Thread Václav Šmilauer
Ok, thank you. But I dont know how to post it to svn. Maybe I dont have account at berlios.de It seems you don't. Can you create one and send me your login? I will add you to the project, including with write permissions. For the reset, see here:

Re: [Yade-dev] Adding new files to source

2009-07-02 Thread Václav Šmilauer
gladky_anton OK, now go to https://launchpad.net/~gladky-anton/+editemails and add your berlios address gladky_an...@mail.berlios.de as your secondary e-mail address. Otherwise your commit messages generated from SVN automatically will not be accepted at yade-dev list. You can try adding your

Re: [Yade-dev] [svn] r1837 - trunk/pkg/dem/Engine/DeusExMachina

2009-07-03 Thread Václav Šmilauer
Ah, you are right... I just copy/pasted that. Anyway, static_cast is just an information for the compiler, corresponding to exactly 0 cpu time, isn't it? Yes, it is just questions of legibility. V. ___ Mailing list:

Re: [Yade-dev] Questions on profiling

2009-07-07 Thread Václav Šmilauer
1. How comes valgrind/kcachegrind is not removing the time for mcount from results? It would make sense. See answer to 2. mcount() and -p is orthogonal to valgrind profiling technique. 2. Why could I profile for years without option -p and I could get (apparently) consistent results? Valgrind

Re: [Yade-dev] RockPM problem

2009-07-08 Thread Václav Šmilauer
Can you provide some simple script that fails? I had a look at your code in SVN, it seems OK. It is enough if you have just a few spheres. Did you add Ip2_RpmMat_RpmMat_RpmPhys() to the InteractionDispatchers/InteractionPhysicsMetaEngine? V. ___

Re: [Yade-dev] RockPM problem

2009-07-08 Thread Václav Šmilauer
I had a look at your code in SVN, it seems OK. It is enough if you have just a few spheres. Did you add Ip2_RpmMat_RpmMat_RpmPhys() to the InteractionDispatchers/InteractionPhysicsMetaEngine? Where is Ip2_RpmMat_RpmMat_RpmPhys() ?? Yade will

Re: [Yade-dev] strided collider speedups

2009-07-10 Thread Václav Šmilauer
I think this sounds just awesome. This really changes the priorities in terms of where to optimize and paralellisation, doesn't it? In what way? I actually don't think so. At this point, this optimization is not even reliable (bodies may get out of their BB, which is not acceptable). I have

Re: [Yade-dev] r1864 - trunk/pkg/dem

2009-07-14 Thread Václav Šmilauer
+ const shared_ptrBody body1=Body::byId(contact-getId1(),rootBody); + const shared_ptrBody body2=Body::byId(contact-getId2(),rootBody); + const shared_ptrRpmMat rbp1=YADE_PTR_CASTRpmMat(body1-physicalParameters); + const shared_ptrRpmMat

Re: [Yade-dev] Re : [svn] r1864 - trunk/pkg/dem

2009-07-14 Thread Václav Šmilauer
I don't know if somebody pointed that out already, but I see you have put your rock law directly into pkg/dem, which is not really conventional. There is no emergency, but you will have to move this into the appropriate subdir. That's probably me who caused that, as I put ConcretePM.* to

Re: [Yade-dev] Re : [svn] r1864 - trunk/pkg/dem

2009-07-14 Thread Václav Šmilauer
Ok, just let's decide, what will be the name of directory. Maybe ConstitutiveLaw? Technically speaking, ConstitutiveLaw is an EngineUnit, so it should be in pkg/dem/Engine/EngineUnit. OTOH there is much more than just the constitutive law in both ConcretePM and RockPM (Material properties,

Re: [Yade-dev] Material and body State

2009-07-14 Thread Václav Šmilauer
Your proposal sounds good for me. Actually I have not studied it in details. I will re-answer your post in a few days (There's a lot of informations!). I tried to elaborate at http://yade.wikia.com/wiki/SharedMaterialProperties; there are 4 distinct tasks to do on that, all described at

Re: [Yade-dev] Material and body State

2009-07-15 Thread Václav Šmilauer
As I said before, the solution described here before seems to be nice (although the question of random-values dispatching remains, cf. Bruno's comments). As written, cf. http://yade.wikia.com/wiki/SharedMaterialProperties, it is enhanced in such way that Bruno can be happy (material can

Re: [Yade-dev] Material and body State

2009-07-15 Thread Václav Šmilauer
Yeah, when I say nothing it means I'm happy. All this is perfect usage of pointers. One question I have in mind is if many bodies with the same material pointer would slow down the parallel runs, but whatever the answer we can use per-body props, so everything is ok. I think I was talking

Re: [Yade-dev] yade crash launching xml

2009-07-15 Thread Václav Šmilauer
yade-trunk: /usr/include/boost/shared_ptr.hpp :315 : T* boost::shared_ptrT::operator-() const [with T = Engine]: L'assertion « px != 0 » a échoué. [...] #6 signal handler called [...] #10 0xb711410e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6 #11 0x081737b4 in

Re: [Yade-dev] Re : yade crash launching xml

2009-07-15 Thread Václav Šmilauer
class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } ) It is a different var; to get the first b, you would have to specify the scope like C::b. Similarly: int i=0; if(a==3){ int i=4; /* another, independent i in the nested scope

Re: [Yade-dev] wrapped wm3

2009-07-15 Thread Václav Šmilauer
Where is it possible to get this wrapped wm3 example? scripts/test/wm3-wrap.py. The advantage is that the syntax is the same as what you use in c++ (and also that Vector3 in python get converted to Vector3r in c++ and vice versa automatically and fastly). I didn't remove euclid from yade, but

Re: [Yade-dev] yade crash launching xml

2009-07-15 Thread Václav Šmilauer
I imagine the assert(px != 0) is into your class FlowEngine. If it is the case, try to check the reason why you've got px == 0. If it is not the case, my comment will not help. It happens during loading the XML, it is not Emanuele's fault at all. v

Re: [Yade-dev] yade crash launching xml

2009-07-16 Thread Václav Šmilauer
Unfortunately, the problem still remains. Less times than before, but it happens. Can you try running without the qt3 GUI, like yade-trunk -N PythonUI TriaxialTest.xml, or at least without opening the simulation controller? The stack trace clearly leads to the controller. (please use reply-to

[Yade-dev] small changes in lots of code (attribute registration)

2009-07-17 Thread Václav Šmilauer
Dear fellows, I had to move attribute registration to hpp files, using the REGISTER_ATTRIBUTES macro, in r1875. Hopefully nothing broke (I was trying this and that and it was OK), but please check the code you use that everything is OK. The syntax now is (in the .hpp file, within class

Re: [Yade-dev] small changes in lots of code (attribute registration)

2009-07-18 Thread Václav Šmilauer
I had to move attribute registration to hpp files, using the REGISTER_ATTRIBUTES macro, in r1875. BTW for those who are interested, this change speeds up creating 1e5 spheres from python from 40s to 5.3s, using for i in xrange(10): utils.sphere([0,0,0],1) quit()

Re: [Yade-dev] TranslationEngine Problem

2009-07-28 Thread Václav Šmilauer
DeusExMachina('TranslationEngine',{'translationAxis':[0,0,1],'velocity':-0.1,'subscribedBodies':[id_press]}) I removed this old syntax completely, you have to say TranslationEngine(translationAxis=[0,0,1],velocity=...,...) RuntimeError: Zero or one (and not more) non-keyword string argument

Re: [Yade-dev] libWm3Foundation linking problems

2009-07-28 Thread Václav Šmilauer
But I'd like to link my stuff with libWm3Foundation, because in lattice I'm using it. Currently I get this error on startup: FATAL /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/Omega.cpp:183 scanPlugins: libLatticeExample: undefined symbol

Re: [Yade-dev] libWm3Foundation linking problems

2009-07-28 Thread Václav Šmilauer
I'm lost in the SConscript jungle, so would be happy if you could install wm3 from your repo :) You could, for a fast solution, try edit trunk/yadeSCons.py:131 and replace LIBS=list(objs[obj][1]) by LIBS=list(objs[obj][1])+env['LIBS'] That should work IMHO. Let me know. V

Re: [Yade-dev] compiling wm3 on 64bit

2009-07-28 Thread Václav Šmilauer
Sorry, I forgot that I needed attached patch to compile wm3 on 64bit debian. Try this patch and it should work for you. [Please keep it on-list] * I added the patch to the package, it is applied automatically now (hope it doesn't break 32bit builds) * What I suggested earlier works, I

Re: [Yade-dev] old/new python syntax

2009-07-29 Thread Václav Šmilauer
simple-scene-player.py updated, not simple-scene-video.py. Vaclav, could you not check qt.py, it seems there SnapshotEngine has an old syntax. Not sure how to fix it. Also simple-scene-player.py has also an old syntax. Hi, the old syntax was

Re: [Yade-dev] BZR migration

2009-07-29 Thread Václav Šmilauer
we tried to migrate once. The problem was an insanely long first checkout and huge amount of used disk space. Does this problem is still present in BZR ? Also see: https://lists.launchpad.net/yade-dev/msg00163.html Two years passed since then, so BZR should have improved now. The

Re: [Yade-dev] WIKIA advertisements

2009-07-30 Thread Václav Šmilauer
It seems there are a lot of advertisements on WIKIA last days. Is it not? Yesterday I even could not click the right link because of that: first I needed to click ads :( They even started to insert their ads directly to our articles! I didn't see any advertisements. Ever heard of firefox

Re: [Yade-dev] BZR migration

2009-07-31 Thread Václav Šmilauer
Bruno Chareyre píše v Čt 30. 07. 2009 v 17:05 +0200: What is wrong with the current repository? Why I would favor the change here: 1. SVN is bad at handling moves of files. Lastly, I moved RockPM, then updated before committing and had it twice there, as it updated file in the original

Re: [Yade-dev] BZR migration

2009-08-03 Thread Václav Šmilauer
Hi, berlios' SVN ahs been down for a few days now. I would like to raise the bzr migration issue again. Clearly, we are not unanimous, but I feel this needs to be pushed a little since the arguments against are mostly reactionary. Anton has done a nice wiki page on the switch (

[Yade-dev] yade CRASH contest

2009-08-05 Thread Václav Šmilauer
Hi fellow devs, nearing the 0.20 release I would like to invite you to crash contest. Who will crash latest trunk just by using the gui or normal yade/python code (not os.kill(os.getpid(),9) and similar) AND file bug with the debugger backtrace at https://bugs.launchpad.net/yade/ will get some

Re: [Yade-dev] [svn] r1912 - in trunk: . lib/factory pkg/dem/DataClass/InteractionGeometry

2009-08-05 Thread Václav Šmilauer
as I understood distanceFactor is for first 1-2 steps when YADE defines cohesive particles? It makes spheres wider for a moment when distanceFactor1? Yes, it makes spheres wider. It has nothing to do with cohesivity though; constitutive law governs that. Interaction geoemtry functors (like

Re: [Yade-dev] [svn] r1923 - trunk/core

2009-08-05 Thread Václav Šmilauer
Hmm, still have it. 1924? ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

Re: [Yade-dev] periodic collider

2009-08-07 Thread Václav Šmilauer
It works for me. But what can it be useful for? For example packing without any boundary effects that can be repeated to fill space of any size tightly -- once Bruno implements TriaxialTest on top of that :-) The example is really just example. V. 1. Beta version of periodic

Re: [Yade-dev] Facet Highlight

2009-08-11 Thread Václav Šmilauer
Is it possible to highlight facets like boxes do? Yes, but the facet must not be drawn as wire. If #3 is facet, do something like this: bs=O.bodies[3].shape shape['wire']=False shape['highlight']=True (translated straightforwardly to c++) Note that if you define onBodySelected function in

Re: [Yade-dev] maxDataLen in plot.py

2009-08-12 Thread Václav Šmilauer
Is it possible to change maxDataLen in plot.py without editing plot.py? from yade import plot plot.maxDataLen=1 (it is a variable like any other, that happens to live in the yade.plot namespace) V. ___ Mailing list:

Re: [Yade-dev] Facet Highlight

2009-08-12 Thread Václav Šmilauer
I have tried this, but it does not highlight facets. Please, check the attached script. Eh, you are passing highlight to utils.facet... that is something different from what I said. I added that parameter in r1939 though so it works now as you expect. The trick is that the **kw params are

Re: [Yade-dev] Python script. different behavior

2009-08-12 Thread Václav Šmilauer
Hmm, the problem seems in that distanceFactor and 2 artificial steps to find all cohesive contacts. Yes, that is not saved to .xml at all. XML files describe the current simulation setup, but python scripts describe how to manipulate simulation (including its creation), which is more in the

Re: [Yade-dev] Facet Highlight

2009-08-13 Thread Václav Šmilauer
It works very interesting, Facets change their color all the time :) Well, the point of highlighting is to make a body visible among bunch of other bodies. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net

Re: [Yade-dev] Again explosion

2009-08-13 Thread Václav Šmilauer
I want to ask you to look at my script. I have spent a lot of hours to define what is wrong there, but it seems I am not be able to do it without your help. Eh, you save the simulation before the 2 steps for creating contacts. If you reload it, the reset of interaction distances to 1 never

Re: [Yade-dev] Again explosion

2009-08-13 Thread Václav Šmilauer
BTW the crash was fixed in r1940, it was wrong condition in assertion, plus missing class indices that I discovered that way. V. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe :

Re: [Yade-dev] Again explosion

2009-08-13 Thread Václav Šmilauer
I still have an explosion after r1940 update :( Read this again: You must call saveTmp after the O.step(); O.step() ss2d3dg['distanceFactor'],is2aabb['aabbEnlargeFactor']=1.,1. block. Should work. ___ Mailing list:

Re: [Yade-dev] 0.20 release remarks

2009-08-14 Thread Václav Šmilauer
The planned release date is still 31.08.2009? That was purely informational, we can do it earlier or later as well. There isn't so much interest from other users, anyway. I want to finish this week with https://bugs.launchpad.net/yade/+bug/400126 and probably with

Re: [Yade-dev] Again explosion

2009-08-14 Thread Václav Šmilauer
I would try running without PressTestEngine, just with TranslationEngine instead (fixed number of steps). You have bunch of state variables in PressTestEngine that are not saved -- that is wrong. You should save (i.e. serialize) all state that is needed to resume the simulation at any point (more

Re: [Yade-dev] subscription of yade-dev to bugs

2009-08-17 Thread Václav Šmilauer
Is it possible to delete test branches there? Go to the branch page, there is garbage can icon next to the title. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe :

[Yade-dev] [Bug 414687] Re: Problem to compile BZR1945

2009-08-17 Thread Václav Šmilauer
Hm there is actually quite a few other files missing as well. I just verified the import I made and it seems that the import script (which I downloaded somewhere) didn't do very good job and I have't bothered to check it. Well, that means that for a few days we shouldn't use the bzr trunk

[Yade-dev] [Bug 414687] Re: Problem to compile BZR1945

2009-08-17 Thread Václav Šmilauer
We would lose the history. -- Problem to compile BZR1945 https://bugs.launchpad.net/bugs/414687 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: Checking for

[Yade-dev] [Bug 414687] Re: Problem to compile BZR1945

2009-08-17 Thread Václav Šmilauer
Sorry, no way. That's the point of a VCS, that you can watch at any point who change what when and how. -- Problem to compile BZR1945 https://bugs.launchpad.net/bugs/414687 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet

[Yade-dev] [Bug 414687] Re: Problem to compile BZR1945

2009-08-17 Thread Václav Šmilauer
BTW I am trying a different wya to convert (using bzr svn-import), it seems to work, but I have to leave now and will not come back till afternoon. Till then, don't commit to bzr... -- Problem to compile BZR1945 https://bugs.launchpad.net/bugs/414687 You received this bug notification because

Re: [Yade-dev] class renaming?

2009-08-17 Thread Václav Šmilauer
I'd be inclined to perform that year-late class renaming before current release, what do you think? Sorry, too late. I asked people about what they need two months ago and there was almost no reaction from anyone. (Another dicussion would be if the classes should still be renamed, I don't

[Yade-dev] [Bug 415265] Re: Script works only with linkstrategy=monolithic option

2009-08-18 Thread Václav Šmilauer
Can you try running inside gdb? -- Script works only with linkstrategy=monolithic option https://bugs.launchpad.net/bugs/415265 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug

[Yade-dev] [Bug 415265] Re: Script works only with linkstrategy=monolithic option

2009-08-18 Thread Václav Šmilauer
$ gdb yade-trunk (gdb) run /tmp/pr.py [wait till it crashes] (gdb) thread apply all bt (gdb) quit -- Script works only with linkstrategy=monolithic option https://bugs.launchpad.net/bugs/415265 You received this bug notification because you are a member of Yade developers, which is subscribed

  1   2   3   4   5   6   7   8   9   10   >