.. _python_API_bet_disk:

.. currentmodule:: flow360

**************************
BET Disk
**************************

This script demonstrates the setup and execution of a simulation involving a Blade Element Theory (BET) disk using the Flow360 Python API.
It covers loading geometry, defining mesh refinements including axisymmetric refinement for the rotor region,
specifying operating conditions using ``AerospaceCondition.from_mach()``, creating a BET disk from an external xrotor file and additional input parameters,
as well as submitting the case through the ``Project`` interface.

.. literalinclude:: ../../../../../Flow360/examples/advanced_simulations/rotorcraft/BET_Disk.py
  :language: python
  :linenos:

Notes
====

- BET disk parameters such as sectional polars and geometric definitions are loaded from an external xrotor file while others are user defined.
- ``AxisymmetricRefinement`` is utilized to control mesh resolution specifically within the cylindrical region encompassing the BET disk.
