# Run Modelica

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-dcbeadd20d96902a95e334eb393848849621d282%2FRun_Modelica.png?alt=media)

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-11f057a727cbb7c7b2d75999516cadd7e48aeced%2FRun_Modelica.png?alt=media) - [\[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.
