.. _python_API_geometry_report:

.. currentmodule:: flow360

**************************
Geometry Report
**************************

This script showcases the generation of a simulation report using the Flow360 Python API's reporting plugin.
It involves defining a simulation setup for an airplane geometry, performing a parameter sweep over the angle of attack,
and then utilizing various report items like tables, 2D charts, and 3D visualizations to compile the results into a PDF report.

.. literalinclude:: ../../../../../Flow360/examples/post_processing/report/geometry_to_report.py
    :language: python
    :linenos:

Notes
=====

- Multiple simulation cases are executed sequentially, and their completion is explicitly awaited using ``case.wait()`` before initiating the report generation process.
- The ``ReportTemplate`` class orchestrates the report structure, incorporating elements like ``Table``, ``Chart2D``, and ``Chart3D``.
- Data post-processing, such as averaging force coefficients (``DataItem`` with ``Average``), can be defined directly within the report configuration.
