:orphan: Tutorials ========= A single learning arc, end-to-end, through the envisaged pyOFTools workflow: set up initial conditions, instrument the run with an in-situ post-processor, grow the post-processor with more monitors, then run the solver live and plot what it produced. Each tutorial builds on the previous one — work through them in order. All five run against the ``damBreak`` case shipped at ``examples/damBreak/``; :func:`pyOFTools.clone_example` copies it to a tmp directory so the on-disk baseline stays pristine. Prerequisites ------------- - OpenFOAM v2406+ sourced (``source $FOAM_INST_DIR/etc/bashrc``). - pybFoam and pyOFTools installed. - The ``libembeddingPython.so`` plug-in available — required for :doc:`example_05_live_run_and_plot`, optional for the rest. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_tutorials/images/thumb/sphx_glr_example_01_setfields_thumb.png :alt: :doc:`/auto_tutorials/example_01_setfields` .. raw:: html
Set initial conditions with pyoftools setFields
.. raw:: html
.. only:: html .. image:: /auto_tutorials/images/thumb/sphx_glr_example_02_first_postprocessor_thumb.png :alt: :doc:`/auto_tutorials/example_02_first_postprocessor` .. raw:: html
Your first in-situ post-processor
.. raw:: html
.. only:: html .. image:: /auto_tutorials/images/thumb/sphx_glr_example_04_surface_monitors_thumb.png :alt: :doc:`/auto_tutorials/example_04_surface_monitors` .. raw:: html
Surface monitors alongside volume ones
.. raw:: html
.. only:: html .. image:: /auto_tutorials/images/thumb/sphx_glr_example_05_live_run_and_plot_thumb.png :alt: :doc:`/auto_tutorials/example_05_live_run_and_plot` .. raw:: html
Run live with the solver, then plot
.. raw:: html
.. only:: html .. image:: /auto_tutorials/images/thumb/sphx_glr_example_03_profiles_and_selectors_thumb.png :alt: :doc:`/auto_tutorials/example_03_profiles_and_selectors` .. raw:: html
More monitors in the same post-processor
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /auto_tutorials/example_01_setfields /auto_tutorials/example_02_first_postprocessor /auto_tutorials/example_04_surface_monitors /auto_tutorials/example_05_live_run_and_plot /auto_tutorials/example_03_profiles_and_selectors .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_