You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/tutorials/online_analysis/lattice/online_analysis.ipynb
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -378,6 +378,7 @@
378
378
},
379
379
{
380
380
"cell_type": "code",
381
+
"id": "6f3ed63d-e324-443d-9b68-b2cf618d31c7",
381
382
"execution_count": 7,
382
383
"metadata": {},
383
384
"outputs": [
@@ -399,13 +400,15 @@
399
400
},
400
401
{
401
402
"cell_type": "markdown",
403
+
"id": "96c154fe-5ca8-4d89-91f8-8fd4e75cb80e",
402
404
"metadata": {},
403
405
"source": [
404
406
"We then apply the function `probe_points` to the `ux` and `uy` tensors computed in the last time step of the previous simulation. Note that all tensors are already on the DB, thus we can reference them by name. Finally, we download and plot the output (a 2D velocity field), which is stored as `probe_u` on the DB."
405
407
]
406
408
},
407
409
{
408
410
"cell_type": "code",
411
+
"id": "36e3b415-dcc1-4d25-9cce-52388146a4bb",
409
412
"execution_count": 8,
410
413
"metadata": {},
411
414
"outputs": [
@@ -432,6 +435,7 @@
432
435
},
433
436
{
434
437
"cell_type": "markdown",
438
+
"id": "9d7e4966-a0de-480c-9556-936197a5a5d2",
435
439
"metadata": {},
436
440
"source": [
437
441
"### Uploading a function inline\n",
@@ -453,6 +457,7 @@
453
457
},
454
458
{
455
459
"cell_type": "markdown",
460
+
"id": "1c4daf43-34d0-482a-b9b5-b3b6f1e173c4",
456
461
"metadata": {},
457
462
"source": [
458
463
"We then store the function on the DB under the key `norm_function`."
@@ -470,6 +475,7 @@
470
475
},
471
476
{
472
477
"cell_type": "markdown",
478
+
"id": "19409ac6-e118-44db-a847-2d905fdf0331",
473
479
"metadata": {},
474
480
"source": [
475
481
"Note that the key we used identifies a functional unit containing the function itself: this is similar to the key used to store the `probe` script above. When we want to run the function, we just call it with `run_script`, by indicating the `script` key as `\"norm_function\"` and the name of the function itself as `\"compute_norm\"`."
0 commit comments