Skip to content

Building

David Schneider edited this page May 15, 2019 · 23 revisions

To build the adapter, follow the steps below:

  1. Download and compile deal.II. A detailed installation instruction is given in the installation section of the deal.II webpage. If you are familiar with CMake and want to stay in sync with the recent development version, you can clone directly the git repository and follow the steps in the README there.

  2. Download and compile preCICE. A detailed installation instruction is given in the building section of the preCICE wiki. On deabian-like systems, you could directly download and install debian packages.

  3. Build the dealii-adapter: First, clone this git repository git clone https://github.com/precice/dealii-adapter.git. Building is similar to the example programs, run cmake -DDEAL_II_DIR=/path/to/deal.II . for configuration. If you have set the variable DEAL_II_DIR globally, you could skip it in the command above. Afterwards, run make to build the adapter. By default, the adapter is built in debug mode. If you want to build a release version use make release.

  4. Run the dealii-adapter: Copy the executable and parameter file (parameters.prm) in your target directory, e.g. the main simulation directory, where other participants (Fluid in this case) are located as well, and run the executable by ./coupled_elasto_dynamics. Examples can be found in the tutorial cases with OpenFOAM

Clone this wiki locally