library_cfd_coupling.h

Submitted by schmeeck on
cgoniva

Hi Mark!

You get this error when compiling the src/lagrangian/cfdemParticle ?

did you
#- add the line
# . YOUR_PATH_TO_THE_SRC/cfdemParticle/etc/bashrc
# to the end of your $HOME/.bashrc file

to set the environment variables?

did you
#- adopt the settings in the YOUR_PATH_TO_THE_SRC/cfdemParticle/etc/bashrc
# according to your system

did you
#- open a new terminal to get fresh environment variables sourced (or type bash)

Cheers,
Christoph

Tue, 12 Apr 2011 - 09:54 Permalink
schmeeck

In reply to by anonymous_stub (not verified)

CFDEM 2 is running well now. Thanks. The key step was to compile OpenFoam rather than running the Ubuntu distribution. I had resisted that step because of the numerous OpenFoam solvers I had written.

Mon, 25 Apr 2011 - 05:08 Permalink
WeiJiSeniorDesign

Hi Mark,

I had the same issue. It turns out that you need to use this:

git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghtsdev myliggghts

instead of the stable repository listed in the CFDEM installation instructions.

-Chris

Tue, 12 Apr 2011 - 21:51 Permalink
schmeeck

You were right. The LIGGGHTS version was the issue. I had version 1.1.10 from the git command. The development distribution 1.2.8 had the correct files. When compiling cfdemParticle I ran into another error related to the twoWayMPI.C file. The error said that MPI_UNDEFINED had not been declared. I cmmented out the following line of code to get past this problem:
else liggghts = MPI_UNDEFINED;
I then encountered the same issue as Tong, which was resolved by adding the -fPIC switches and compiling liggghts as a library. So I did get cfdemParticle compiled (minus the MPI_UNDEFINED line of code).
However, I then ran into the same issues that TONG had when trying to compile the solver. It was not clear to me how he resolved that issue. I tried to play with the Make/options file but was unsuccessful. I would give you the syntax of these errors, but I was trying to install that at work earlier today.
Anyway, I did install and get the first version of cfdem to run last night at home. I modified the settling test to get some interesting results. This is really wonderful software. Thanks a lot.
I study sediment transport in rivers. I have been getting good LES results with OpenFoam. I am hoping to use your code to pass the LES output near the boundary to drive the forces of particles in the liggghts code-- a pure one-way coupling to begin with.

Wed, 13 Apr 2011 - 05:57 Permalink
tshan

In reply to by anonymous_stub (not verified)

Hi Mark!

On the solver compiling issue, Chris has given me very good advice which indeed solved the problem. You may need to try to compile the liggghts in the same environment with CFDEM compilation to make sure the same gcc, openmpi version, etc. are used to compile both the liggghts and CFDEM.

Thanks!

Best,
Tong

Wed, 13 Apr 2011 - 08:39 Permalink

Hello,
I am trying to wmake the cfdemParticle src. However the twoWayMPI.H file tries to include library_cfd_coupling.h. According to the comments, it should be in the LIGGGHTS src, but I cannot find it. I successfully installed LIGGGHTS yesterday with the latest distribution. It's a wonderful program.
Thanks for your help.
Mark