Test installation of OpenFOAM-preCICE adapter

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

Thanks
Nandini

You could run the quickstart tutorial.

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
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

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

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

Yes.

Is there a wmake.log?

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

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?

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

Hello
I have openFOAM v1912 and am trying to install the openfoam-adapter_v1.0.0_OpenFOAM4_5_v1806 because I did not find one for v1912 but I get the exact same Allwmake.log
I am able to run cases in openFOAM so not sure why I am still getting this error.
Does this have something to do with the compiler or the first section of the Allwmake file that may require change?

Would appreciate your help

Hi @mishal49 ,

that’s indeed not the correct adapter version for your OpenFOAM version. You can find all adapter versions here Releases · precice/openfoam-adapter · GitHub. The version on the bottom is the one you are looking for. Note that the dash -includes also all versions in between the mentioned one, meaning that the last adapter version is for all OpenFOAM versions starting from v1812 up to 2106

Hello @DavidSCN
I did the folllowing:

Downloaded openfoam-adapter_v1.0.0_OpenFOAMv1812-v2106.tar.gz

tar -xzf openfoam-adapter_v1.0.0_OpenFOAMv1812-v2106.tar.gz

cd openfoam-adapter_v1.0.0_OpenFOAMv1812-v2012/

v1912 //to activate my OpenFOAM

./Allwmake

it still gives me this:

Building the OpenFOAM-preCICE adapter…

@mishal49 may I ask you to provide your wmake.log file and your ldd.log file, which are generated when executing the Allwmake script?

@DavidSCN, It does not generate any of those files. Just an Allwmake.log

Could you upload the Allwmake.log?

Allwmake.log (82 Bytes)