← Back to team overview

yade-dev team mailing list archive

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

 

Janek, sorry, could you revert please? I have uncommited code for this question, a simple python wrapper returning Vector3r stress (bound), with bound=1,...,6. If somebody wants to keep only one component or average over opposite boundaries, he can do that in python.

Cheers.

Bruno

noreply@xxxxxxxxxxxxx a écrit :
------------------------------------------------------------
revno: 2314
committer: Janek Kozicki <cosurgi@xxxxxxxxxx>
branch nick: trunk
timestamp: Sun 2010-07-04 20:18:21 +0200
message:
  making TriaxialStressController more python friendly.
Following is the example of what was my intention:: #!/usr/local/bin/yade-trunk -x TriaxialTest(numberOfGrains=200).load()
  O.engines += [PeriodicPythonRunner(iterPeriod=10,command='plot1()')]
triaxialStressController=O.engines[5] def sigma_1():
  	return triaxialStressController.wall_stress[1]
def epsilon_1():
  	return triaxialStressController.strain[1]
from yade import qt
  qt.View()
  qt.Controller()
# plot some results
  from math import *
  from yade import plot
  plot.plots={'epsilon_1':'sigma_1'}
  def plot1():
  	plot.addData(sigma_1=sigma_1(),
  		     epsilon_1=epsilon_1())
  O.run(10000,True)
  plot.plot()
modified:
  pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp
  pkg/dem/Engine/PartialEngine/TriaxialStressController.hpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
------------------------------------------------------------------------

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


--
_______________
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