# Test installation of OpenFOAM-preCICE adapter

**URL:** <https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters\
**Created:** [December 20, 2021, 4:19pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840 "2021-12-20T16:19:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandini\_Ramanathan](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/nandini_ramanathan/32/859_2.png) [@Nandini\_Ramanathan](https://precice.discourse.group/u/Nandini_Ramanathan)\
**Post date:** [December 20, 2021, 4:19pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/1 "2021-12-20T16:19:05Z")

</div>

I have installed precice-2.3.0 with openfoam. Now how can i test and make sure the openfoam works with precice?

Thanks  
Nandini

---

<div class="post-metadata">

**Author:** ![uekerman](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/uekerman/32/2199_2.png) [@uekerman](https://precice.discourse.group/u/uekerman)\
**Post date:** [December 20, 2021, 5:27pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/2 "2021-12-20T17:27:54Z")

</div>

You could run the quickstart tutorial.

> **[Quickstart | preCICE - The Coupling Library](https://precice.org/quickstart.html)**
>
> Install preCICE on Linux (e.g. via a Debian package) and couple an OpenFOAM fluid solver (using the OpenFOAM-preCICE adapter) with an example rigid body solv...

---

<div class="post-metadata">

**Author:** ![Nandini\_Ramanathan](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/nandini_ramanathan/32/859_2.png) [@Nandini\_Ramanathan](https://precice.discourse.group/u/Nandini_Ramanathan)\
**Post date:** [December 20, 2021, 7:26pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/3 "2021-12-20T19:26:59Z")

</div>

This is the order i installed.

1)installed precice and dependencies.  
2) Downloaded the openfoam tar ball and followed these steps  
wget [https://github.com/precice/openfoam-adapter/releases/download/v1.0.0/openfoam-adapter\_v1.0.0\_OpenFOAM7\_experimental.tar.gz](https://github.com/precice/openfoam-adapter/releases/download/v1.0.0/openfoam-adapter_v1.0.0_OpenFOAM7_experimental.tar.gz)  
tar -xf openfoam-adapter\_v1.0.0\_OpenFOAM7\_experimental.tar.gz  
./Allwmake -j  
After running all make this is the Allwmake.log file. I am not sure if there is an issue with install?  
cat Allwmake.log  
Building the OpenFOAM-preCICE adapter…

Thanks  
Nandini

---

<div class="post-metadata">

**Author:** ![uekerman](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/uekerman/32/2199_2.png) [@uekerman](https://precice.discourse.group/u/uekerman)\
**Post date:** [December 20, 2021, 7:42pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/4 "2021-12-20T19:42:16Z")

</div>

Which OS do you use? Could you please upload the complete output of `./Allwmake` ?

---

<div class="post-metadata">

**Author:** ![Nandini\_Ramanathan](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/nandini_ramanathan/32/859_2.png) [@Nandini\_Ramanathan](https://precice.discourse.group/u/Nandini_Ramanathan)\
**Post date:** [December 20, 2021, 7:55pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/5 "2021-12-20T19:55:17Z")

</div>

I am using Centos. My question is should i need openfoam installed before installed openfoam addapter? And also there is nothing in the logs except

cat Allwmake.log  
Building the OpenFOAM-preCICE adapter…

This is the output of Allwmake.log.

Nandini

---

<div class="post-metadata">

**Author:** ![uekerman](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/uekerman/32/2199_2.png) [@uekerman](https://precice.discourse.group/u/uekerman)\
**Post date:** [December 20, 2021, 8:00pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/6 "2021-12-20T20:00:05Z")

</div>

> [@Nandini\_Ramanathan](#):
>
> My question is should i need openfoam installed before installed openfoam addapter?

Yes.

Is there a `wmake.log`?

Seems like sth is wrong with your OpenFOAM installation. Normally, you should get sth like

```bash
Building the OpenFOAM adapter for preCICE...

Current OpenFOAM environment:
  WM_PROJECT = OpenFOAM
  WM_PROJECT_VERSION = v2012

The adapter will be built into:
  ADAPTER_TARGET_DIR = /home/uekermbn/OpenFOAM/uekermbn-v2012/platforms/linux64GccDPInt32Opt/lib

The following building options will be used:
  ADAPTER_PREP_FLAGS = 
  ADAPTER_WMAKE_OPTIONS = 

Dependencies (preCICE) will be located using the following environment variables:
  ADAPTER_PRECICE_ROOT = /home/uekermbn/Repos/precice
      preCICE dependencies: not specified (ok if preCICE is built as a shared library)
  ADAPTER_PKG_CONFIG_CFLAGS = -I/usr/local/include
  ADAPTER_PKG_CONFIG_LIBS = -L/usr/local/lib -lprecice
  ADAPTER_GLOBAL_CPLUS_INC_PATHS = -I/home/uekerman/Software/yaml-cpp/yaml-cpp-yaml-cpp-0.7.0/include -I/home/uekermbn/Repos/precice/src 
  ADAPTER_GLOBAL_LD_LIBRARY_PATHS = -L/usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/lib/sys-openmpi -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/home/uekermbn/OpenFOAM/uekermbn-v2012/platforms/linux64GccDPInt32Opt/lib -L/usr/lib/openfoam/openfoam2012/site/2012/platforms/linux64GccDPInt32Opt/lib -L/usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/lib -L/usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/lib/dummy -L/home/uekermbn/Repos/precice/build/last/ 
  ADAPTER_GLOBAL_LIBRARY_PATHS = -L/home/uekerman/Software/yaml-cpp/yaml-cpp-yaml-cpp-0.7.0/build -L/home/uekermbn/Repos/precice/build/last 

Building with WMake (see the wmake.log log file)...

=== OK: Building completed successfully! ===

```

Can you run normal OpenFOAM simulations?

---

<div class="post-metadata">

**Author:** ![Nandini\_Ramanathan](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/nandini_ramanathan/32/859_2.png) [@Nandini\_Ramanathan](https://precice.discourse.group/u/Nandini_Ramanathan)\
**Post date:** [December 20, 2021, 8:07pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/7 "2021-12-20T20:07:00Z")

</div>

ok i dont have openfoam installed. So let me first install that and install openfoam-adapter and let you know if any issue.

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [February 1, 2022, 10:34pm UTC](https://precice.discourse.group/t/test-installation-of-openfoam-precice-adapter/840/8 "2022-02-01T22:34:45Z")

</div>

Split this topic on February 1, 2022, 10:34pm UTC

8 posts were split to a new topic: [Installing OpenFOAM adapter for OpenFOAM v1912 on a cluster](https://precice.discourse.group/t/installing-openfoam-adapter-for-openfoam-v1912-on-a-cluster/896)
