← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2314: making TriaxialStressController more python friendly.

 

Cpp recorders are still quite usefull for me. They are more robust, especially when runing jobs on the server and when simulations are saved and reloaded (I'm still strugling with reloading periodic triax atm, no success yet, I get funny errors like below). Also, some recorders could compute rather complex stuff before recording it, in that case we want cpp for speed. So, I don't think they should disappear.

Bruno

Traceback (most recent call last):
 File "<string>", line 1, in <module>
File "/home/bruno/YADE/lib/yade-true-true/py/yade/plot.py", line 154, in saveGnuplot
   fPlot=file(baseName+".gnuplot",'w')
TypeError: 'str' object is not callable


Janek Kozicki a écrit :
Bruno Chareyre said:     (by the date of Mon, 05 Jul 2010 12:33:49 +0200)

Janek Kozicki a écrit :
change line 38 in TriaxialStressController.hpp from his:
		Real 		strain [3];
into this:
		Vector3r	strain;
Oh sorry, I though there was problem only for stress. No problem to turn it a Vector3r.

ok, in the end I actually committed this :)

I think that it would be best to remove TriaxialStateRecorder and
replace it with python completely. And maybe other recorders too.


Hmm... those recorders that are still present as .cpp files were the
ones "most needed". Maybe the best would be to extend the section in
the user manual about 'recording results' and while deleting each of
those Recorder*.[hc]pp files - at the same time add python script
example to the manual that records the same thing in python that was
just deleted in .cpp.



--
_______________
Bruno Chareyre
Associate Professor
ENSE3 - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




Follow ups

References