How to start best

Submitted by MartinD on Wed, 02/26/2014 - 17:43

Hi everybody,

as I am still a rookie using CFDEM perhaps your could give me some advices basing on your experience.

Recently I downloaded and installed the LIGGGHTS and CFDEMcoupling packages as described in the installation manual. Everything seemed to work fine.

Using "cfdemSysTest" tells me that

valid:NO critical:no - $CFDEM_PIZZA_DIR = /home/dorn/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src does not exist

the specification of paths of Pizza is not correct. --> What to do in that case?

Looking in the compilation log files the log_(...)coupling_cfdemParticle, there is written:

// log_compileCFDEMcoupling_cfdemParticle-2014-02-26-15:10 //
/home/dorn/CFDEM/CFDEMcoupling-PUBLIC-2.2.2/src/lagrangian/cfdemParticle
removing all .dep files ...
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file cfdemCloud/cfdemCloud.C
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C
Making dependency list for source file derived/cfdemCloudIB/cfdemCloudIB.C
could not open file RASModel.H for source file derived/cfdemCloudIB/cfdemCloudIB.C
Making dependency list for source file subModels/forceModel/forceModel/forceModel.C
could not open file RASModel.H for source file subModels/forceModel/forceModel/forceModel.C
Making dependency list for source file subModels/forceModel/forceModel/newForceModel.C
... and so on...

is there a package or file missing? Any idea what is the problem here?

Obviously executing the tutorials does not work either....

I am using Ubuntu 12.04 and have OpenFOAM 2.2.2 installed.
I have read that OF 2.2.2 does not work with the current CFDEMcoupling. Unfortunately the documentation sites providing more information are under construction since last week.

I will be pleased if you could help me doing a working installation with the right program versions.

Regards,

Martin

Mahyar | Wed, 02/26/2014 - 21:47

Hi Martin
I think the problem is the OpenFOAM version that you are using. You need to use the versions that end with .x for example OpenFOAM 2.2.x, actually you need to use the Repository Release version of OpenFOAM to be able to install the CFDEM.

Regards
Mahyar

alice's picture

alice | Thu, 02/27/2014 - 08:25

Good morning Martin!
Well the thing with PIZZA is no big deal, the deal is meant for post processing. Perhaps you even have already installed LPP, which is an extension of PIZZA...
The messages you postet are not critical, these are precompiler statements and nothing to worry about. The error is most certainly caused by something else that happens later during the installation process. (Look for the keyword "error" in you log file, other statements might as well be warnings...). The remark about the version-conflict is correct. From my personal experience I can tell that CFDEMcoupling for nw works either with 2.1.x or all 2.2.x releases before August 19th 2013 (use git to obtain an old release).
Cheers,
Alice

Soumen Maji's picture

Soumen Maji | Sat, 05/17/2014 - 13:23

Hi Alice. But I've installed OpenFoam-2.3.0. and Ubuntu-13.10. Are those version fine with CFDEM Coupling? And , tell me please how I execute the tutorials of CFDEM Coupling (means commands or syntax)

SOUMEN

MartinD | Thu, 02/27/2014 - 14:46

Hi!

thank you both very much for your comments.
Today I have reinstalled the whole programs. I have downloaded the OF 2.2.x via git rep and istalled it. Everything worked fine until CFDEM compilation.

I get errors in the compile log similar to this:
##################################################################
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H: In member function ‘const T& Foam::autoPtr::operator()() const [with T = Foam::clockModel]’:
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:163:23: instantiated from ‘Foam::autoPtr::operator const T&() const [with T = Foam::clockModel]’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloudI.H:192:12: instantiated from here
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:150:9: error: invalid use of incomplete type ‘struct Foam::clockModel’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloud.H:69:7: error: forward declaration of ‘struct Foam::clockModel’
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H: In member function ‘const T& Foam::autoPtr::operator()() const [with T = Foam::smoothingModel]’:
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:163:23: instantiated from ‘Foam::autoPtr::operator const T&() const [with T = Foam::smoothingModel]’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloudI.H:197:12: instantiated from here
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:150:9: error: invalid use of incomplete type ‘struct Foam::smoothingModel’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloud.H:70:7: error: forward declaration of ‘struct Foam::smoothingModel’
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H: In member function ‘const T& Foam::autoPtr::operator()() const [with T = Foam::meshMotionModel]’:
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:163:23: instantiated from ‘Foam::autoPtr::operator const T&() const [with T = Foam::meshMotionModel]’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloudI.H:202:12: instantiated from here
/home/ciel/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude/autoPtrI.H:150:9: error: invalid use of incomplete type ‘struct Foam::meshMotionModel’
/home/ciel/CFDEM/CFDEMcoupling-PUBLIC-2.2.x/src/lagrangian/cfdemParticle/lnInclude/cfdemCloud.H:72:7: error: forward declaration of ‘struct Foam::meshMotionModel’
make: *** [Make/linuxGccDPOpt/cfdemPostproc.o] Error 1
########################################################################
(copied from another user in this forum, because my log is in german... ;-) )

In this forum topic he solved it by installing OF 2.2.1 explizitly.

Do you have any idea what i could do now? How is it possible to get it work with OF 2.2.x?
Or do i have to install 2.2.1 as well? Are there some new experiences with that kind of problem?

Thanks a lot for your help! =)

Cheers,
martin

alice's picture

alice | Fri, 02/28/2014 - 07:49

Hello Martin,
did you really use a version that was oushed BEFORE August 19th 2013? (Can be done with git...) This is really important, 'cause something was changes afterwards that doesn't fit with the coupling right now.
Cheers,
Alice

MartinD | Tue, 03/04/2014 - 11:33

Hi Alice,

I am not sure if i downloaded a OF version before Aug. 19th 2013.
What I have done is the following, as shown in the OF installation manual.

Download via :
git clone git://github.com/OpenFOAM/OpenFOAM-2.2.x.git

The command "git pull" tells that the downloaded version is the actual one. So I get the apprehension that i have downloaded a "OF2.2.2"-like version.
Actually I don´t know how to tell git to download an older version.
Could you give me a hint?

Thanks for all your help.

Cheers,
Martin

antonm5012 | Thu, 05/15/2014 - 14:55

Hi
I had OF 2.3 installed first.
I did not know how to downgrade so I just removed it and downloaded and installed 2.1.0.
This is the first step.
Then you may use gitk utility instead of git (it actually has some kind of GUI !).
gitk allows you to see the release dates of all the packages installed and see various version branches etc.
Once you locate some update which was done after August 2013 you need to check it out.
For this copy the first 8 or more symbols of its ID (looks like md5 code - something like a08fd8c83...) and use git checkout command such as:
git checkout a08fd8c83.. (or whatever id of this update is)

it worked for me, at least partially
(cfdemSolverIB still does not work, but at least the rest works).