... | @@ -9,6 +9,10 @@ some examples of usage are given in the [tutorials](#examples) and in the [test- |
... | @@ -9,6 +9,10 @@ some examples of usage are given in the [tutorials](#examples) and in the [test- |
|
|
|
|
|
The code is currently hosted [here](https://gitlab.com/stilita/mbdyn-esm-adapter/).
|
|
The code is currently hosted [here](https://gitlab.com/stilita/mbdyn-esm-adapter/).
|
|
|
|
|
|
|
|
## adapter branch
|
|
|
|
|
|
|
|
The updated version of the adapter is located in the **develop** branch.
|
|
|
|
|
|
## Prerequisites and Dependencies
|
|
## Prerequisites and Dependencies
|
|
|
|
|
|
Apart from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org/), which should already have been installed, the code depends on:
|
|
Apart from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org/), which should already have been installed, the code depends on:
|
... | @@ -19,7 +23,7 @@ Apart from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org |
... | @@ -19,7 +23,7 @@ Apart from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org |
|
On Ubuntu they can be installed by:
|
|
On Ubuntu they can be installed by:
|
|
|
|
|
|
```shell
|
|
```shell
|
|
sudo apt install rapidjson-dev libvtk7-dev
|
|
sudo apt install rapidjson-dev libvtk9-dev
|
|
```
|
|
```
|
|
|
|
|
|
which should be available in the repositories.
|
|
which should be available in the repositories.
|
... | @@ -30,7 +34,7 @@ which should be available in the repositories. |
... | @@ -30,7 +34,7 @@ which should be available in the repositories. |
|
|
|
|
|
The code is independent from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org/), but uses the libraries `libmbc.so` and `libprecice.so`.
|
|
The code is independent from [MBDyn](https://www.mbdyn.org/) and [preCICE](https://www.precice.org/), but uses the libraries `libmbc.so` and `libprecice.so`.
|
|
|
|
|
|
The [Makefile](https://gitlab.com/stilita/mbdyn-esm-adapter/-/blob/master/adapter/Makefile) refers to the previously installed _VTK_ libraries (version 7.1) so, if another version has to be used, the include directory (variable `VTK_ROOT`) and the linked libraries must be changed accordingly. It also looks for _MBDyn_ in `usr/local/mbdyn` (variable `MBDYN_ROOT`).
|
|
The [Makefile](https://gitlab.com/stilita/mbdyn-esm-adapter/-/blob/master/adapter/Makefile) refers to the previously installed _VTK_ libraries (version 9.1) so, if another version has to be used, the include directory (variable `VTK_ROOT`) and the linked libraries must be changed accordingly. It also looks for _MBDyn_ in `usr/local/mbdyn` (variable `MBDYN_ROOT`).
|
|
|
|
|
|
If _preCICE_ (see the [quickstart](https://www.precice.org/quickstart.html#start-here)) is installed using the `deb` package or compiled and installed in the default directory, it should be automatically found.
|
|
If _preCICE_ (see the [quickstart](https://www.precice.org/quickstart.html#start-here)) is installed using the `deb` package or compiled and installed in the default directory, it should be automatically found.
|
|
|
|
|
... | @@ -41,7 +45,7 @@ Otherwise the output of `pkg-config --cflags libprecice` and `pkg-config --libs |
... | @@ -41,7 +45,7 @@ Otherwise the output of `pkg-config --cflags libprecice` and `pkg-config --libs |
|
To compile the _adapter_ simply give:
|
|
To compile the _adapter_ simply give:
|
|
|
|
|
|
```shell
|
|
```shell
|
|
make all
|
|
make release
|
|
```
|
|
```
|
|
|
|
|
|
The executable is named `mbdyn-esm-adapter` (the name can be changed with the Makefile variable `PROGRAM_NAME`). There is no install script.\
|
|
The executable is named `mbdyn-esm-adapter` (the name can be changed with the Makefile variable `PROGRAM_NAME`). There is no install script.\
|
... | | ... | |