# How to calculate aerodynamic losses?

Whiffle uses a physical, first-principle-based weather and wind farm simulation model, and therefore we cannot readily separate the impact of wake and blockage effects on the modelled cumulative production of the wind farm.

However, it is possible to determine total aerodynamic losses by running two simulations: a standard simulation, in which the turbines execute a thrust force on the flow, and an additional simulation using thrust-free turbines, in which the turbines impose zero drag on the wind flow. Thus, thrust-free turbines are “virtual turbines”, which produce power without affecting the wind flow.

Total aerodynamic losses are then calculated by simply subtracting the energy produced by the standard turbines from the energy produced by the thrustless turbines. This is represented by the following equation:

**Total aerodynamic losses = Power produced by thrust-free turbines - Power produced by turbines with thrust**

### Setting up simulations for total aerodynamic losses <a href="#howtocalculatetotalaerodynamiclosses-howtosplittotalaerodynamiclossesintointernalandexternallosses" id="howtocalculatetotalaerodynamiclosses-howtosplittotalaerodynamiclossesintointernalandexternallosses"></a>

{% embed url="<https://vimeo.com/1004050757/41478a40d8>" %}

Two simulations are needed, which can be executed in random order.  One simulation is with thrust and another thrust-free.

**First with thrust simulation:**

Set up a new simulation. In the Wind farm step, you can toggle the thrust for turbines on and off for each wind farm. Thrust is enabled by default for all turbines in new wind farms, so no additional action is needed.

<figure><img src="/files/LoJTp4MaS6RcLoWuR325" alt=""><figcaption></figcaption></figure>

**Second thrust-free simulation:**&#x20;

After submitting the first run, you can use it as a template for the second run by clicking the "Copy & Edit" button on the Simulation overview page.&#x20;

Ensure all turbines are set to thrust-free by turning off the thrust toggle for each wind farm.

<figure><img src="/files/PeZPQwH29hvW0vKfNfCS" alt=""><figcaption></figcaption></figure>

**Calculate aerodynamic losses**

We provide the Whiffle API Client to easily calculate aerodynamic losses. See our [example notebooks](https://docs.whiffle.cloud/getting-started/python-client#whiffle-client-example-notebooks) for more information.

{% content-ref url="/pages/TxuGmJ1SesEMWXjj013x" %}
[API client](/getting-started/python-client.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.whiffle.cloud/use-cases/how-to-calculate-aerodynamic-losses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
