Welcome to the preCICE Discourse, @nithinadidela!
There are several issues here, some of which are common among many other users.
CalculiX adapter problems
In the file
perpflap/Solid.log I see:
./Allrun: line 80: ccx_preCICE: command not found
This means that your system cannot find
ccx_preCICE. You can check this by running
ccx_preCICE from anywhere in a terminal. When you built the CalculiX adapter, you also noticed this note in the building instructions (after checking that everything built successfully):
After building successfully, the executable
ccx_preCICE is located in the
bin folder. You may want to add this to your
$PATH , or move it to a searchable
This you already tried, as I see in your
but it should actually be:
Notice that, after adding this to your
.bashrc, you need to open a new terminal (or just do
source ~/.bashrc). You can always check environment variables with e.g.
OpenFOAM adapter problems
In the file
flapPerp/Fluid.log, I see that OpenFOAM cannot find the adapter:
Starting time loop
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1251
dlopen error : libpreciceAdapterFunctionObject.so: cannot open shared object file: No such file or directory
Usually this happens if something went wrong while building the adapter (always look for any errors/warnings!).
With this hint, I look into your
ldd: /opt/openfoam/platforms/linux64GccDPInt32Opt/lib/include:/home/nithin/OpenFOAM/nithin-7/platforms/linux64GccDPInt32Opt/lib/libpreciceAdapterFunctionObject.so: No such file or directory
So, the linker could not find
libpreciceAdapterFunctionObject.so either. Was it even created?
Let’s look into your
wmake libso .
/opt/openfoam7/wmake/makefiles/general:164: *** target pattern contains no '%'. Stop.
This is a very strange error, which I had to search for and find this hint on StackOverflow:
This error is due to a presence of a
":" . Therefore it no longer supports windows paths.
Which leads me to the question: are you trying to use preCICE on Windows? Probably not, as you have a
.bashrc file. But are you maybe mixing up some Windows directory somewhere (e.g. running Windows Subsystem for Linux)?
Note: Although we have tried preCICE on Windows in the past, we don’t currently recommend this and it would be better to use a full Linux installation.
Additional: OpenFOAM version
In your log files I also see that you are using OpenFOAM 7, but I see that you are using the adapter from the
master Git branch. This does not support OpenFOAM 7 and you need to change to a different branch. Please read our notes on OpenFOAM versions and preferably install one of the versions supported by the
master branch of the adapter.
No preCICE build
I see that in your
~/.bashrc you have:
However, I don’t see any
build directory in
precice-1.6.1 (or any other CMake files). Have you installed preCICE in any other way?
Please also note that it is not necessary anymore to set a
PRECICE_ROOT and the link
build/last is not created by CMake (which we use as default since preCICE v1.4.0).
Please refer to the following wiki pages to build preCICE:
Since you are using Ubuntu, you can alternatively install a binary package.