yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #12703
[Branch ~yade-pkg/yade/git-trunk] Rev 3887: Revert 2dc99 and ed8dcb.
------------------------------------------------------------
revno: 3887
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2016-06-07 20:48:04 +0200
message:
Revert 2dc99 and ed8dcb.
Patches will be applied during packaging to get reproducible builds.
No need to push these changes here.
modified:
doc/sphinx/introduction.rst
doc/sphinx/tutorial-hands-on.rst
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'doc/sphinx/introduction.rst'
--- doc/sphinx/introduction.rst 2016-05-31 19:10:52 +0000
+++ doc/sphinx/introduction.rst 2016-06-07 18:48:04 +0000
@@ -157,11 +157,15 @@
In [1]: O.pause()
+ In [1]: O.iter
+ 104587
+
In [1]: O.run(100000,True)
+ In [1]: O.iter
+ 204587
+
In [1]: O.stopAtIter=500000
-
- In [1]: O.run()
In [1]: O.wait()
@@ -249,9 +253,11 @@
.. ipython::
- Yade [1]: len(O.bodies) # there are no bodies as of yet
-
- Yade [2]: O.engines # functional components, empty at the moment
+ Yade [1]: O.bodies # some data components
+
+ Yade [2]: len(O.bodies) # there are no bodies as of yet
+
+ Yade [3]: O.engines # functional components, empty at the moment
Data components
^^^^^^^^^^^^^^^
@@ -282,11 +288,13 @@
.. ipython::
- In [2]: s=utils.sphere(center=[0,0,0],radius=1)
-
- In [3]: s.state.pos
-
- In [4]: s.shape.radius
+ In [3]: s=utils.sphere(center=[0,0,0],radius=1)
+
+ In [5]: s.shape, s.state, s.mat, s.bound
+
+ In [6]: s.state.pos
+
+ In [7]: s.shape.radius
We see that a sphere with material of type :yref:`FrictMat` (default, unless you provide another :yref:`Material`) and bounding volume of type :yref:`Aabb` (axis-aligned bounding box) was created. Its position is at origin and its radius is 1.0. Finally, this object can be inserted into the simulation; and we can insert yet one sphere as well.
@@ -352,21 +360,21 @@
.. ipython::
- In [1]: if (O.interactions[0,1]): print ("Interaction exists!")
- Interaction exists!
+ In [1]: O.interactions[0,1]
+ <Interaction instance at 0x93f9528>
- In [2]: if (O.interactions[1,0]): print ("Interaction exists!") # order of ids is not important
+ In [2]: O.interactions[1,0] # order of ids is not important
In [2]: i=O.interactions[0,1]
In [3]: i.id1,i.id2
(0, 1)
- In [4]: if (i.geom): print ("Geom instance exists!")
- Geom instance exists!
+ In [4]: i.geom
+ <ScGeom instance at 0x9403838>
- In [5]: if (i.phys): print ("Phys instance exists!")
- Phys instance exists!
+ In [5]: i.phys
+ <ElasticContactInteraction instance at 0x94038d0>
In [6]: O.interactions[100,10111]
ValueError: No such interaction
=== modified file 'doc/sphinx/tutorial-hands-on.rst'
--- doc/sphinx/tutorial-hands-on.rst 2016-05-31 19:10:52 +0000
+++ doc/sphinx/tutorial-hands-on.rst 2016-06-07 18:48:04 +0000
@@ -320,6 +320,8 @@
Yade [1]: s=utils.sphere((0,0,0),radius=1) # create sphere particle centered at (0,0,0) with radius=1
+ Yade [1]: s.shape # s.shape describes the geometry of the particle
+
Yade [1]: s.shape.radius # we already know the Sphere class
Yade [1]: s.state.mass, s.state.inertia # inertia is computed from density and geometry
@@ -334,7 +336,7 @@
.. ipython::
- Yade [1]: idS = O.bodies.append(s) # adds particle s to the simulation; returns id of the particle(s) added
+ Yade [1]: O.bodies.append(s) # adds particle s to the simulation; returns id of the particle(s) added
Packs