.. _python_API_2d_30p30n:

.. currentmodule:: flow360

*******************************
2D 30p30n
*******************************

This example demonstrates the configuration and execution of a steady-state simulation for aerodynamic analysis of the 2D 30p30n multi-element airfoil using the Flow360 Python API. The process encompasses geometry import, automated mesh generation with multiple refinement strategies, specification of simulation parameters including the Spalart-Allmaras turbulence model, and definition of desired outputs before case submission via the ``Project`` interface.

.. literalinclude:: ../../../../../../Flow360/examples/advanced_simulations/aerodynamics/airfoils/2D_30p30n.py
  :language: python
  :linenos:

Notes
=====

- The ``AutomatedFarfield`` is configured with ``method="quasi-3d"`` to establish appropriate farfield conditions for a 2D simulation within a 3D mesh framework, utilizing slip walls on symmetry planes.
- Multiple mesh refinement types (``UniformRefinement`` via cylindrical zones, ``SurfaceRefinement``, ``SurfaceEdgeRefinement``) are employed to control mesh resolution near the airfoil components and critical geometric features like leading and trailing edges.
- Turbulent flow is modeled using the Spalart-Allmaras model, configured via ``fl.SpalartAllmaras``.
