- Home > Modelica

## Buildings.Rooms.Examples.FFD.UsersGuide

### Information

#### Introduction

For an introduction to the coupled simulation and for detailed information on Buildings.Rooms.CFD, please refer to Buildings.Rooms.UsersGuide.CFD. For a step by step guide on performing the coupled simulation, please refer to Buildings.Rooms.Examples.FFD.Tutorial.

#### Files for the Coupled Simulation

The source code of the FFD program is located at `Buildings/Resources/src/FastFluidDynamics`. The `Buildings` library contains precompiled versions of this source code in the subdirectories of `Buildings/Resources/Library`.

To run the coupled simulation with FFD, the following files are needed and provided in the `Buildings` library:

- dynamic link files located at `Buildings/Resources/Library`:
  - Windows: `ffd.dll`
  - Linux: `libffd.so`
- FFD input files for simulation parameters, called `*.ffd` and located at `Buildings/Resources/Data/Rooms/FFD/`
- Mesh files `*.cfd` and obstacles files `*.dat` generated by the program `SCI_FFD` and located at `Buildings/Resources/Data/Rooms/FFD/`. Note that the `SCI_FFD` program is maintained at https://github.com/FastFluidDynamics/Mesh.

#### Compiling library files

The FFD program can be compiled into a dlls using Microsoft Visual Studio Express in Windows and gcc in Linux. Compiled files are distributed with the `Buildings` library. If you want to compile the files yourself, proceed as follows:

- On Windows, method 1:
  1. Go to `Buildings/Resources/src/FastFluidDynamics/`
  2. Run `compile.bat` as administrator
- On Windows, method 2:
  1. Open cmd.
  2. Change to the directory `Buildings/Resources/src/FastFluidDynamics/`
  3. type `compile.bat`
- On Linux:
  1. Open a console.
  2. Change to the directory `Buildings/Resources/src/FastFluidDynamics/`
  3. Type `make all`

please note to make use you have the right of executing the `compile.bat` when using method 2 on Windows. To check the availability right click the file and choose `Properties`. Go to `Security` tab and edit if you don't have the access to execute the file.

Extends from Modelica.Icons.Information (Icon for general information packages).