File: tutorial-examples.rst

package info (click to toggle)
yade 2026.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,448 kB
  • sloc: cpp: 97,645; python: 52,173; sh: 677; makefile: 162
file content (98 lines) | stat: -rw-r--r-- 2,460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.. _examples:

Examples with tutorial
======================

The `online version <https://yade-dem.org/doc/tutorial-examples.html>`_ of this tutorial contains embedded videos.

.. _bouncing-sphere:

Bouncing sphere
---------------

Following example is in file :ysrc:`doc/sphinx/tutorial/01-bouncing-sphere.py`.

.. youtube:: CMfL8PGq-xQ

.. literalinclude:: tutorial/01-bouncing-sphere.py


.. _gravity-deposition:

Gravity deposition
------------------

Following example is in file :ysrc:`doc/sphinx/tutorial/02-gravity-deposition.py`.

.. youtube:: YUlUSI9YADM

.. literalinclude:: tutorial/02-gravity-deposition.py


.. _oedometric-test:

Oedometric test
----------------

Following example is in file :ysrc:`doc/sphinx/tutorial/03-oedometric-test.py`.

.. youtube:: RjH1v-Fth34

.. literalinclude:: tutorial/03-oedometric-test.py

Batch table
^^^^^^^^^^^^

To run the same script :ysrc:`doc/sphinx/tutorial/03-oedometric-test.py` in batch mode to test different parameters, execute command ``yade-batch 03-oedometric-test.table 03-oedometric-test.py``, also visit page http://localhost:9080 to see the batch simulation progress.

.. literalinclude:: tutorial/03-oedometric-test.table


.. _periodic-simple-shear:

Periodic simple shear
---------------------

Following example is in file :ysrc:`doc/sphinx/tutorial/04-periodic-simple-shear.py`.

.. FIXME - this example is broken.

.. youtube:: ZKHrILQCyZs

.. literalinclude:: tutorial/04-periodic-simple-shear.py


.. _3d-postprocessing:

3d postprocessing
-----------------

Following example is in file :ysrc:`doc/sphinx/tutorial/05-3d-postprocessing.py`. This example will run for 20000 iterations, saving ``*.png`` snapshots, then it will make a video ``3d.mpeg`` out of those snapshots.

.. youtube:: XpCWWPptQN4

.. literalinclude:: tutorial/05-3d-postprocessing.py

.. _periodic-triaxial-test:

Periodic triaxial test
----------------------

Following example is in file :ysrc:`doc/sphinx/tutorial/06-periodic-triaxial-test.py`. A variant of this exemple includes capillary forces, see :ysrc:`doc/sphinx/tutorial/06-periodic-triaxial-test-capillarity.py`

.. youtube:: utTDLZz0y_w

.. literalinclude:: tutorial/06-periodic-triaxial-test.py



Fluid injection
---------------

Following example is in file :ysrc:`doc/sphinx/tutorial/07-fluid-injection.py`.
The video below results from post-processing with paraview

.. youtube:: gH585XaQEcY

.. literalinclude:: tutorial/07-fluid-injection.py