# Run Modelica

![](/files/aVBBqCzsahfeEOmaOJd5)

![](/files/RvhYX3ltZzhcUdYjmfxm) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Run%20Modelica.py)

Run a Modelica District Energy System (DES) through an annual simulation using OpenModelica inside a Docker image (via Docker Desktop).

Docker Dekstop can be downloaded at the following link: <https://www.docker.com/products/docker-desktop/>

### Inputs

* **modelica \[Required]**

A folder where all of the Modelica files of the District Energy System (DES) are written. These Modelica files can be created using the "DF Write Modelica DES" component.

* **run \[Required]**

Script variable Python

### Outputs

* **report**

Reports, errors, warnings, etc.

* **results**

A folder containing the results of the Modelica simulation.


---

# 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.ladybug.tools/dragonfly-primer/components/5_districtthermal/run_modelica.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.
