.. _python_API_isosurface:

.. currentmodule:: flow360

**************************
Time Averaged Isosurfaces
**************************

This example demonstrates how to compute time averaged isosurfaces from an unsteady simulation using the Flow360 Python API.
It details the setup for the variables to compute the isosurfaces and also specifying desired output fields (like primitive variables, Mach number, Cp, Cf). The case is based on an isolated propeller example and the time averaged isosurfaces are taken for one rotor revolution.

.. literalinclude:: ../../../../../Flow360/examples/post_processing/field_data/time_averaged_isosurfaces.py
  :language: python
  :linenos:

Notes
=====

- The ``fl.Isosurface`` is used to define the isosurfaces with the field and value. The fields in ``output_fields`` will be computed on the averaged isosurface.
- The ``start_step`` is used to specify the step from which the average will be computed, in this case it corresponds to last rotor revolution.
- The results are downloaded in the file direcotry and can be opened in either paraview or tecplot.
