:orphan: How-to guides ============= Task-focused recipes. Read any of these independently — each solves one specific problem. They assume you've worked through at least the first tutorial. All examples run against the ``damBreak`` case shipped at ``examples/damBreak/``; :func:`pyOFTools.clone_example` copies it to a tmp directory, then each script runs ``Allrun`` to generate the mesh and initialise the alpha field before driving the workflow. Prerequisites: - OpenFOAM v2406+ sourced. - ``blockMesh`` and ``pyoftools`` on ``PATH`` (the latter is the pyOFTools CLI, installed with the package). - pybFoam and pyOFTools installed. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_iso_surface_area_thumb.png :alt: :doc:`/auto_how_to/example_iso_surface_area` .. raw:: html
Measure the interface area of a VOF free surface
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_extract_residuals_thumb.png :alt: :doc:`/auto_how_to/example_extract_residuals` .. raw:: html
Extract solver residuals to a CSV
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_volume_integral_thumb.png :alt: :doc:`/auto_how_to/example_volume_integral` .. raw:: html
Compute a volume integral
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_surface_integral_thumb.png :alt: :doc:`/auto_how_to/example_surface_integral` .. raw:: html
Compute a surface integral over a patch
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_sample_line_thumb.png :alt: :doc:`/auto_how_to/example_sample_line` .. raw:: html
Sample a field along a line
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_sample_plane_thumb.png :alt: :doc:`/auto_how_to/example_sample_plane` .. raw:: html
Sample a field on a cutting plane
.. raw:: html
.. only:: html .. image:: /auto_how_to/images/thumb/sphx_glr_example_custom_aggregator_thumb.png :alt: :doc:`/auto_how_to/example_custom_aggregator` .. raw:: html
Write a custom aggregator node
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /auto_how_to/example_iso_surface_area /auto_how_to/example_extract_residuals /auto_how_to/example_volume_integral /auto_how_to/example_surface_integral /auto_how_to/example_sample_line /auto_how_to/example_sample_plane /auto_how_to/example_custom_aggregator .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_