.. _python_API_automotive_report:

.. currentmodule:: flow360

**************************
Automotive Report
**************************

This script demonstrates the automated generation of a comprehensive aerodynamic report for the DrivAer automotive model using the Flow360 Python API and its reporting plugin.
It sets up and runs a series of steady-state simulations at varying yaw angles (beta = 0/5/10 degrees).
Post-simulation, it utilizes the ``flow360.plugins.report`` module to compile results, including statistical data, force coefficients, and various flow visualizations (e.g., surface pressure coefficient, wall shear stress, flow field slices, isosurfaces) into a structured PDF document.

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

Notes
=====

*   Demonstrates the use of the report module, including ``ReportTemplate`` and various report items (e.g., ``Chart3D``, ``Table``, ``DataItem``), to automatically generate a detailed PDF report from simulation data.
*   Illustrates a workflow for conducting a parametric study by programmatically submitting multiple simulation cases with varying operating conditions (yaw angle ``beta``) using the ``Project`` interface.
*   Shows the configuration of diverse output types (``SurfaceOutput``, ``SliceOutput``, ``IsosurfaceOutput``) to capture data for detailed flow analysis and visualization within the report.
