library_cfd_coupling.h

Submitted by schmeeck on Mon, 04/11/2011 - 20:48

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

cgoniva's picture

cgoniva | Tue, 04/12/2011 - 09:54

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

schmeeck | Mon, 04/25/2011 - 05:08

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.

ckloss's picture

ckloss | Tue, 04/12/2011 - 20:14

can you (manually) locate the file in the LIGGGHTS /src directory? if not, do you have version 1.2.8 installed?
Christoph

WeiJiSeniorDesign | Tue, 04/12/2011 - 21:51

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

schmeeck | Wed, 04/13/2011 - 05:57

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.

tshan | Wed, 04/13/2011 - 08:39

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