Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | ·72858e2f3931dcf8b03fc3f67fdb5431·722658868·debug·optional·libyade-dbgsym_2019.01a-2_arm64.deb | 1 | ·72858e2f3931dcf8b03fc3f67fdb5431·722658868·debug·optional·libyade-dbgsym_2019.01a-2_arm64.deb |
2 | · | 2 | ·d4d0aa2f33395bd753e048708e369dcb·8792684·science·optional·libyade_2019.01a-2_arm64.deb |
3 | ·a9c1d18932490eede3daf5667400f386·252080·python·optional·python-yade_2019.01a-2_arm64.deb | 3 | ·a9c1d18932490eede3daf5667400f386·252080·python·optional·python-yade_2019.01a-2_arm64.deb |
4 | · | 4 | ·392c7f5aaed869254b67ebe99e69f40c·4037372·doc·optional·yade-doc_2019.01a-2_all.deb |
5 | ·98d1aa61035c6d2fd198c940bf4c4d48·1728192·science·optional·yade_2019.01a-2_arm64.deb | 5 | ·98d1aa61035c6d2fd198c940bf4c4d48·1728192·science·optional·yade_2019.01a-2_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2019-01-30·18:41:45.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2019-01-30·18:41:45.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3120·2019-01-30·18:41:45.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3120·2019-01-30·18:41:45.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··87 | 3 | -rw-r--r--···0········0········0··8789372·2019-01-30·18:41:45.000000·data.tar.xz |
Offset 5, 14 lines modified | Offset 5, 46 lines modified | ||
5 | #·Created·by:·The·Resource·Compiler·for·PyQt5·(Qt·v5.11.3) | 5 | #·Created·by:·The·Resource·Compiler·for·PyQt5·(Qt·v5.11.3) |
6 | # | 6 | # |
7 | #·WARNING!·All·changes·made·in·this·file·will·be·lost! | 7 | #·WARNING!·All·changes·made·in·this·file·will·be·lost! |
8 | from·PyQt5·import·QtCore | 8 | from·PyQt5·import·QtCore |
9 | qt_resource_data·=·b"\ | 9 | qt_resource_data·=·b"\ |
10 | \x00\x00\x00\xd5\ | ||
11 | \x00\ | ||
12 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ | ||
13 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\x00\x0a\x46\x46\xc5\ | ||
14 | \x57\x14\xe4\x46\xc7\x2a\xd8\x2a\x54\x73\x29\x99\x18\x28\x00\x91\ | ||
15 | \x91\x82\xa1\x92\x0e\x97\x92\x02\x67\xb2\x82\x5f\x7e\x5e\x2a\x88\ | ||
16 | \xad\x07\x64\x2b\x1b\x80\x01\x58\x4a\x41\x41\x4f\x0f\x82\xf1\x02\ | ||
17 | \xa8\x5a\x05\x3d\x30\x22\x52\xad\x1e\x41\x63\xc9\x52\x4b\xd8\xb5\ | ||
18 | \x83\x4c\x2d\x11\x00\xa1\x96\x14\x73\x49\x72\x2f\x29\xe1\x4b\x13\ | ||
19 | \xb5\x7a\x44\x44\x32\x39\x6a\x69\x16\x66\xa3\x6a\x69\xa7\x56\x0f\ | ||
20 | \x01\x08\xab\x85\x73\x89\x51\x0b\x33\x14\xab\x5a\x58\x61\x87\x64\ | ||
21 | \x2e\x86\x5a\xb8\x8b\xa0\x12\x08\xb5\x60\x19\x34\xb5\x50\x0f\x40\ | ||
22 | \x69\xb8\x5a\x84\x28\x3a\x80\x4b\x22\xd4\x62\xfa\x0d\x11\x30\xa8\ | ||
23 | \x6a\xf5\xb0\xab\x45\x68\x42\x0e\x07\x7c\x61\x86\xea\x37\x52\xc3\ | ||
24 | \x0c\xb7\xb9\x50\x40\x72\x1c\x13\x09\x48\x52\x5b\x6b\xcd\x05\x00\ | ||
25 | \xfc\xc7\xf7\x89\ | ||
26 | \x00\x00\x00\xde\ | ||
27 | \x00\ | ||
28 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ | ||
29 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\xd0\x52\x88\x8c\x8a\ | ||
30 | \x88\xaf\x28\xc8\x8d\x8e\x55\xb0\x55\xa8\xe6\x52\x32\x31\x50\x00\ | ||
31 | \x22\x23\x05\x43\x25\x1d\x2e\x25\x05\xce\x64\x05\xbf\xfc\xbc\x54\ | ||
32 | \x10\x5b\x0f\xc8\x56\x36\x00\x03\xb0\x14\x10\xe8\x81\x81\x02\x5e\ | ||
33 | \x00\x53\x0b\x51\x4f\xb4\x5a\x42\x4a\x91\xd4\x12\x54\x8a\xac\x96\ | ||
34 | \x90\x52\x84\x5a\xc2\xc6\x2a\x20\xc2\x81\xa0\x52\x05\x72\xc3\x8c\ | ||
35 | \x58\x73\x49\xf2\x1b\x69\xe1\x40\x7c\xf8\xd2\x48\x2d\x11\x41\x46\ | ||
36 | \x96\x5a\x9a\x85\xd9\xa8\x5a\xda\xa9\xd5\x43\x00\xc2\x6a\xe1\x5c\ | ||
37 | \xa2\xd4\xea\x41\x30\x56\xb5\x50\x39\x84\xb9\x7a\x30\x84\xaa\x06\ | ||
38 | \x66\x9b\x1e\xb2\x1b\x20\x8e\x45\x53\x0b\xf5\x00\x94\x46\xb8\x57\ | ||
39 | \x0f\xa6\x03\x1d\xe0\x54\x8b\xd5\x5c\xa8\x6b\x08\xb8\x01\xc5\xe5\ | ||
40 | \xf8\xfc\x86\xee\x4b\x62\xc2\x0c\xc3\x5c\x78\xe8\xe0\x06\x24\xc7\ | ||
41 | \x31\x91\x80\x24\xb5\xb5\xd6\x5c\x00\x40\xd3\xf7\x89\ | ||
10 | \x00\x00\x00\xda\ | 42 | \x00\x00\x00\xda\ |
11 | \x00\ | 43 | \x00\ |
12 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ | 44 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ |
13 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\xd0\x52\x88\x8a\x88\ | 45 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\xd0\x52\x88\x8a\x88\ |
14 | \x8c\xaf\x28\xc8\x8d\x8e\x55\xb0\x55\xa8\xe6\x52\x32\x31\x50\x00\ | 46 | \x8c\xaf\x28\xc8\x8d\x8e\x55\xb0\x55\xa8\xe6\x52\x32\x31\x50\x00\ |
15 | \x22\x23\x05\x43\x25\x1d\x2e\x25\x05\xce\x64\x05\xbf\xfc\xbc\x54\ | 47 | \x22\x23\x05\x43\x25\x1d\x2e\x25\x05\xce\x64\x05\xbf\xfc\xbc\x54\ |
16 | \x10\x5b\x0f\xc8\x56\x36\x00\x03\xb0\x14\x10\xe8\xe9\x41\x30\x3e\ | 48 | \x10\x5b\x0f\xc8\x56\x36\x00\x03\xb0\x14\x10\xe8\xe9\x41\x30\x3e\ |
Offset 273, 92 lines modified | Offset 305, 60 lines modified | ||
273 | \x2e\x49\x2e\x4a\x2e\x4b\x2e\x4c\x2e\x4d\x2e\x4e\x2e\x4f\x2e\x50\ | 305 | \x2e\x49\x2e\x4a\x2e\x4b\x2e\x4c\x2e\x4d\x2e\x4e\x2e\x4f\x2e\x50\ |
274 | \x2e\x51\x2e\x52\x2e\x53\x2e\x54\x2e\x55\x2e\x56\x2e\x57\x2e\x22\ | 306 | \x2e\x51\x2e\x52\x2e\x53\x2e\x54\x2e\x55\x2e\x56\x2e\x57\x2e\x22\ |
275 | \x2c\x0a\x22\x58\x2e\x59\x2e\x5a\x2e\x60\x2e\x20\x2b\x2e\x2b\x2b\ | 307 | \x2c\x0a\x22\x58\x2e\x59\x2e\x5a\x2e\x60\x2e\x20\x2b\x2e\x2b\x2b\ |
276 | \x2b\x40\x2b\x23\x2b\x24\x2b\x25\x2b\x26\x2b\x2a\x2b\x3d\x2b\x20\ | 308 | \x2b\x40\x2b\x23\x2b\x24\x2b\x25\x2b\x26\x2b\x2a\x2b\x3d\x2b\x20\ |
277 | \x20\x20\x20\x22\x2c\x0a\x22\x2d\x2b\x3b\x2b\x3e\x2b\x2c\x2b\x27\ | 309 | \x20\x20\x20\x22\x2c\x0a\x22\x2d\x2b\x3b\x2b\x3e\x2b\x2c\x2b\x27\ |
278 | \x2b\x29\x2b\x21\x2b\x7e\x2b\x7b\x2b\x5d\x2b\x5e\x2b\x2f\x2b\x28\ | 310 | \x2b\x29\x2b\x21\x2b\x7e\x2b\x7b\x2b\x5d\x2b\x5e\x2b\x2f\x2b\x28\ |
279 | \x2b\x5f\x2b\x3a\x2b\x3c\x2b\x22\x7d\x3b\x0a\ | 311 | \x2b\x5f\x2b\x3a\x2b\x3c\x2b\x22\x7d\x3b\x0a\ |
280 | \x00\x00\x00\xd5\ | ||
281 | \x00\ | ||
282 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ | ||
283 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\x00\x0a\x46\x46\xc5\ | ||
284 | \x57\x14\xe4\x46\xc7\x2a\xd8\x2a\x54\x73\x29\x99\x18\x28\x00\x91\ | ||
285 | \x91\x82\xa1\x92\x0e\x97\x92\x02\x67\xb2\x82\x5f\x7e\x5e\x2a\x88\ | ||
286 | \xad\x07\x64\x2b\x1b\x80\x01\x58\x4a\x41\x41\x4f\x0f\x82\xf1\x02\ | ||
287 | \xa8\x5a\x05\x3d\x30\x22\x52\xad\x1e\x41\x63\xc9\x52\x4b\xd8\xb5\ | ||
288 | \x83\x4c\x2d\x11\x00\xa1\x96\x14\x73\x49\x72\x2f\x29\xe1\x4b\x13\ | ||
289 | \xb5\x7a\x44\x44\x32\x39\x6a\x69\x16\x66\xa3\x6a\x69\xa7\x56\x0f\ | ||
290 | \x01\x08\xab\x85\x73\x89\x51\x0b\x33\x14\xab\x5a\x58\x61\x87\x64\ | ||
291 | \x2e\x86\x5a\xb8\x8b\xa0\x12\x08\xb5\x60\x19\x34\xb5\x50\x0f\x40\ | ||
292 | \x69\xb8\x5a\x84\x28\x3a\x80\x4b\x22\xd4\x62\xfa\x0d\x11\x30\xa8\ | ||
293 | \x6a\xf5\xb0\xab\x45\x68\x42\x0e\x07\x7c\x61\x86\xea\x37\x52\xc3\ | ||
294 | \x0c\xb7\xb9\x50\x40\x72\x1c\x13\x09\x48\x52\x5b\x6b\xcd\x05\x00\ | ||
295 | \xfc\xc7\xf7\x89\ | ||
296 | \x00\x00\x00\xde\ | ||
297 | \x00\ | ||
298 | \x00\x07\x2f\x78\x9c\xd3\xd7\x52\x88\x08\xf0\x55\xd0\xd2\xe7\x2a\ | ||
299 | \x2e\x49\x2c\xc9\x4c\x56\x48\xce\x48\x2c\x52\xd0\x52\x88\x8c\x8a\ | ||
300 | \x88\xaf\x28\xc8\x8d\x8e\x55\xb0\x55\xa8\xe6\x52\x32\x31\x50\x00\ | ||
301 | \x22\x23\x05\x43\x25\x1d\x2e\x25\x05\xce\x64\x05\xbf\xfc\xbc\x54\ | ||
302 | \x10\x5b\x0f\xc8\x56\x36\x00\x03\xb0\x14\x10\xe8\x81\x81\x02\x5e\ | ||
303 | \x00\x53\x0b\x51\x4f\xb4\x5a\x42\x4a\x91\xd4\x12\x54\x8a\xac\x96\ | ||
304 | \x90\x52\x84\x5a\xc2\xc6\x2a\x20\xc2\x81\xa0\x52\x05\x72\xc3\x8c\ | ||
305 | \x58\x73\x49\xf2\x1b\x69\xe1\x40\x7c\xf8\xd2\x48\x2d\x11\x41\x46\ | ||
306 | \x96\x5a\x9a\x85\xd9\xa8\x5a\xda\xa9\xd5\x43\x00\xc2\x6a\xe1\x5c\ | ||
307 | \xa2\xd4\xea\x41\x30\x56\xb5\x50\x39\x84\xb9\x7a\x30\x84\xaa\x06\ | ||
308 | \x66\x9b\x1e\xb2\x1b\x20\x8e\x45\x53\x0b\xf5\x00\x94\x46\xb8\x57\ | ||
309 | \x0f\xa6\x03\x1d\xe0\x54\x8b\xd5\x5c\xa8\x6b\x08\xb8\x01\xc5\xe5\ | ||
310 | \xf8\xfc\x86\xee\x4b\x62\xc2\x0c\xc3\x5c\x78\xe8\xe0\x06\x24\xc7\ | ||
311 | \x31\x91\x80\x24\xb5\xb5\xd6\x5c\x00\x40\xd3\xf7\x89\ | ||
312 | " | 312 | " |
313 | qt_resource_name·=·b"\ | 313 | qt_resource_name·=·b"\ |
314 | \x00\x03\ | 314 | \x00\x03\ |
315 | \x00\x00\x70\x37\ | 315 | \x00\x00\x70\x37\ |
316 | \x00\x69\ | 316 | \x00\x69\ |
317 | \x00\x6d\x00\x67\ | 317 | \x00\x6d\x00\x67\ |
318 | \x00\x07\ | 318 | \x00\x07\ |
319 | \x0f\xdc\x5f\xcd\ | ||
320 | \x00\x5a\ | ||
321 | \x00\x58\x00\x59\x00\x2e\x00\x78\x00\x70\x00\x6d\ | ||
322 | \x00\x10\ | ||
323 | \x0a\x47\x98\x2d\ | ||
324 | \x00\x79\ | ||
325 | \x00\x61\x00\x64\x00\x65\x00\x2d\x00\x66\x00\x61\x00\x76\x00\x69\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x78\x00\x70\x00\x6d\ | ||
326 | \x00\x07\ | ||
327 | \x0d\xed\x5f\xcd\ | 319 | \x0d\xed\x5f\xcd\ |
328 | \x00\x58\ | 320 | \x00\x58\ |
329 | \x00\x59\x00\x5a\x00\x2e\x00\x78\x00\x70\x00\x6d\ | 321 | \x00\x59\x00\x5a\x00\x2e\x00\x78\x00\x70\x00\x6d\ |
330 | \x00\x07\ | 322 | \x00\x07\ |
331 | \x0e\xfb\x5f\xcd\ | 323 | \x0e\xfb\x5f\xcd\ |
332 | \x00\x59\ | 324 | \x00\x59\ |
333 | \x00\x5a\x00\x58\x00\x2e\x00\x78\x00\x70\x00\x6d\ | 325 | \x00\x5a\x00\x58\x00\x2e\x00\x78\x00\x70\x00\x6d\ |
326 | \x00\x07\ | ||
327 | \x0f\xdc\x5f\xcd\ | ||
328 | \x00\x5a\ | ||
329 | \x00\x58\x00\x59\x00\x2e\x00\x78\x00\x70\x00\x6d\ | ||
330 | \x00\x10\ | ||
331 | \x0a\x47\x98\x2d\ | ||
332 | \x00\x79\ | ||
333 | \x00\x61\x00\x64\x00\x65\x00\x2d\x00\x66\x00\x61\x00\x76\x00\x69\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x78\x00\x70\x00\x6d\ | ||
334 | " | 334 | " |
335 | qt_resource_struct_v1·=·b"\ | 335 | qt_resource_struct_v1·=·b"\ |
336 | \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ | 336 | \x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\ |
337 | \x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x02\ | 337 | \x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x02\ |
338 | \x00\x00\x00\x | 338 | \x00\x00\x00\x48\x00\x00\x00\x00\x00\x01\x00\x00\x02\x99\ |
339 | \x00\x00\x00\x46\x00\x01\x00\x00\x00\x01\x00\x00\x10\x7e\ | ||
340 | \x00\x00\x00\x5a\x00\x01\x00\x00\x00\x01\x00\x00\x11\x57\ | ||
341 | \x00\x00\x00\x0c\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\ | 339 | \x00\x00\x00\x0c\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\ |
340 | \x00\x00\x00\x20\x00\x01\x00\x00\x00\x01\x00\x00\x00\xd9\ | ||
Max diff block lines reached; 994/7106 bytes (13.99%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2019-01-30·18:41:45.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2019-01-30·18:41:45.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····65 | 2 | -rw-r--r--···0········0········0·····6532·2019-01-30·18:41:45.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··40306 | 3 | -rw-r--r--···0········0········0··4030648·2019-01-30·18:41:45.000000·data.tar.xz |
Offset 183, 28 lines modified | Offset 183, 28 lines modified | ||
183 | -rw-r--r--···0·root·········(0)·root·········(0)····21022·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index-toctree.html | 183 | -rw-r--r--···0·root·········(0)·root·········(0)····21022·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index-toctree.html |
184 | -rw-r--r--···0·root·········(0)·root·········(0)·····9500·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index-toctree_manuals.html | 184 | -rw-r--r--···0·root·········(0)·root·········(0)·····9500·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index-toctree_manuals.html |
185 | -rw-r--r--···0·root·········(0)·root·········(0)····12082·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index.html | 185 | -rw-r--r--···0·root·········(0)·root·········(0)····12082·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/index.html |
186 | -rw-r--r--···0·root·········(0)·root·········(0)····43097·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/installation.html | 186 | -rw-r--r--···0·root·········(0)·root·········(0)····43097·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/installation.html |
187 | -rw-r--r--···0·root·········(0)·root·········(0)····68034·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/introduction.html | 187 | -rw-r--r--···0·root·········(0)·root·········(0)····68034·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/introduction.html |
188 | -rw-r--r--···0·root·········(0)·root·········(0)·····7300·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/modules.html | 188 | -rw-r--r--···0·root·········(0)·root·········(0)·····7300·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/modules.html |
189 | -rw-r--r--···0·root·········(0)·root·········(0)····43663·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/objects.inv | 189 | -rw-r--r--···0·root·········(0)·root·········(0)····43663·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/objects.inv |
190 | -rw-r--r--···0·root·········(0)·root·········(0)···26088 | 190 | -rw-r--r--···0·root·········(0)·root·········(0)···260887·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/prog.html |
191 | -rw-r--r--···0·root·········(0)·root·········(0)···163339·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/publications.html | 191 | -rw-r--r--···0·root·········(0)·root·········(0)···163339·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/publications.html |
192 | -rw-r--r--···0·root·········(0)·root·········(0)·····9045·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/py-modindex.html | 192 | -rw-r--r--···0·root·········(0)·root·········(0)·····9045·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/py-modindex.html |
193 | -rw-r--r--···0·root·········(0)·root·········(0)····51111·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/references.html | 193 | -rw-r--r--···0·root·········(0)·root·········(0)····51111·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/references.html |
194 | -rw-r--r--···0·root·········(0)·root·········(0)·····4573·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/search.html | 194 | -rw-r--r--···0·root·········(0)·root·········(0)·····4573·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/search.html |
195 | -rw-r--r--···0·root·········(0)·root·········(0)···314 | 195 | -rw-r--r--···0·root·········(0)·root·········(0)···314196·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/searchindex.js |
196 | -rw-r--r--···0·root·········(0)·root·········(0)·····8017·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-advanced.html | 196 | -rw-r--r--···0·root·········(0)·root·········(0)·····8017·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-advanced.html |
197 | -rw-r--r--···0·root·········(0)·root·········(0)····31484·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-data-mining.html | 197 | -rw-r--r--···0·root·········(0)·root·········(0)····31484·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-data-mining.html |
198 | -rw-r--r--···0·root·········(0)·root·········(0)····77416·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-examples.html | 198 | -rw-r--r--···0·root·········(0)·root·········(0)····77416·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-examples.html |
199 | -rw-r--r--···0·root·········(0)·root·········(0)····292 | 199 | -rw-r--r--···0·root·········(0)·root·········(0)····29255·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-geo.html |
200 | -rw-r--r--···0·root·········(0)·root·········(0)····67242·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-hands-on.html | 200 | -rw-r--r--···0·root·········(0)·root·········(0)····67242·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-hands-on.html |
201 | -rw-r--r--···0·root·········(0)·root·········(0)·····5670·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-introduction.html | 201 | -rw-r--r--···0·root·········(0)·root·········(0)·····5670·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial-introduction.html |
202 | -rw-r--r--···0·root·········(0)·root·········(0)·····9600·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial.html | 202 | -rw-r--r--···0·root·········(0)·root·········(0)·····9600·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/tutorial.html |
203 | -rw-r--r--···0·root·········(0)·root·········(0)···25435 | 203 | -rw-r--r--···0·root·········(0)·root·········(0)···254357·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/user.html |
204 | -rw-r--r--···0·root·········(0)·root·········(0)····12799·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.bodiesHandling.html | 204 | -rw-r--r--···0·root·········(0)·root·········(0)····12799·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.bodiesHandling.html |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····29221·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.export.html | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····29221·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.export.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)····25833·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.geom.html | 206 | -rw-r--r--···0·root·········(0)·root·········(0)····25833·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.geom.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)····38047·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.gridpfacet.html | 207 | -rw-r--r--···0·root·········(0)·root·········(0)····38047·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.gridpfacet.html |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····10135·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.linterpolation.html | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····10135·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.linterpolation.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····93422·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.pack.html | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····93422·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.pack.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····36495·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.plot.html | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····36495·2019-01-30·18:41:45.000000·./usr/share/doc/yade/html/yade.plot.html |
Offset 240, 27 lines modified | Offset 240, 27 lines modified | ||
240 | </div> | 240 | </div> |
241 | <p>Normal·simulations,·however,·are·run·continuously.·Starting/stopping·the·loop·is·done·by·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">O.pause()</span></code>;·note·that·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·returns·control·to·Python·and·the·simulation·runs·in·background;·if·you·want·to·wait·for·it·finish,·use·<code·class="docutils·literal·notranslate"><span·class="pre">O.wait()</span></code>.·Fixed·number·of·steps·can·be·run·with·<code·class="docutils·literal·notranslate"><span·class="pre">O.run(1000)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">O.run(1000,True)</span></code>·will·run·and·wait.·To·stop·at·absolute·step·number,·<code·class="docutils·literal·notranslate"><span·class="pre">O.stopAtIter</span></code>·can·be·set·and·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·called·normally.</p> | 241 | <p>Normal·simulations,·however,·are·run·continuously.·Starting/stopping·the·loop·is·done·by·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">O.pause()</span></code>;·note·that·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·returns·control·to·Python·and·the·simulation·runs·in·background;·if·you·want·to·wait·for·it·finish,·use·<code·class="docutils·literal·notranslate"><span·class="pre">O.wait()</span></code>.·Fixed·number·of·steps·can·be·run·with·<code·class="docutils·literal·notranslate"><span·class="pre">O.run(1000)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">O.run(1000,True)</span></code>·will·run·and·wait.·To·stop·at·absolute·step·number,·<code·class="docutils·literal·notranslate"><span·class="pre">O.stopAtIter</span></code>·can·be·set·and·<code·class="docutils·literal·notranslate"><span·class="pre">O.run()</span></code>·called·normally.</p> |
242 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[9]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">()</span> | 242 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[9]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">()</span> |
243 | <span·class="gp">Yade·[10]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">pause</span><span·class="p">()</span> | 243 | <span·class="gp">Yade·[10]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">pause</span><span·class="p">()</span> |
244 | <span·class="gp">Yade·[11]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> | 244 | <span·class="gp">Yade·[11]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> |
245 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">11</span><span·class="p">]:</span>·<span·class="mi"> | 245 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">11</span><span·class="p">]:</span>·<span·class="mi">4042</span> |
246 | <span·class="gp">Yade·[12]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">(</span><span·class="mi">100000</span><span·class="p">,</span><span·class="bp">True</span><span·class="p">)</span> | 246 | <span·class="gp">Yade·[12]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">(</span><span·class="mi">100000</span><span·class="p">,</span><span·class="bp">True</span><span·class="p">)</span> |
247 | <span·class="gp">Yade·[13]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> | 247 | <span·class="gp">Yade·[13]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> |
248 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">13</span><span·class="p">]:</span>·<span·class="mi">10 | 248 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">13</span><span·class="p">]:</span>·<span·class="mi">104042</span> |
249 | <span·class="gp">Yade·[14]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">stopAtIter</span><span·class="o">=</span><span·class="mi">500000</span> | 249 | <span·class="gp">Yade·[14]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">stopAtIter</span><span·class="o">=</span><span·class="mi">500000</span> |
250 | <span·class="gp">Yade·[15]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">wait</span><span·class="p">()</span> | 250 | <span·class="gp">Yade·[15]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">wait</span><span·class="p">()</span> |
251 | <span·class="gp">Yade·[16]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> | 251 | <span·class="gp">Yade·[16]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">iter</span> |
252 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">16</span><span·class="p">]:</span>·<span·class="mi">10 | 252 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">16</span><span·class="p">]:</span>·<span·class="mi">104042</span> |
253 | </pre></div> | 253 | </pre></div> |
254 | </div> | 254 | </div> |
255 | </div> | 255 | </div> |
256 | <div·class="section"·id="saving-and-loading"> | 256 | <div·class="section"·id="saving-and-loading"> |
257 | <h3>Saving·and·loading<a·class="headerlink"·href="#saving-and-loading"·title="Permalink·to·this·headline">¶</a></h3> | 257 | <h3>Saving·and·loading<a·class="headerlink"·href="#saving-and-loading"·title="Permalink·to·this·headline">¶</a></h3> |
258 | <p>Simulation·can·be·saved·at·any·point·to·a·binary·file·(optionaly·compressed·if·the·filename·has·extensions·such·as·“.gz”·or·“.bz2”). | 258 | <p>Simulation·can·be·saved·at·any·point·to·a·binary·file·(optionaly·compressed·if·the·filename·has·extensions·such·as·“.gz”·or·“.bz2”). |
259 | Saving·to·a·XML·file·is·also·possible·though·resulting·in·larger·files·and·slower·save/load,·it·is·used·when·the·filename·contains·“xml”.·With·some·limitations, | 259 | Saving·to·a·XML·file·is·also·possible·though·resulting·in·larger·files·and·slower·save/load,·it·is·used·when·the·filename·contains·“xml”.·With·some·limitations, |
Offset 310, 15 lines modified | Offset 310, 15 lines modified | ||
310 | <h2>Architecture·overview<a·class="headerlink"·href="#architecture-overview"·title="Permalink·to·this·headline">¶</a></h2> | 310 | <h2>Architecture·overview<a·class="headerlink"·href="#architecture-overview"·title="Permalink·to·this·headline">¶</a></h2> |
311 | <p>In·the·following,·a·high-level·overview·of·Yade·architecture·will·be·given.·As·many·of·the·features·are·directly·represented·in·simulation·scripts,·which·are·written·in·Python,·being·familiar·with·this·language·will·help·you·follow·the·examples.·For·the·rest,·this·knowledge·is·not·strictly·necessary·and·you·can·ignore·code·examples.</p> | 311 | <p>In·the·following,·a·high-level·overview·of·Yade·architecture·will·be·given.·As·many·of·the·features·are·directly·represented·in·simulation·scripts,·which·are·written·in·Python,·being·familiar·with·this·language·will·help·you·follow·the·examples.·For·the·rest,·this·knowledge·is·not·strictly·necessary·and·you·can·ignore·code·examples.</p> |
312 | <div·class="section"·id="data-and-functions"> | 312 | <div·class="section"·id="data-and-functions"> |
313 | <h3>Data·and·functions<a·class="headerlink"·href="#data-and-functions"·title="Permalink·to·this·headline">¶</a></h3> | 313 | <h3>Data·and·functions<a·class="headerlink"·href="#data-and-functions"·title="Permalink·to·this·headline">¶</a></h3> |
314 | <p>To·assure·flexibility·of·software·design,·yade·makes·clear·distinction·of·2·families·of·classes:·<em>data</em>·components·and·<em>functional</em>·components.·The·former·only·store·data·without·providing·functionality,·while·the·latter·define·functions·operating·on·the·data.·In·programming,·this·is·known·as·<em>visitor</em>·pattern·(as·functional·components·“visit”·the·data,·without·being·bound·to·them·explicitly).</p> | 314 | <p>To·assure·flexibility·of·software·design,·yade·makes·clear·distinction·of·2·families·of·classes:·<em>data</em>·components·and·<em>functional</em>·components.·The·former·only·store·data·without·providing·functionality,·while·the·latter·define·functions·operating·on·the·data.·In·programming,·this·is·known·as·<em>visitor</em>·pattern·(as·functional·components·“visit”·the·data,·without·being·bound·to·them·explicitly).</p> |
315 | <p>Entire·simulation,·i.e.·both·data·and·functions,·are·stored·in·a·single·<code·class="docutils·literal·notranslate"><span·class="pre">Scene</span></code>·object.·It·is·accessible·through·the·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega">Omega</a>·class·in·python·(a·singleton),·which·is·by·default·stored·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">O</span></code>·global·variable:</p> | 315 | <p>Entire·simulation,·i.e.·both·data·and·functions,·are·stored·in·a·single·<code·class="docutils·literal·notranslate"><span·class="pre">Scene</span></code>·object.·It·is·accessible·through·the·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega">Omega</a>·class·in·python·(a·singleton),·which·is·by·default·stored·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">O</span></code>·global·variable:</p> |
316 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[24]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span>·······<span·class="c1">#·some·data·components</span> | 316 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[24]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span>·······<span·class="c1">#·some·data·components</span> |
317 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">24</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">wrapper</span><span·class="o">.</span><span·class="n">BodyContainer</span>·<span·class="n">at</span>·<span·class="mh">0xffff | 317 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">24</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">wrapper</span><span·class="o">.</span><span·class="n">BodyContainer</span>·<span·class="n">at</span>·<span·class="mh">0xffff9a0906e0</span><span·class="o">></span> |
318 | <span·class="gp">Yade·[25]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">)</span>··<span·class="c1">#·there·are·no·bodies·as·of·yet</span> | 318 | <span·class="gp">Yade·[25]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">)</span>··<span·class="c1">#·there·are·no·bodies·as·of·yet</span> |
319 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">25</span><span·class="p">]:</span>·<span·class="mi">0</span> | 319 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">25</span><span·class="p">]:</span>·<span·class="mi">0</span> |
320 | <span·class="gp">Yade·[26]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span>······<span·class="c1">#·functional·components,·empty·at·the·moment</span> | 320 | <span·class="gp">Yade·[26]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span>······<span·class="c1">#·functional·components,·empty·at·the·moment</span> |
321 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">26</span><span·class="p">]:</span>·<span·class="p">[]</span> | 321 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">26</span><span·class="p">]:</span>·<span·class="p">[]</span> |
322 | </pre></div> | 322 | </pre></div> |
Offset 344, 17 lines modified | Offset 344, 17 lines modified | ||
344 | <p>(In·addition·to·these·4·components,·bodies·have·several·more·minor·data·associated,·such·as·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.id">Body::id</a>·or·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.mask">Body::mask</a>.)</p> | 344 | <p>(In·addition·to·these·4·components,·bodies·have·several·more·minor·data·associated,·such·as·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.id">Body::id</a>·or·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.mask">Body::mask</a>.)</p> |
345 | <p>All·these·four·properties·can·be·of·different·types,·derived·from·their·respective·base·types.·Yade·frequently·makes·decisions·about·computation·based·on·those·types:·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·+·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·collision·has·to·be·treated·differently·than·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Facet">Facet</a>·+·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·collision.·Objects·making·those·decisions·are·called·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Dispatcher">Dispatcher</a>’s·and·are·essential·to·understand·Yade’s·functioning;·they·are·discussed·below.</p> | 345 | <p>All·these·four·properties·can·be·of·different·types,·derived·from·their·respective·base·types.·Yade·frequently·makes·decisions·about·computation·based·on·those·types:·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·+·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·collision·has·to·be·treated·differently·than·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Facet">Facet</a>·+·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Sphere">Sphere</a>·collision.·Objects·making·those·decisions·are·called·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Dispatcher">Dispatcher</a>’s·and·are·essential·to·understand·Yade’s·functioning;·they·are·discussed·below.</p> |
346 | <p>Explicitly·assigning·all·4·properties·to·each·particle·by·hand·would·be·not·practical;·there·are·utility·functions·defined·to·create·them·with·all·necessary·ingredients.·For·example,·we·can·create·sphere·particle·using·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>:</p> | 346 | <p>Explicitly·assigning·all·4·properties·to·each·particle·by·hand·would·be·not·practical;·there·are·utility·functions·defined·to·create·them·with·all·necessary·ingredients.·For·example,·we·can·create·sphere·particle·using·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>:</p> |
347 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[27]:·</span><span·class="n">s</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">(</span><span·class="n">center</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">],</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 347 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[27]:·</span><span·class="n">s</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">(</span><span·class="n">center</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">],</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
348 | <span·class="gp">Yade·[28]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">mat</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">bound</span> | 348 | <span·class="gp">Yade·[28]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">mat</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">bound</span> |
349 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">28</span><span·class="p">]:</span>· | 349 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">28</span><span·class="p">]:</span>· |
350 | <span·class="go">(<Sphere·instance·at·0xaaaa | 350 | <span·class="go">(<Sphere·instance·at·0xaaaaf4147690>,</span> |
351 | <span·class="go">·<State·instance·at·0xaaaa | 351 | <span·class="go">·<State·instance·at·0xaaaaf5a9d270>,</span> |
352 | <span·class="go">·<FrictMat·instance·at·0xaaaa | 352 | <span·class="go">·<FrictMat·instance·at·0xaaaaf5e93810>,</span> |
353 | <span·class="go">·None)</span> | 353 | <span·class="go">·None)</span> |
354 | <span·class="gp">Yade·[29]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">pos</span> | 354 | <span·class="gp">Yade·[29]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">pos</span> |
355 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">29</span><span·class="p">]:</span>·<span·class="n">Vector3</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">)</span> | 355 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">29</span><span·class="p">]:</span>·<span·class="n">Vector3</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">)</span> |
356 | <span·class="gp">Yade·[30]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span> | 356 | <span·class="gp">Yade·[30]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span> |
357 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">30</span><span·class="p">]:</span>·<span·class="mf">1.0</span> | 357 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">30</span><span·class="p">]:</span>·<span·class="mf">1.0</span> |
Offset 413, 29 lines modified | Offset 413, 29 lines modified | ||
413 | <dd>representing·non-geometrical·features·of·the·interaction;·some·are·computed·from·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Materials</a>·of·the·particles·in·contact·using·some·averaging·algorithm·(such·as·contact·stiffness·from·Young’s·moduli·of·particles),·others·might·be·internal·variables·like·damage.</dd> | 413 | <dd>representing·non-geometrical·features·of·the·interaction;·some·are·computed·from·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Materials</a>·of·the·particles·in·contact·using·some·averaging·algorithm·(such·as·contact·stiffness·from·Young’s·moduli·of·particles),·others·might·be·internal·variables·like·damage.</dd> |
414 | </dl> | 414 | </dl> |
415 | <p>Suppose·now·interactions·have·been·already·created.·We·can·access·them·by·the·id·pair:</p> | 415 | <p>Suppose·now·interactions·have·been·already·created.·We·can·access·them·by·the·id·pair:</p> |
416 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span> | 416 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span> |
417 | </pre></div> | 417 | </pre></div> |
418 | </div> | 418 | </div> |
419 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[37]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">]</span> | 419 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[37]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">]</span> |
420 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">37</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Interaction</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 420 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">37</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Interaction</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf43ac850</span><span·class="o">></span> |
421 | <span·class="gp">Yade·[38]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">]</span>·····<span·class="c1">#·order·of·ids·is·not·important</span> | 421 | <span·class="gp">Yade·[38]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">]</span>·····<span·class="c1">#·order·of·ids·is·not·important</span> |
422 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">38</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Interaction</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 422 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">38</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Interaction</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf43ac850</span><span·class="o">></span> |
423 | <span·class="gp">Yade·[39]:·</span><span·class="n">i</span><span·class="o">=</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">]</span> | 423 | <span·class="gp">Yade·[39]:·</span><span·class="n">i</span><span·class="o">=</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">]</span> |
424 | <span·class="gp">Yade·[40]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">id1</span><span·class="p">,</span><span·class="n">i</span><span·class="o">.</span><span·class="n">id2</span> | 424 | <span·class="gp">Yade·[40]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">id1</span><span·class="p">,</span><span·class="n">i</span><span·class="o">.</span><span·class="n">id2</span> |
425 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">40</span><span·class="p">]:</span>·<span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span> | 425 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">40</span><span·class="p">]:</span>·<span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span> |
426 | <span·class="gp">Yade·[41]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">geom</span> | 426 | <span·class="gp">Yade·[41]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">geom</span> |
427 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">41</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">ScGeom</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 427 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">41</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">ScGeom</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf59ebf10</span><span·class="o">></span> |
428 | <span·class="gp">Yade·[42]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">phys</span> | 428 | <span·class="gp">Yade·[42]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">phys</span> |
429 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">42</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">FrictPhys</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 429 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">42</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">FrictPhys</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf5def690</span><span·class="o">></span> |
430 | <span·class="gp">Yade·[43]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">100</span><span·class="p">,</span><span·class="mi">10111</span><span·class="p">]</span> | 430 | <span·class="gp">Yade·[43]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">interactions</span><span·class="p">[</span><span·class="mi">100</span><span·class="p">,</span><span·class="mi">10111</span><span·class="p">]</span> |
431 | <span·class="go">IndexErrorTraceback·(most·recent·call·last)</span> | 431 | <span·class="go">IndexErrorTraceback·(most·recent·call·last)</span> |
432 | <span·class="go">/build/yade-2019.01a/debian/tmp/usr/lib/aarch64-linux-gnu/yade/py/yade/__init__.pyc·in·<module>()</span> | 432 | <span·class="go">/build/yade-2019.01a/debian/tmp/usr/lib/aarch64-linux-gnu/yade/py/yade/__init__.pyc·in·<module>()</span> |
433 | <span·class="go">---->·1·O.interactions[100,10111]</span> | 433 | <span·class="go">---->·1·O.interactions[100,10111]</span> |
Offset 718, 19 lines modified | Offset 718, 19 lines modified | ||
718 | » » <span·class="nt"><trackEnergy></span>0<span·class="nt"></trackEnergy></span> | 718 | » » <span·class="nt"><trackEnergy></span>0<span·class="nt"></trackEnergy></span> |
719 | » » <span·class="nt"><doSort></span>0<span·class="nt"></doSort></span> | 719 | » » <span·class="nt"><doSort></span>0<span·class="nt"></doSort></span> |
720 | » » <span·class="nt"><runInternalConsistencyChecks></span>1<span·class="nt"></runInternalConsistencyChecks></span> | 720 | » » <span·class="nt"><runInternalConsistencyChecks></span>1<span·class="nt"></runInternalConsistencyChecks></span> |
721 | » » <span·class="nt"><selectedBody></span>-1<span·class="nt"></selectedBody></span> | 721 | » » <span·class="nt"><selectedBody></span>-1<span·class="nt"></selectedBody></span> |
722 | » » <span·class="nt"><tags</span>·<span·class="na">class_id=</span><span·class="s">"3"</span>·<span·class="na">tracking_level=</span><span·class="s">"0"</span>·<span·class="na">version=</span><span·class="s">"0"</span><span·class="nt">></span> | 722 | » » <span·class="nt"><tags</span>·<span·class="na">class_id=</span><span·class="s">"3"</span>·<span·class="na">tracking_level=</span><span·class="s">"0"</span>·<span·class="na">version=</span><span·class="s">"0"</span><span·class="nt">></span> |
723 | » » » <span·class="nt"><count></span>5<span·class="nt"></count></span> | 723 | » » » <span·class="nt"><count></span>5<span·class="nt"></count></span> |
724 | » » » <span·class="nt"><item_version></span>0<span·class="nt"></item_version></span> | 724 | » » » <span·class="nt"><item_version></span>0<span·class="nt"></item_version></span> |
725 | » » » <span·class="nt"><item></span>author=root~(root@ | 725 | » » » <span·class="nt"><item></span>author=root~(root@i-capture-the-hostname)<span·class="nt"></item></span> |
726 | » » » <span·class="nt"><item></span>isoTime=202 | 726 | » » » <span·class="nt"><item></span>isoTime=20211018T114954<span·class="nt"></item></span> |
727 | » » » <span·class="nt"><item></span>id=202 | 727 | » » » <span·class="nt"><item></span>id=20211018T114954p27278<span·class="nt"></item></span> |
728 | » » » <span·class="nt"><item></span>d.id=202 | 728 | » » » <span·class="nt"><item></span>d.id=20211018T114954p27278<span·class="nt"></item></span> |
729 | » » » <span·class="nt"><item></span>id.d=202 | 729 | » » » <span·class="nt"><item></span>id.d=20211018T114954p27278<span·class="nt"></item></span> |
730 | » » <span·class="nt"></tags></span> | 730 | » » <span·class="nt"></tags></span> |
731 | » » <span·class="nt"><engines</span>·<span·class="na">class_id=</span><span·class="s">"4"</span>·<span·class="na">tracking_level=</span><span·class="s">"0"</span>·<span·class="na">version=</span><span·class="s">"0"</span><span·class="nt">></span> | 731 | » » <span·class="nt"><engines</span>·<span·class="na">class_id=</span><span·class="s">"4"</span>·<span·class="na">tracking_level=</span><span·class="s">"0"</span>·<span·class="na">version=</span><span·class="s">"0"</span><span·class="nt">></span> |
732 | » » » <span·class="nt"><count></span>0<span·class="nt"></count></span> | 732 | » » » <span·class="nt"><count></span>0<span·class="nt"></count></span> |
733 | » » » <span·class="nt"><item_version></span>1<span·class="nt"></item_version></span> | 733 | » » » <span·class="nt"><item_version></span>1<span·class="nt"></item_version></span> |
734 | » » <span·class="nt"></engines></span> | 734 | » » <span·class="nt"></engines></span> |
735 | » » <span·class="nt"><_nextEngines></span> | 735 | » » <span·class="nt"><_nextEngines></span> |
736 | » » » <span·class="nt"><count></span>0<span·class="nt"></count></span> | 736 | » » » <span·class="nt"><count></span>0<span·class="nt"></count></span> |
Offset 1322, 15 lines modified | Offset 1322, 15 lines modified | ||
1322 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[22]:·</span><span·class="n">ld</span><span·class="o">=</span><span·class="n">LawDispatcher</span><span·class="p">([</span><span·class="n">Law2_ScGeom_CpmPhys_Cpm</span><span·class="p">()])</span> | 1322 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[22]:·</span><span·class="n">ld</span><span·class="o">=</span><span·class="n">LawDispatcher</span><span·class="p">([</span><span·class="n">Law2_ScGeom_CpmPhys_Cpm</span><span·class="p">()])</span> |
1323 | <span·class="gp">Yade·[23]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispMatrix</span><span·class="p">()</span> | 1323 | <span·class="gp">Yade·[23]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispMatrix</span><span·class="p">()</span> |
1324 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">23</span><span·class="p">]:</span>·<span·class="p">{(</span><span·class="s1">'GenericSpheresContact'</span><span·class="p">,</span>·<span·class="s1">'CpmPhys'</span><span·class="p">):</span>·<span·class="s1">'Law2_ScGeom_CpmPhys_Cpm'</span><span·class="p">}</span> | 1324 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">23</span><span·class="p">]:</span>·<span·class="p">{(</span><span·class="s1">'GenericSpheresContact'</span><span·class="p">,</span>·<span·class="s1">'CpmPhys'</span><span·class="p">):</span>·<span·class="s1">'Law2_ScGeom_CpmPhys_Cpm'</span><span·class="p">}</span> |
1325 | <span·class="c">#·see·how·the·entry·for·ScGridCoGeom·will·be·filled·after·this·request</span> | 1325 | <span·class="c">#·see·how·the·entry·for·ScGridCoGeom·will·be·filled·after·this·request</span> |
1326 | <span·class="gp">Yade·[24]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispFunctor</span><span·class="p">(</span><span·class="n">ScGridCoGeom</span><span·class="p">(),</span><span·class="n">CpmPhys</span><span·class="p">())</span> | 1326 | <span·class="gp">Yade·[24]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispFunctor</span><span·class="p">(</span><span·class="n">ScGridCoGeom</span><span·class="p">(),</span><span·class="n">CpmPhys</span><span·class="p">())</span> |
1327 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">24</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Law2_ScGeom_CpmPhys_Cpm</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 1327 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">24</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Law2_ScGeom_CpmPhys_Cpm</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf5c7caf0</span><span·class="o">></span> |
1328 | <span·class="gp">Yade·[25]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispMatrix</span><span·class="p">()</span> | 1328 | <span·class="gp">Yade·[25]:·</span><span·class="n">ld</span><span·class="o">.</span><span·class="n">dispMatrix</span><span·class="p">()</span> |
1329 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">25</span><span·class="p">]:</span>· | 1329 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">25</span><span·class="p">]:</span>· |
1330 | <span·class="go">{('GenericSpheresContact',·'CpmPhys'):·'Law2_ScGeom_CpmPhys_Cpm',</span> | 1330 | <span·class="go">{('GenericSpheresContact',·'CpmPhys'):·'Law2_ScGeom_CpmPhys_Cpm',</span> |
1331 | <span·class="go">·('ScGridCoGeom',·'CpmPhys'):·'Law2_ScGeom_CpmPhys_Cpm'}</span> | 1331 | <span·class="go">·('ScGridCoGeom',·'CpmPhys'):·'Law2_ScGeom_CpmPhys_Cpm'}</span> |
1332 | </pre></div> | 1332 | </pre></div> |
1333 | </div> | 1333 | </div> |
Offset 1448, 22 lines modified | Offset 1448, 22 lines modified | ||
1448 | <span·class="gp">Yade·[31]:·</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">timing</span><span·class="o">.</span><span·class="n">reset</span><span·class="p">()</span>···················<span·class="c1">##·not·necessary·if·used·for·the·first·time</span> | 1448 | <span·class="gp">Yade·[31]:·</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">timing</span><span·class="o">.</span><span·class="n">reset</span><span·class="p">()</span>···················<span·class="c1">##·not·necessary·if·used·for·the·first·time</span> |
1449 | <span·class="gp">Yade·[32]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">(</span><span·class="mi">50</span><span·class="p">);</span>·<span·class="n">O</span><span·class="o">.</span><span·class="n">wait</span><span·class="p">()</span> | 1449 | <span·class="gp">Yade·[32]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">run</span><span·class="p">(</span><span·class="mi">50</span><span·class="p">);</span>·<span·class="n">O</span><span·class="o">.</span><span·class="n">wait</span><span·class="p">()</span> |
1450 | <span·class="gp">Yade·[33]:·</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">timing</span><span·class="o">.</span><span·class="n">stats</span><span·class="p">()</span> | 1450 | <span·class="gp">Yade·[33]:·</span><span·class="n">yade</span><span·class="o">.</span><span·class="n">timing</span><span·class="o">.</span><span·class="n">stats</span><span·class="p">()</span> |
1451 | <span·class="go">Name····················································Count·················Time············Rel.·time</span> | 1451 | <span·class="go">Name····················································Count·················Time············Rel.·time</span> |
1452 | <span·class="go">-------------------------------------------------------------------------------------------------------</span> | 1452 | <span·class="go">-------------------------------------------------------------------------------------------------------</span> |
1453 | <span·class="go">"firstEngine"········································50················1 | 1453 | <span·class="go">"firstEngine"········································50················132us················0.33%······</span> |
1454 | <span·class="go">InsertionSortCollider································26··············· | 1454 | <span·class="go">InsertionSortCollider································26···············9853us···············24.21%······</span> |
1455 | <span·class="go">InteractionLoop······································50·············· | 1455 | <span·class="go">InteractionLoop······································50··············23768us···············58.41%······</span> |
1456 | <span·class="go">GlobalStiffnessTimeStepper····························2················· | 1456 | <span·class="go">GlobalStiffnessTimeStepper····························2·················77us················0.19%······</span> |
1457 | <span·class="go">TriaxialCompressionEngine····························50··············· | 1457 | <span·class="go">TriaxialCompressionEngine····························50···············2067us················5.08%······</span> |
1458 | <span·class="go">TriaxialStateRecorder·································3················ | 1458 | <span·class="go">TriaxialStateRecorder·································3················748us················1.84%······</span> |
1459 | <span·class="go">NewtonIntegrator·····································50··············· | 1459 | <span·class="go">NewtonIntegrator·····································50···············4045us················9.94%······</span> |
1460 | <span·class="go">TOTAL································································ | 1460 | <span·class="go">TOTAL································································40693us··············100.00%······</span> |
1461 | </pre></div> | 1461 | </pre></div> |
1462 | </div> | 1462 | </div> |
1463 | <p>Exec·count·and·time·can·be·accessed·and·manipulated·through·<code·class="docutils·literal·notranslate"><span·class="pre">Engine::timingInfo</span></code>·from·c++·or·<code·class="docutils·literal·notranslate"><span·class="pre">Engine().execCount</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Engine().execTime</span></code>·properties·in·Python.</p> | 1463 | <p>Exec·count·and·time·can·be·accessed·and·manipulated·through·<code·class="docutils·literal·notranslate"><span·class="pre">Engine::timingInfo</span></code>·from·c++·or·<code·class="docutils·literal·notranslate"><span·class="pre">Engine().execCount</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Engine().execTime</span></code>·properties·in·Python.</p> |
1464 | </div> | 1464 | </div> |
1465 | <div·class="section"·id="in-engine-and-in-functor-timing"> | 1465 | <div·class="section"·id="in-engine-and-in-functor-timing"> |
1466 | <h4>In-engine·and·in-functor·timing<a·class="headerlink"·href="#in-engine-and-in-functor-timing"·title="Permalink·to·this·headline">¶</a></h4> | 1466 | <h4>In-engine·and·in-functor·timing<a·class="headerlink"·href="#in-engine-and-in-functor-timing"·title="Permalink·to·this·headline">¶</a></h4> |
1467 | <p>Timing·within·engines·(and·functors)·is·based·on·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.TimingDeltas">TimingDeltas</a>·class·which·is·by·default·instantiated·in·engines·and·functors·as·Engine::timingDeltas·and·Functor::timingDeltas·(<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Engine.timingDeltas">Engine.timingDeltas</a>·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Functor.timingDeltas">Functor.timingDeltas</a>·in·Python).·It·is·made·for·timing·loops·(functors’·loop·is·in·their·respective·dispatcher)·and·stores·cummulatively·time·differences·between·<em>checkpoints</em>.</p> | 1467 | <p>Timing·within·engines·(and·functors)·is·based·on·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.TimingDeltas">TimingDeltas</a>·class·which·is·by·default·instantiated·in·engines·and·functors·as·Engine::timingDeltas·and·Functor::timingDeltas·(<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Engine.timingDeltas">Engine.timingDeltas</a>·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Functor.timingDeltas">Functor.timingDeltas</a>·in·Python).·It·is·made·for·timing·loops·(functors’·loop·is·in·their·respective·dispatcher)·and·stores·cummulatively·time·differences·between·<em>checkpoints</em>.</p> |
Offset 7485, 54 lines modified | Offset 7485, 52 lines modified | ||
7485 | ········"0x00007f0fcd8f4f7d":·28, | 7485 | ········"0x00007f0fcd8f4f7d":·28, |
7486 | ········"0x1c54620":·28, | 7486 | ········"0x1c54620":·28, |
7487 | ········"0x2d06770":·18, | 7487 | ········"0x2d06770":·18, |
7488 | ········"0x7f0fb1268710":·28, | 7488 | ········"0x7f0fb1268710":·28, |
7489 | ········"0x7f0fb29f2710":·28, | 7489 | ········"0x7f0fb29f2710":·28, |
7490 | ········"0x7f0fb31f3710":·28, | 7490 | ········"0x7f0fb31f3710":·28, |
7491 | ········"0x7f0fcee53700":·28, | 7491 | ········"0x7f0fcee53700":·28, |
7492 | ········"0xaaaa | 7492 | ········"0xaaaaf4147690":·16, |
7493 | ········"0xaaaadfa28670":·26, | ||
7494 | ········"0xaaaa | 7493 | ········"0xaaaaf43ac850":·16, |
7495 | ········"0xaaaa | 7494 | ········"0xaaaaf59ebf10":·16, |
7496 | ········"0xaaaae1309830":·26, | ||
7497 | ········"0xaaaa | 7495 | ········"0xaaaaf5a9d270":·16, |
7498 | ········"0xaaaae13bc250":·16, | ||
7499 | ········"0xaaaae1420800":·18, | ||
7500 | ········"0xaaaae16e7560":·16, | ||
7501 | ········"0xaaaae1975870":·26, | ||
7502 | ········"0xaaaae1d06020":·28, | ||
7503 | ········"0xaaaae1d5ed90":·26, | ||
7504 | ········"0xaaaa | 7496 | ········"0xaaaaf5c06ec0":·26, |
7497 | ········"0xaaaaf5c7caf0":·18, | ||
7498 | ········"0xaaaaf5def690":·16, | ||
7505 | ········"0xaaaa | 7499 | ········"0xaaaaf5e02b20":·26, |
7500 | ········"0xaaaaf5e93810":·16, | ||
7501 | ········"0xaaaaf62c2070":·28, | ||
7502 | ········"0xaaaaf6521be0":·26, | ||
7503 | ········"0xaaaaf653b3f0":·26, | ||
7504 | ········"0xaaaaf66091c0":·26, | ||
7506 | ········"0xaaaa | 7505 | ········"0xaaaaf6697e90":·28, |
7506 | ········"0xaaaaf6752b40":·28, | ||
7507 | ········"0xffff | 7507 | ········"0xffff9a0906e0":·16, |
7508 | ········"100mpa":·41, | 7508 | ········"100mpa":·41, |
7509 | ········"102077490\u03bc":·18, | 7509 | ········"102077490\u03bc":·18, |
7510 | ········"10571887u":·39, | 7510 | ········"10571887u":·39, |
7511 | ········"10700007\u03bc":·18, | 7511 | ········"10700007\u03bc":·18, |
7512 | ········"10733564u":·39, | 7512 | ········"10733564u":·39, |
7513 | ········"10e6":·41, | 7513 | ········"10e6":·41, |
7514 | ········"10e9":·40, | 7514 | ········"10e9":·40, |
7515 | ········"10gb":·15, | 7515 | ········"10gb":·15, |
7516 | ········"10k":·1, | 7516 | ········"10k":·1, |
7517 | ········"10kpa":·25, | 7517 | ········"10kpa":·25, |
7518 | ········"1157u":·39, | 7518 | ········"1157u":·39, |
7519 | ········"1171770\u03bc":·18, | 7519 | ········"1171770\u03bc":·18, |
7520 | ········"12_2":·7, | 7520 | ········"12_2":·7, |
7521 | ········"12th":·19, | 7521 | ········"12th":·19, |
7522 | ········"132u":·18, | ||
7522 | ········"136u":·39, | 7523 | ········"136u":·39, |
7523 | ········"13th":·19, | 7524 | ········"13th":·19, |
7524 | ········"140u":·18, | ||
7525 | ········"1423738u":·39, | 7525 | ········"1423738u":·39, |
7526 | ········"14644u":·18, | ||
7527 | ········"15177607\u03bc":·18, | 7526 | ········"15177607\u03bc":·18, |
7528 | ········"1594300u":·39, | 7527 | ········"1594300u":·39, |
7529 | ········"16th":·19, | 7528 | ········"16th":·19, |
7530 | ········"1723168u":·39, | 7529 | ········"1723168u":·39, |
7531 | ········"1787u":·18, | ||
7532 | ········"1801250u":·39, | 7530 | ········"1801250u":·39, |
7533 | ········"1866816\u03bc":·18, | 7531 | ········"1866816\u03bc":·18, |
7534 | ········"19th":·19, | 7532 | ········"19th":·19, |
7535 | ········"1_2":·7, | 7533 | ········"1_2":·7, |
7536 | ········"1_util":·1, | 7534 | ········"1_util":·1, |
7537 | ········"1a30e9233c43":·26, | 7535 | ········"1a30e9233c43":·26, |
7538 | ········"1e10":·40, | 7536 | ········"1e10":·40, |
Offset 7546, 26 lines modified | Offset 7544, 27 lines modified | ||
7546 | ········"1e9":·[30,·41], | 7544 | ········"1e9":·[30,·41], |
7547 | ········"1st":·[18,·19,·20,·40,·41], | 7545 | ········"1st":·[18,·19,·20,·40,·41], |
7548 | ········"1styadeworkshop":·19, | 7546 | ········"1styadeworkshop":·19, |
7549 | ········"2006jf000536":·20, | 7547 | ········"2006jf000536":·20, |
7550 | ········"200k":·1, | 7548 | ········"200k":·1, |
7551 | ········"20100413t144723p7625":·28, | 7549 | ········"20100413t144723p7625":·28, |
7552 | ········"2017wr021769":·19, | 7550 | ········"2017wr021769":·19, |
7553 | ········"202 | 7551 | ········"20211018t114954":·18, |
7554 | ········"20200913t165736p9783":·18, | ||
7555 | ········"20200913t165746":·28, | ||
7556 | ········"202 | 7552 | ········"20211018t114954p27278":·18, |
7553 | ········"20211018t115007":·28, | ||
7554 | ········"20211018t115007p27278":·28, | ||
7555 | ········"2067u":·18, | ||
7557 | ········"20mpa":·41, | 7556 | ········"20mpa":·41, |
7558 | ········"210e9":·28, | 7557 | ········"210e9":·28, |
7559 | ········"2150u":·39, | 7558 | ········"2150u":·39, |
7560 | ········"21589\u03bc":·18, | 7559 | ········"21589\u03bc":·18, |
7561 | ········"2315bd8":·15, | 7560 | ········"2315bd8":·15, |
7562 | ········"23216292\u03bc":·18, | 7561 | ········"23216292\u03bc":·18, |
7562 | ········"23768u":·18, | ||
7563 | ········"246x":·19, | 7563 | ········"246x":·19, |
7564 | ········"25947u":·18, | ||
7565 | ········"26015u":·39, | 7564 | ········"26015u":·39, |
7566 | ········"291u":·39, | 7565 | ········"291u":·39, |
7567 | ········"2\u00b9\u03c0":·19, | 7566 | ········"2\u00b9\u03c0":·19, |
7568 | ········"2_2":·7, | 7567 | ········"2_2":·7, |
7569 | ········"2_3":·7, | 7568 | ········"2_3":·7, |
7570 | ········"2_4":·7, | 7569 | ········"2_4":·7, |
7571 | ········"2e3":·[28,·40], | 7570 | ········"2e3":·[28,·40], |
Offset 7578, 59 lines modified | Offset 7577, 60 lines modified | ||
7578 | ········"2xlarg":·4, | 7577 | ········"2xlarg":·4, |
7579 | ········"30e9":·[28,·40], | 7578 | ········"30e9":·[28,·40], |
7580 | ········"30k":·1, | 7579 | ········"30k":·1, |
7581 | ········"3272\u03bc":·18, | 7580 | ········"3272\u03bc":·18, |
7582 | ········"345uiysdijkn":·18, | 7581 | ········"345uiysdijkn":·18, |
7583 | ········"352x":·20, | 7582 | ········"352x":·20, |
7584 | ········"35th":·19, | 7583 | ········"35th":·19, |
7585 | ········"3631u":·18, | ||
7586 | ········"3_356":·19, | 7584 | ········"3_356":·19, |
7587 | ········"3e10":·28, | 7585 | ········"3e10":·28, |
7588 | ········"3gb":·15, | 7586 | ········"3gb":·15, |
7589 | ········"3rd":·[18,·19,·20], | 7587 | ········"3rd":·[18,·19,·20], |
7590 | ········"3sr":·[8,·18,·28,·41], | 7588 | ········"3sr":·[8,·18,·28,·41], |
7591 | ········"3x3":·[7,·18,·24], | 7589 | ········"3x3":·[7,·18,·24], |
7590 | ········"4045u":·18, | ||
7591 | ········"40693u":·18, | ||
7592 | ········"4819289u":·39, | 7592 | ········"4819289u":·39, |
7593 | ········"4_1":·7, | 7593 | ········"4_1":·7, |
7594 | ········"4gb":·40, | 7594 | ········"4gb":·40, |
7595 | ········"4th":·[18,·40,·41], | 7595 | ········"4th":·[18,·40,·41], |
7596 | ········"500mb":·40, | 7596 | ········"500mb":·40, |
7597 | ········"50161117\u03bc":·18, | 7597 | ········"50161117\u03bc":·18, |
7598 | ········"5095u":·18, | ||
7599 | ········"587u":·18, | ||
7600 | ········"5_0":·7, | 7598 | ········"5_0":·7, |
7601 | ········"5dt":·41, | 7599 | ········"5dt":·41, |
7602 | ········"5e5":·24, | 7600 | ········"5e5":·24, |
7603 | ········"5e6":·3, | 7601 | ········"5e6":·3, |
7604 | ········"5th":·[18,·19], | 7602 | ········"5th":·[18,·19], |
7605 | ········"61th":·19, | 7603 | ········"61th":·19, |
7606 | ········"61u":·18, | ||
7607 | ········"64200u":·39, | 7604 | ········"64200u":·39, |
Max diff block lines reached; 3030/6721 bytes (45.08%) of diff not shown. |
Offset 135, 18 lines modified | Offset 135, 18 lines modified | ||
135 | <p>Periodic·boundary·is·a·“boundary”·created·by·using·periodic·(rather·than·infinite)·space.·Such·boundary·is·activated·by·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.periodic">O.periodic=True·</a>,·and·the·space·configuration·is·decribed·by·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.cell">O.cell·</a>.·It·is·well·suited·for·studying·bulk·material·behavior,·as·boundary·effects·are·avoided,·leading·to·smaller·number·of·particles.·On·the·other·hand,·it·might·not·be·suitable·for·studying·localization,·as·any·cell-level·effects·(such·as·shear·bands)·have·to·satisfy·periodicity·as·well.</p> | 135 | <p>Periodic·boundary·is·a·“boundary”·created·by·using·periodic·(rather·than·infinite)·space.·Such·boundary·is·activated·by·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.periodic">O.periodic=True·</a>,·and·the·space·configuration·is·decribed·by·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.cell">O.cell·</a>.·It·is·well·suited·for·studying·bulk·material·behavior,·as·boundary·effects·are·avoided,·leading·to·smaller·number·of·particles.·On·the·other·hand,·it·might·not·be·suitable·for·studying·localization,·as·any·cell-level·effects·(such·as·shear·bands)·have·to·satisfy·periodicity·as·well.</p> |
136 | <p>The·periodic·cell·is·described·by·its·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.refSize">reference·size·</a>·of·box·aligned·with·global·axes,·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.trsf">current·transformation</a>,·which·can·capture·stretch,·shear·and·rotation.·Deformation·is·prescribed·via·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.velGrad">velocity·gradient</a>,·which·updates·the·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.trsf">transformation</a>·before·the·next·step.·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.homoDeform">Homothetic·deformation</a>·can·smear·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.velGrad">velocity·gradient</a>·accross·the·cell,·making·the·boundary·dissolve·in·the·whole·cell.</p> | 136 | <p>The·periodic·cell·is·described·by·its·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.refSize">reference·size·</a>·of·box·aligned·with·global·axes,·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.trsf">current·transformation</a>,·which·can·capture·stretch,·shear·and·rotation.·Deformation·is·prescribed·via·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.velGrad">velocity·gradient</a>,·which·updates·the·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.trsf">transformation</a>·before·the·next·step.·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.homoDeform">Homothetic·deformation</a>·can·smear·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Cell.velGrad">velocity·gradient</a>·accross·the·cell,·making·the·boundary·dissolve·in·the·whole·cell.</p> |
137 | <p>Stress·and·strains·can·be·controlled·with·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController">PeriTriaxController</a>;·it·is·possible·to·prescribe·mixed·strain/stress·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.goal">goal</a>·state·using·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.stressMask">PeriTriaxController.stressMask</a>.</p> | 137 | <p>Stress·and·strains·can·be·controlled·with·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController">PeriTriaxController</a>;·it·is·possible·to·prescribe·mixed·strain/stress·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.goal">goal</a>·state·using·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.stressMask">PeriTriaxController.stressMask</a>.</p> |
138 | <p>The·following·creates·periodic·cloud·of·spheres·and·compresses·to·achieve·<span·class="math·notranslate·nohighlight">\(\sigma_x\)</span>=-10·kPa,·<span·class="math·notranslate·nohighlight">\(\sigma_y\)</span>=-10kPa·and·<span·class="math·notranslate·nohighlight">\(\eps_z\)</span>=-0.1.·Since·stress·is·specified·for·<span·class="math·notranslate·nohighlight">\(y\)</span>·and·<span·class="math·notranslate·nohighlight">\(z\)</span>,·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.stressMask">stressMask</a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">0b011</span></code>·(x→1,·y→2,·z→4,·in·decimal·1+2=3).</p> | 138 | <p>The·following·creates·periodic·cloud·of·spheres·and·compresses·to·achieve·<span·class="math·notranslate·nohighlight">\(\sigma_x\)</span>=-10·kPa,·<span·class="math·notranslate·nohighlight">\(\sigma_y\)</span>=-10kPa·and·<span·class="math·notranslate·nohighlight">\(\eps_z\)</span>=-0.1.·Since·stress·is·specified·for·<span·class="math·notranslate·nohighlight">\(y\)</span>·and·<span·class="math·notranslate·nohighlight">\(z\)</span>,·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.stressMask">stressMask</a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">0b011</span></code>·(x→1,·y→2,·z→4,·in·decimal·1+2=3).</p> |
139 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[1]:·</span><span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span> | 139 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[1]:·</span><span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span> |
140 | <span·class="gp">Yade·[2]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">makeCloud</span><span·class="p">((</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">),(</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="n">rMean</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">periodic</span><span·class="o">=</span><span·class="bp">True</span><span·class="p">)</span> | 140 | <span·class="gp">Yade·[2]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">makeCloud</span><span·class="p">((</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">),(</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="n">rMean</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">periodic</span><span·class="o">=</span><span·class="bp">True</span><span·class="p">)</span> |
141 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">]:</span>·<span·class="mi"> | 141 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">]:</span>·<span·class="mi">10</span> |
142 | <span·class="gp">Yade·[3]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">toSimulation</span><span·class="p">()</span>·············<span·class="c1">#·implicitly·sets·O.periodic=True,·and·O.cell.refSize·to·the·packing·period·size</span> | 142 | <span·class="gp">Yade·[3]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">toSimulation</span><span·class="p">()</span>·············<span·class="c1">#·implicitly·sets·O.periodic=True,·and·O.cell.refSize·to·the·packing·period·size</span> |
143 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">,</span>·<span·class="mi">7</span><span·class="p">,</span>·<span·class="mi">8</span><span·class="p">,</span>·<span·class="mi">9</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">11</span><span·class="p">,</span>·<span·class="mi">12</span><span·class="p">]</span> | 143 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">,</span>·<span·class="mi">7</span><span·class="p">,</span>·<span·class="mi">8</span><span·class="p">,</span>·<span·class="mi">9</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">11</span><span·class="p">,</span>·<span·class="mi">12</span><span·class="p">,</span>·<span·class="mi">13</span><span·class="p">]</span> |
144 | <span·class="gp">Yade·[4]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span><span·class="o">+=</span><span·class="p">[</span><span·class="n">PeriTriaxController</span><span·class="p">(</span><span·class="n">goal</span><span·class="o">=</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">1e4</span><span·class="p">,</span><span·class="o">-</span><span·class="mf">1e4</span><span·class="p">,</span><span·class="o">-.</span><span·class="mi">1</span><span·class="p">),</span><span·class="n">stressMask</span><span·class="o">=</span><span·class="mb">0b011</span><span·class="p">,</span><span·class="n">maxUnbalanced</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">doneHook</span><span·class="o">=</span><span·class="s1">'functionToRunWhenFinished()'</span><span·class="p">)]</span> | 144 | <span·class="gp">Yade·[4]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span><span·class="o">+=</span><span·class="p">[</span><span·class="n">PeriTriaxController</span><span·class="p">(</span><span·class="n">goal</span><span·class="o">=</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">1e4</span><span·class="p">,</span><span·class="o">-</span><span·class="mf">1e4</span><span·class="p">,</span><span·class="o">-.</span><span·class="mi">1</span><span·class="p">),</span><span·class="n">stressMask</span><span·class="o">=</span><span·class="mb">0b011</span><span·class="p">,</span><span·class="n">maxUnbalanced</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">doneHook</span><span·class="o">=</span><span·class="s1">'functionToRunWhenFinished()'</span><span·class="p">)]</span> |
145 | </pre></div> | 145 | </pre></div> |
146 | </div> | 146 | </div> |
147 | <p>When·the·simulation·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.run">runs</a>,·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController">PeriTriaxController</a>·takes·over·the·control·and·calls·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.doneHook">doneHook</a>·when·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.goal">goal</a>·is·reached.·A·full·simulation·with·PeriTriaxController·might·look·like·the·following:</p> | 147 | <p>When·the·simulation·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Omega.run">runs</a>,·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController">PeriTriaxController</a>·takes·over·the·control·and·calls·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.doneHook">doneHook</a>·when·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.PeriTriaxController.goal">goal</a>·is·reached.·A·full·simulation·with·PeriTriaxController·might·look·like·the·following:</p> |
148 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">yade</span>·<span·class="k">import</span>·<span·class="n">pack</span><span·class="p">,</span><span·class="n">plot</span> | 148 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">yade</span>·<span·class="k">import</span>·<span·class="n">pack</span><span·class="p">,</span><span·class="n">plot</span> |
149 | <span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span> | 149 | <span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span> |
Offset 385, 15 lines modified | Offset 385, 15 lines modified | ||
385 | <li>Set·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.material">Body.material</a>·(last-defined·material·is·used,·otherwise·a·default·material·is·created)</li> | 385 | <li>Set·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.material">Body.material</a>·(last-defined·material·is·used,·otherwise·a·default·material·is·created)</li> |
386 | <li>Set·position·and·orientation·in·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.state">Body.state</a>,·compute·mass·and·moment·of·inertia·based·on·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Material</a>·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Shape">Shape</a></li> | 386 | <li>Set·position·and·orientation·in·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Body.state">Body.state</a>,·compute·mass·and·moment·of·inertia·based·on·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Material</a>·and·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Shape">Shape</a></li> |
387 | </ol> | 387 | </ol> |
388 | <p>In·order·to·avoid·such·tasks,·shorthand·functions·are·defined·in·the·<a·class="reference·external"·href="yade.utils.html#">utils</a>·module;·to·mention·a·few·of·them,·they·are·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>,·<a·class="reference·external"·href="yade.utils.html#yade.utils.facet">utils.facet</a>,·<a·class="reference·external"·href="yade.utils.html#yade.utils.wall">utils.wall</a>.</p> | 388 | <p>In·order·to·avoid·such·tasks,·shorthand·functions·are·defined·in·the·<a·class="reference·external"·href="yade.utils.html#">utils</a>·module;·to·mention·a·few·of·them,·they·are·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>,·<a·class="reference·external"·href="yade.utils.html#yade.utils.facet">utils.facet</a>,·<a·class="reference·external"·href="yade.utils.html#yade.utils.wall">utils.wall</a>.</p> |
389 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[43]:·</span><span·class="n">s</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>····<span·class="c1">#·create·sphere·particle·centered·at·(0,0,0)·with·radius=1</span> | 389 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[43]:·</span><span·class="n">s</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>····<span·class="c1">#·create·sphere·particle·centered·at·(0,0,0)·with·radius=1</span> |
390 | <span·class="gp">Yade·[44]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span>·······················<span·class="c1">#·s.shape·describes·the·geometry·of·the·particle</span> | 390 | <span·class="gp">Yade·[44]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span>·······················<span·class="c1">#·s.shape·describes·the·geometry·of·the·particle</span> |
391 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">44</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Sphere</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 391 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">44</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">Sphere</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf6521be0</span><span·class="o">></span> |
392 | <span·class="gp">Yade·[45]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span>················<span·class="c1">#·we·already·know·the·Sphere·class</span> | 392 | <span·class="gp">Yade·[45]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span>················<span·class="c1">#·we·already·know·the·Sphere·class</span> |
393 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">45</span><span·class="p">]:</span>·<span·class="mf">1.0</span> | 393 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">45</span><span·class="p">]:</span>·<span·class="mf">1.0</span> |
394 | <span·class="gp">Yade·[46]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">mass</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">inertia</span>·<span·class="c1">#·inertia·is·computed·from·density·and·geometry</span> | 394 | <span·class="gp">Yade·[46]:·</span><span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">mass</span><span·class="p">,</span>·<span·class="n">s</span><span·class="o">.</span><span·class="n">state</span><span·class="o">.</span><span·class="n">inertia</span>·<span·class="c1">#·inertia·is·computed·from·density·and·geometry</span> |
395 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">46</span><span·class="p">]:</span>· | 395 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">46</span><span·class="p">]:</span>· |
396 | <span·class="go">(4188.790204786391,</span> | 396 | <span·class="go">(4188.790204786391,</span> |
Offset 404, 15 lines modified | Offset 404, 15 lines modified | ||
404 | <span·class="gp">Yade·[48]:·</span><span·class="n">s2</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="o">-</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">fixed</span><span·class="o">=</span><span·class="bp">True</span><span·class="p">)</span>·····<span·class="c1">#·explanation·below</span> | 404 | <span·class="gp">Yade·[48]:·</span><span·class="n">s2</span><span·class="o">=</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="o">-</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">fixed</span><span·class="o">=</span><span·class="bp">True</span><span·class="p">)</span>·····<span·class="c1">#·explanation·below</span> |
405 | </pre></div> | 405 | </pre></div> |
406 | </div> | 406 | </div> |
407 | <p>In·the·last·example,·the·particle·was·fixed·in·space·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">fixed=True</span></code>·parameter·to·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>;·such·a·particle·will·not·move,·creating·a·primitive·boundary·condition.</p> | 407 | <p>In·the·last·example,·the·particle·was·fixed·in·space·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">fixed=True</span></code>·parameter·to·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">utils.sphere</a>;·such·a·particle·will·not·move,·creating·a·primitive·boundary·condition.</p> |
408 | <p>A·particle·object·is·not·yet·part·of·the·simulation;·in·order·to·do·so,·a·special·function·is·called:</p> | 408 | <p>A·particle·object·is·not·yet·part·of·the·simulation;·in·order·to·do·so,·a·special·function·is·called:</p> |
409 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[49]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">s</span><span·class="p">)</span>············<span·class="c1">#·adds·particle·s·to·the·simulation;·returns·id·of·the·particle(s)·added</span> | 409 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[49]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">s</span><span·class="p">)</span>············<span·class="c1">#·adds·particle·s·to·the·simulation;·returns·id·of·the·particle(s)·added</span> |
410 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">49</span><span·class="p">]:</span>·<span·class="mi">1 | 410 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">49</span><span·class="p">]:</span>·<span·class="mi">14</span> |
411 | </pre></div> | 411 | </pre></div> |
412 | </div> | 412 | </div> |
413 | </div> | 413 | </div> |
414 | <div·class="section"·id="packs"> | 414 | <div·class="section"·id="packs"> |
415 | <h4>Packs<a·class="headerlink"·href="#packs"·title="Permalink·to·this·headline">¶</a></h4> | 415 | <h4>Packs<a·class="headerlink"·href="#packs"·title="Permalink·to·this·headline">¶</a></h4> |
416 | <p>There·are·functions·to·generate·a·specific·arrangement·of·particles·in·the·<a·class="reference·external"·href="yade.pack.html#">pack</a>·module;·for·instance,·cloud·(random·loose·packing)·of·spheres·can·be·generated·with·the·<a·class="reference·external"·href="yade.pack.html#yade._packSpheres.SpherePack">pack.SpherePack</a>·class:</p> | 416 | <p>There·are·functions·to·generate·a·specific·arrangement·of·particles·in·the·<a·class="reference·external"·href="yade.pack.html#">pack</a>·module;·for·instance,·cloud·(random·loose·packing)·of·spheres·can·be·generated·with·the·<a·class="reference·external"·href="yade.pack.html#yade._packSpheres.SpherePack">pack.SpherePack</a>·class:</p> |
417 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[50]:·</span><span·class="kn">from</span>·<span·class="nn">yade</span>·<span·class="kn">import</span>·<span·class="n">pack</span> | 417 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[50]:·</span><span·class="kn">from</span>·<span·class="nn">yade</span>·<span·class="kn">import</span>·<span·class="n">pack</span> |
Offset 420, 41 lines modified | Offset 420, 41 lines modified | ||
420 | <span·class="gp">Yade·[51]:·</span><span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span>···················<span·class="c1">#·create·an·empty·cloud;·SpherePack·contains·only·geometrical·information</span> | 420 | <span·class="gp">Yade·[51]:·</span><span·class="n">sp</span><span·class="o">=</span><span·class="n">pack</span><span·class="o">.</span><span·class="n">SpherePack</span><span·class="p">()</span>···················<span·class="c1">#·create·an·empty·cloud;·SpherePack·contains·only·geometrical·information</span> |
421 | <span·class="gp">Yade·[52]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">makeCloud</span><span·class="p">((</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">),(</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="n">rMean</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">)</span>·<span·class="c1">#·put·spheres·with·defined·radius·inside·box·given·by·corners·(1,1,1)·and·(2,2,2)</span> | 421 | <span·class="gp">Yade·[52]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">makeCloud</span><span·class="p">((</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">),(</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="n">rMean</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">)</span>·<span·class="c1">#·put·spheres·with·defined·radius·inside·box·given·by·corners·(1,1,1)·and·(2,2,2)</span> |
422 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">52</span><span·class="p">]:</span>·<span·class="mi">6</span> | 422 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">52</span><span·class="p">]:</span>·<span·class="mi">6</span> |
423 | <span·class="gp">Yade·[53]:·</span><span·class="k">for</span>·<span·class="n">c</span><span·class="p">,</span><span·class="n">r</span>·<span·class="ow">in</span>·<span·class="n">sp</span><span·class="p">:</span>·<span·class="k">print</span>·<span·class="n">c</span><span·class="p">,</span><span·class="n">r</span>···············<span·class="c1">#·print·center·and·radius·of·all·particles·(SpherePack·is·a·sequence·which·can·be·iterated·over)</span> | 423 | <span·class="gp">Yade·[53]:·</span><span·class="k">for</span>·<span·class="n">c</span><span·class="p">,</span><span·class="n">r</span>·<span·class="ow">in</span>·<span·class="n">sp</span><span·class="p">:</span>·<span·class="k">print</span>·<span·class="n">c</span><span·class="p">,</span><span·class="n">r</span>···············<span·class="c1">#·print·center·and·radius·of·all·particles·(SpherePack·is·a·sequence·which·can·be·iterated·over)</span> |
424 | <span·class="gp">···....:</span>· | 424 | <span·class="gp">···....:</span>· |
425 | <span·class="go">Vector3(1.3010363480085845,1.5255659379303137,1.3933960026999899)·0.2</span> | ||
426 | <span·class="go">Vector3(1.6640323199928106,1.3041214290113388,1.6455109525895781)·0.2</span> | ||
427 | <span·class="go">Vector3(1.7239130204766178,1.6054131370088207,1.297540926465337)·0.2</span> | ||
428 | <span·class="go">Vector3(1.6301461942774673,1.7869477855851388,1.7565582735990717)·0.2</span> | ||
429 | <span·class="go">Vector3(1.243188452947129,1.5498247267211087,1.7893891780538382)·0.2</span> | ||
430 | <span·class="go">Vector3(1. | 425 | <span·class="go">Vector3(1.5734402592046561,1.7347571605208862,1.2628969699730137)·0.2</span> |
426 | <span·class="go">Vector3(1.7755021414491368,1.263870441693692,1.4901030471456265)·0.2</span> | ||
427 | <span·class="go">Vector3(1.228179348845202,1.2453609598291675,1.4189043807041872)·0.2</span> | ||
428 | <span·class="go">Vector3(1.3563515850867625,1.6473736953431497,1.7756513398845226)·0.2</span> | ||
429 | <span·class="go">Vector3(1.7474059670673738,1.6334374913325882,1.6611478592838607)·0.2</span> | ||
430 | <span·class="go">Vector3(1.479099613501783,1.2174505574791232,1.7558731692432175)·0.2</span> | ||
431 | <span·class="gp">Yade·[54]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">toSimulation</span><span·class="p">()</span>······················<span·class="c1">#·create·particles·and·add·them·to·the·simulation</span> | 431 | <span·class="gp">Yade·[54]:·</span><span·class="n">sp</span><span·class="o">.</span><span·class="n">toSimulation</span><span·class="p">()</span>······················<span·class="c1">#·create·particles·and·add·them·to·the·simulation</span> |
432 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">54</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">1 | 432 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">54</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">15</span><span·class="p">,</span>·<span·class="mi">16</span><span·class="p">,</span>·<span·class="mi">17</span><span·class="p">,</span>·<span·class="mi">18</span><span·class="p">,</span>·<span·class="mi">19</span><span·class="p">,</span>·<span·class="mi">20</span><span·class="p">]</span> |
433 | </pre></div> | 433 | </pre></div> |
434 | </div> | 434 | </div> |
435 | </div> | 435 | </div> |
436 | <div·class="section"·id="boundaries"> | 436 | <div·class="section"·id="boundaries"> |
437 | <h4>Boundaries<a·class="headerlink"·href="#boundaries"·title="Permalink·to·this·headline">¶</a></h4> | 437 | <h4>Boundaries<a·class="headerlink"·href="#boundaries"·title="Permalink·to·this·headline">¶</a></h4> |
438 | <p><a·class="reference·external"·href="yade.utils.html#yade.utils.facet">utils.facet</a>·(triangle·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Facet">Facet</a>)·and·<a·class="reference·external"·href="yade.utils.html#yade.utils.wall">utils.wall</a>·(infinite·axes-aligned·plane·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Wall">Wall</a>)·geometries·are·typically·used·to·define·boundaries.·For·instance,·a·“floor”·for·the·simulation·can·be·created·like·this:</p> | 438 | <p><a·class="reference·external"·href="yade.utils.html#yade.utils.facet">utils.facet</a>·(triangle·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Facet">Facet</a>)·and·<a·class="reference·external"·href="yade.utils.html#yade.utils.wall">utils.wall</a>·(infinite·axes-aligned·plane·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Wall">Wall</a>)·geometries·are·typically·used·to·define·boundaries.·For·instance,·a·“floor”·for·the·simulation·can·be·created·like·this:</p> |
439 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[55]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">wall</span><span·class="p">(</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">axis</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">))</span> | 439 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[55]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">wall</span><span·class="p">(</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">axis</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">))</span> |
440 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">55</span><span·class="p">]:</span>·<span·class="mi">2 | 440 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">55</span><span·class="p">]:</span>·<span·class="mi">21</span> |
441 | </pre></div> | 441 | </pre></div> |
442 | </div> | 442 | </div> |
443 | <p>There·are·other·conveinence·functions·(like·<a·class="reference·external"·href="yade.utils.html#yade.utils.facetBox">utils.facetBox</a>·for·creating·closed·or·open·rectangular·box,·or·family·of·<a·class="reference·external"·href="yade.ymport.html#">ymport</a>·functions)</p> | 443 | <p>There·are·other·conveinence·functions·(like·<a·class="reference·external"·href="yade.utils.html#yade.utils.facetBox">utils.facetBox</a>·for·creating·closed·or·open·rectangular·box,·or·family·of·<a·class="reference·external"·href="yade.ymport.html#">ymport</a>·functions)</p> |
444 | </div> | 444 | </div> |
445 | </div> | 445 | </div> |
446 | <div·class="section"·id="look-inside"> | 446 | <div·class="section"·id="look-inside"> |
447 | <h3>Look·inside<a·class="headerlink"·href="#look-inside"·title="Permalink·to·this·headline">¶</a></h3> | 447 | <h3>Look·inside<a·class="headerlink"·href="#look-inside"·title="Permalink·to·this·headline">¶</a></h3> |
448 | <p>The·simulation·can·be·inspected·in·several·ways.·All·data·can·be·accessed·from·python·directly:</p> | 448 | <p>The·simulation·can·be·inspected·in·several·ways.·All·data·can·be·accessed·from·python·directly:</p> |
449 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[56]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">)</span> | 449 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[56]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">)</span> |
450 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">56</span><span·class="p">]:</span>·<span·class="mi">2 | 450 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">56</span><span·class="p">]:</span>·<span·class="mi">22</span> |
451 | <span·class="gp">Yade·[57]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span>···<span·class="c1">#·radius·of·body·#1·(will·give·error·if·not·sphere,·since·only·spheres·have·radius·defined)</span> | 451 | <span·class="gp">Yade·[57]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">shape</span><span·class="o">.</span><span·class="n">radius</span>···<span·class="c1">#·radius·of·body·#1·(will·give·error·if·not·sphere,·since·only·spheres·have·radius·defined)</span> |
452 | <span·class="go">AttributeErrorTraceback·(most·recent·call·last)</span> | 452 | <span·class="go">AttributeErrorTraceback·(most·recent·call·last)</span> |
453 | <span·class="go">/build/yade-2019.01a/debian/tmp/usr/lib/aarch64-linux-gnu/yade/py/yade/__init__.pyc·in·<module>()</span> | 453 | <span·class="go">/build/yade-2019.01a/debian/tmp/usr/lib/aarch64-linux-gnu/yade/py/yade/__init__.pyc·in·<module>()</span> |
454 | <span·class="go">---->·1·O.bodies[1].shape.radius···#·radius·of·body·#1·(will·give·error·if·not·sphere,·since·only·spheres·have·radius·defined)</span> | 454 | <span·class="go">---->·1·O.bodies[1].shape.radius···#·radius·of·body·#1·(will·give·error·if·not·sphere,·since·only·spheres·have·radius·defined)</span> |
Offset 477, 15 lines modified | Offset 477, 15 lines modified | ||
477 | <dd><em>Inspector</em>·is·opened·by·clicking·on·the·appropriate·button·in·the·<em>Controller</em>.·It·shows·(and·updated)·internal·data·of·the·current·simulation.·In·particular,·one·can·have·a·look·at·engines,·particles·(<em>Bodies</em>)·and·interactions·(<em>Interactions</em>).·Clicking·at·each·of·the·attribute·names·links·to·the·appropriate·section·in·the·documentation.</dd> | 477 | <dd><em>Inspector</em>·is·opened·by·clicking·on·the·appropriate·button·in·the·<em>Controller</em>.·It·shows·(and·updated)·internal·data·of·the·current·simulation.·In·particular,·one·can·have·a·look·at·engines,·particles·(<em>Bodies</em>)·and·interactions·(<em>Interactions</em>).·Clicking·at·each·of·the·attribute·names·links·to·the·appropriate·section·in·the·documentation.</dd> |
478 | </dl> | 478 | </dl> |
479 | <p·class="rubric">Exercises</p> | 479 | <p·class="rubric">Exercises</p> |
480 | <ol·class="arabic"> | 480 | <ol·class="arabic"> |
481 | <li><p·class="first">What·is·this·code·going·to | 481 | <li><p·class="first">What·is·this·code·going·to |
482 | do?</p> | 482 | do?</p> |
483 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[59]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">([</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">2</span><span·class="o">*</span><span·class="n">i</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="mi">1</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">20</span><span·class="p">)])</span> | 483 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[59]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">([</span><span·class="n">utils</span><span·class="o">.</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">2</span><span·class="o">*</span><span·class="n">i</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="mi">1</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">1</span><span·class="p">,</span><span·class="mi">20</span><span·class="p">)])</span> |
484 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">59</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">2 | 484 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">59</span><span·class="p">]:</span>·<span·class="p">[</span><span·class="mi">22</span><span·class="p">,</span>·<span·class="mi">23</span><span·class="p">,</span>·<span·class="mi">24</span><span·class="p">,</span>·<span·class="mi">25</span><span·class="p">,</span>·<span·class="mi">26</span><span·class="p">,</span>·<span·class="mi">27</span><span·class="p">,</span>·<span·class="mi">28</span><span·class="p">,</span>·<span·class="mi">29</span><span·class="p">,</span>·<span·class="mi">30</span><span·class="p">,</span>·<span·class="mi">31</span><span·class="p">,</span>·<span·class="mi">32</span><span·class="p">,</span>·<span·class="mi">33</span><span·class="p">,</span>·<span·class="mi">34</span><span·class="p">,</span>·<span·class="mi">35</span><span·class="p">,</span>·<span·class="mi">36</span><span·class="p">,</span>·<span·class="mi">37</span><span·class="p">,</span>·<span·class="mi">38</span><span·class="p">,</span>·<span·class="mi">39</span><span·class="p">,</span>·<span·class="mi">40</span><span·class="p">]</span> |
485 | </pre></div> | 485 | </pre></div> |
486 | </div> | 486 | </div> |
487 | </li> | 487 | </li> |
488 | <li><p·class="first">Create·a·simple·simulation·with·cloud·of·spheres·enclosed·in·the·box·<code·class="docutils·literal·notranslate"><span·class="pre">(0,0,0)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">(1,1,1)</span></code>·with·mean·radius·.1.·(hint:·<a·class="reference·external"·href="yade.pack.html#yade._packSpheres.SpherePack.makeCloud">pack.SpherePack.makeCloud</a>)</p> | 488 | <li><p·class="first">Create·a·simple·simulation·with·cloud·of·spheres·enclosed·in·the·box·<code·class="docutils·literal·notranslate"><span·class="pre">(0,0,0)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">(1,1,1)</span></code>·with·mean·radius·.1.·(hint:·<a·class="reference·external"·href="yade.pack.html#yade._packSpheres.SpherePack.makeCloud">pack.SpherePack.makeCloud</a>)</p> |
489 | </li> | 489 | </li> |
490 | <li><p·class="first">Enclose·the·cloud·created·above·in·box·with·corners·<code·class="docutils·literal·notranslate"><span·class="pre">(0,0,0)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">(1,1,1)</span></code>;·keep·the·top·of·the·box·open.·(hint:·<a·class="reference·external"·href="yade.utils.html#yade.utils.facetBox">utils.facetBox</a>;·type·<code·class="docutils·literal·notranslate"><span·class="pre">utils.facetBox?</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">utils.facetBox??</span></code>·to·get·help·on·the·command·line)</p> | 490 | <li><p·class="first">Enclose·the·cloud·created·above·in·box·with·corners·<code·class="docutils·literal·notranslate"><span·class="pre">(0,0,0)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">(1,1,1)</span></code>;·keep·the·top·of·the·box·open.·(hint:·<a·class="reference·external"·href="yade.utils.html#yade.utils.facetBox">utils.facetBox</a>;·type·<code·class="docutils·literal·notranslate"><span·class="pre">utils.facetBox?</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">utils.facetBox??</span></code>·to·get·help·on·the·command·line)</p> |
491 | </li> | 491 | </li> |
Offset 506, 18 lines modified | Offset 506, 18 lines modified | ||
506 | <span·class="gp">···....:</span>····<span·class="p">),</span> | 506 | <span·class="gp">···....:</span>····<span·class="p">),</span> |
507 | <span·class="gp">···....:</span>····<span·class="n">NewtonIntegrator</span><span·class="p">(</span><span·class="n">damping</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">label</span><span·class="o">=</span><span·class="s1">'newton'</span><span·class="p">)</span>······<span·class="c1">#·define·a·name·under·which·we·can·access·this·engine·easily</span> | 507 | <span·class="gp">···....:</span>····<span·class="n">NewtonIntegrator</span><span·class="p">(</span><span·class="n">damping</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">label</span><span·class="o">=</span><span·class="s1">'newton'</span><span·class="p">)</span>······<span·class="c1">#·define·a·name·under·which·we·can·access·this·engine·easily</span> |
508 | <span·class="gp">···....:</span>·<span·class="p">]</span> | 508 | <span·class="gp">···....:</span>·<span·class="p">]</span> |
509 | <span·class="gp">···....:</span>· | 509 | <span·class="gp">···....:</span>· |
510 | <span·class="gp">Yade·[61]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span> | 510 | <span·class="gp">Yade·[61]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span> |
511 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">61</span><span·class="p">]:</span>· | 511 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">61</span><span·class="p">]:</span>· |
512 | <span·class="go">[<ForceResetter·instance·at·0xaaaa | 512 | <span·class="go">[<ForceResetter·instance·at·0xaaaaf66091c0>,</span> |
513 | <span·class="go">·<InsertionSortCollider·instance·at·0xaaaa | 513 | <span·class="go">·<InsertionSortCollider·instance·at·0xaaaaf5e02b20>,</span> |
514 | <span·class="go">·<InteractionLoop·instance·at·0xaaaa | 514 | <span·class="go">·<InteractionLoop·instance·at·0xaaaaf5c06ec0>,</span> |
515 | <span·class="go">·<NewtonIntegrator·instance·at·0xaaaa | 515 | <span·class="go">·<NewtonIntegrator·instance·at·0xaaaaf653b3f0>]</span> |
516 | <span·class="gp">Yade·[62]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span><span·class="p">[</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">==</span><span·class="n">newton</span>····<span·class="c1">#·is·it·the·same·object?</span> | 516 | <span·class="gp">Yade·[62]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">engines</span><span·class="p">[</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">==</span><span·class="n">newton</span>····<span·class="c1">#·is·it·the·same·object?</span> |
517 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">62</span><span·class="p">]:</span>·<span·class="bp">True</span> | 517 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">62</span><span·class="p">]:</span>·<span·class="bp">True</span> |
518 | <span·class="gp">Yade·[63]:·</span><span·class="n">newton</span><span·class="o">.</span><span·class="n">damping</span> | 518 | <span·class="gp">Yade·[63]:·</span><span·class="n">newton</span><span·class="o">.</span><span·class="n">damping</span> |
519 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">63</span><span·class="p">]:</span>·<span·class="mf">0.2</span> | 519 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">63</span><span·class="p">]:</span>·<span·class="mf">0.2</span> |
520 | </pre></div> | 520 | </pre></div> |
Offset 82, 15 lines modified | Offset 82, 15 lines modified | ||
82 | <p>If·no·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Material</a>·is·specified·when·calling·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">sphere</a>,·the·<em>last</em>·defined·material·is·used;·that·is·a·convenient·default.·If·no·material·is·defined·yet·(hence·there·is·no·last·material),·a·default·material·will·be·created:·FrictMat(density=2e3,young=30e9,poisson=.3,frictionAngle=.5236).·This·should·not·happen·for·serious·simulations,·but·is·handy·in·simple·scripts,·where·exact·material·properties·are·more·or·less·irrelevant.</p> | 82 | <p>If·no·<a·class="reference·external"·href="yade.wrapper.html#yade.wrapper.Material">Material</a>·is·specified·when·calling·<a·class="reference·external"·href="yade.utils.html#yade.utils.sphere">sphere</a>,·the·<em>last</em>·defined·material·is·used;·that·is·a·convenient·default.·If·no·material·is·defined·yet·(hence·there·is·no·last·material),·a·default·material·will·be·created:·FrictMat(density=2e3,young=30e9,poisson=.3,frictionAngle=.5236).·This·should·not·happen·for·serious·simulations,·but·is·handy·in·simple·scripts,·where·exact·material·properties·are·more·or·less·irrelevant.</p> |
83 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[1]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="p">)</span> | 83 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[1]:·</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="p">)</span> |
84 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]:</span>·<span·class="mi">0</span> | 84 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]:</span>·<span·class="mi">0</span> |
85 | <span·class="gp">Yade·[2]:·</span><span·class="n">idConcrete</span><span·class="o">=</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">FrictMat</span><span·class="p">(</span><span·class="n">young</span><span·class="o">=</span><span·class="mf">30e9</span><span·class="p">,</span><span·class="n">poisson</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">frictionAngle</span><span·class="o">=.</span><span·class="mi">6</span><span·class="p">,</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"concrete"</span><span·class="p">))</span> | 85 | <span·class="gp">Yade·[2]:·</span><span·class="n">idConcrete</span><span·class="o">=</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">FrictMat</span><span·class="p">(</span><span·class="n">young</span><span·class="o">=</span><span·class="mf">30e9</span><span·class="p">,</span><span·class="n">poisson</span><span·class="o">=.</span><span·class="mi">2</span><span·class="p">,</span><span·class="n">frictionAngle</span><span·class="o">=.</span><span·class="mi">6</span><span·class="p">,</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"concrete"</span><span·class="p">))</span> |
86 | <span·class="gp">Yade·[3]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="p">[</span><span·class="n">idConcrete</span><span·class="p">]</span> | 86 | <span·class="gp">Yade·[3]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">materials</span><span·class="p">[</span><span·class="n">idConcrete</span><span·class="p">]</span> |
87 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">FrictMat</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 87 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]:</span>·<span·class="o"><</span><span·class="n">FrictMat</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf6697e90</span><span·class="o">></span> |
88 | <span·class="c">#·uses·the·last·defined·material</span> | 88 | <span·class="c">#·uses·the·last·defined·material</span> |
89 | <span·class="gp">Yade·[4]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">sphere</span><span·class="p">(</span><span·class="n">center</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">))</span> | 89 | <span·class="gp">Yade·[4]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">sphere</span><span·class="p">(</span><span·class="n">center</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">),</span><span·class="n">radius</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">))</span> |
90 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">]:</span>·<span·class="mi">0</span> | 90 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">]:</span>·<span·class="mi">0</span> |
91 | <span·class="c">#·material·given·by·id</span> | 91 | <span·class="c">#·material·given·by·id</span> |
92 | <span·class="gp">Yade·[5]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">material</span><span·class="o">=</span><span·class="n">idConcrete</span><span·class="p">))</span> | 92 | <span·class="gp">Yade·[5]:·</span><span·class="n">O</span><span·class="o">.</span><span·class="n">bodies</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">sphere</span><span·class="p">((</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">2</span><span·class="p">),</span><span·class="mi">1</span><span·class="p">,</span><span·class="n">material</span><span·class="o">=</span><span·class="n">idConcrete</span><span·class="p">))</span> |
Offset 514, 15 lines modified | Offset 514, 15 lines modified | ||
514 | <span·class="gp">···....:</span>·<span·class="p">]</span> | 514 | <span·class="gp">···....:</span>·<span·class="p">]</span> |
515 | <span·class="gp">···....:</span>· | 515 | <span·class="gp">···....:</span>· |
516 | <span·class="gp">Yade·[29]:·</span><span·class="n">i</span><span·class="o">=</span><span·class="n">createInteraction</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">)</span> | 516 | <span·class="gp">Yade·[29]:·</span><span·class="n">i</span><span·class="o">=</span><span·class="n">createInteraction</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span><span·class="mi">1</span><span·class="p">)</span> |
517 | <span·class="c">#·created·by·functors·in·InteractionLoop</span> | 517 | <span·class="c">#·created·by·functors·in·InteractionLoop</span> |
518 | <span·class="gp">Yade·[30]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="n">i</span><span·class="o">.</span><span·class="n">phys</span> | 518 | <span·class="gp">Yade·[30]:·</span><span·class="n">i</span><span·class="o">.</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="n">i</span><span·class="o">.</span><span·class="n">phys</span> |
519 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">30</span><span·class="p">]:</span>·<span·class="p">(</span><span·class="o"><</span><span·class="n">ScGeom</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaa | 519 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">30</span><span·class="p">]:</span>·<span·class="p">(</span><span·class="o"><</span><span·class="n">ScGeom</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf6752b40</span><span·class="o">></span><span·class="p">,</span>·<span·class="o"><</span><span·class="n">FrictPhys</span>·<span·class="n">instance</span>·<span·class="n">at</span>·<span·class="mh">0xaaaaf62c2070</span><span·class="o">></span><span·class="p">)</span> |
520 | </pre></div> | 520 | </pre></div> |
521 | </div> | 521 | </div> |
522 | <p>This·method·will·be·rather·slow·if·many·interaction·are·to·be·created·(the·functor·lookup·will·be·repeated·for·each·of·them).·In·such·case,·ask·on·<a·class="reference·external"·href="mailto:yade-dev%40lists.launchpad.net">yade-dev<span>@</span>lists<span>.</span>launchpad<span>.</span>net</a>·to·have·the·<a·class="reference·external"·href="yade.utils.html#yade.utils.createInteraction">createInteraction</a>·function·accept·list·of·pairs·id’s·as·well.</p> | 522 | <p>This·method·will·be·rather·slow·if·many·interaction·are·to·be·created·(the·functor·lookup·will·be·repeated·for·each·of·them).·In·such·case,·ask·on·<a·class="reference·external"·href="mailto:yade-dev%40lists.launchpad.net">yade-dev<span>@</span>lists<span>.</span>launchpad<span>.</span>net</a>·to·have·the·<a·class="reference·external"·href="yade.utils.html#yade.utils.createInteraction">createInteraction</a>·function·accept·list·of·pairs·id’s·as·well.</p> |
523 | </div> | 523 | </div> |
524 | </div> | 524 | </div> |
525 | <div·class="section"·id="base-engines"> | 525 | <div·class="section"·id="base-engines"> |
526 | <h3>Base·engines<a·class="headerlink"·href="#base-engines"·title="Permalink·to·this·headline">¶</a></h3> | 526 | <h3>Base·engines<a·class="headerlink"·href="#base-engines"·title="Permalink·to·this·headline">¶</a></h3> |
Offset 810, 19 lines modified | Offset 810, 19 lines modified | ||
810 | <ul·class="simple"> | 810 | <ul·class="simple"> |
811 | <li><code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·is·<em>saved·and·loaded·with·simulation</em>;</li> | 811 | <li><code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·is·<em>saved·and·loaded·with·simulation</em>;</li> |
812 | <li><code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·has·some·values·pre-initialized.</li> | 812 | <li><code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·has·some·values·pre-initialized.</li> |
813 | </ul> | 813 | </ul> |
814 | <p>After·Yade·startup,·<code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·contains·the·following:</p> | 814 | <p>After·Yade·startup,·<code·class="docutils·literal·notranslate"><span·class="pre">O.tags</span></code>·contains·the·following:</p> |
815 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[45]:·</span><span·class="nb">dict</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">tags</span><span·class="p">)</span>·<span·class="c1">#·convert·to·real·dictionary</span> | 815 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">Yade·[45]:·</span><span·class="nb">dict</span><span·class="p">(</span><span·class="n">O</span><span·class="o">.</span><span·class="n">tags</span><span·class="p">)</span>·<span·class="c1">#·convert·to·real·dictionary</span> |
816 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">45</span><span·class="p">]:</span>· | 816 | <span·class="gr">Out</span><span·class="p">[</span><span·class="mi">45</span><span·class="p">]:</span>· |
817 | <span·class="go">{'author':·'root~(root@ | 817 | <span·class="go">{'author':·'root~(root@i-capture-the-hostname)',</span> |
818 | <span·class="go">·'d.id':·'202 | 818 | <span·class="go">·'d.id':·'20211018T115007p27278',</span> |
819 | <span·class="go">·'id':·'202 | 819 | <span·class="go">·'id':·'20211018T115007p27278',</span> |
820 | <span·class="go">·'id.d':·'202 | 820 | <span·class="go">·'id.d':·'20211018T115007p27278',</span> |
821 | <span·class="go">·'isoTime':·'202 | 821 | <span·class="go">·'isoTime':·'20211018T115007'}</span> |
822 | </pre></div> | 822 | </pre></div> |
823 | </div> | 823 | </div> |
824 | <dl·class="docutils"> | 824 | <dl·class="docutils"> |
825 | <dt>author</dt> | 825 | <dt>author</dt> |
826 | <dd>Real·name,·username·and·machine·as·obtained·from·your·system·at·simulation·creation</dd> | 826 | <dd>Real·name,·username·and·machine·as·obtained·from·your·system·at·simulation·creation</dd> |
827 | <dt>id</dt> | 827 | <dt>id</dt> |
828 | <dd>Unique·identifier·of·this·Yade·instance·(or·of·the·instance·which·created·a·loaded·simulation).·It·is·composed·of·date,·time·and·process·number.·Useful·if·you·run·simulations·in·parallel·and·want·to·avoid·overwriting·each·other’s·outputs;·embed·<code·class="docutils·literal·notranslate"><span·class="pre">O.tags['id']</span></code>·in·output·filenames·(either·as·directory·name,·or·as·part·of·the·file’s·name·itself)·to·avoid·it.·This·is·explained·in·<a·class="reference·internal"·href="#batch-output-separate"><span·class="std·std-ref">Separating·output·files·from·jobs</span></a>·in·detail.</dd> | 828 | <dd>Unique·identifier·of·this·Yade·instance·(or·of·the·instance·which·created·a·loaded·simulation).·It·is·composed·of·date,·time·and·process·number.·Useful·if·you·run·simulations·in·parallel·and·want·to·avoid·overwriting·each·other’s·outputs;·embed·<code·class="docutils·literal·notranslate"><span·class="pre">O.tags['id']</span></code>·in·output·filenames·(either·as·directory·name,·or·as·part·of·the·file’s·name·itself)·to·avoid·it.·This·is·explained·in·<a·class="reference·internal"·href="#batch-output-separate"><span·class="std·std-ref">Separating·output·files·from·jobs</span></a>·in·detail.</dd> |