CFDEM compiling error

Submitted by Joel Martis on Wed, 01/20/2016 - 16:06

Hello.

I've been trying to compile CFDEM coupling, but I get the following errors:

"
rm: cannot remove ‘/home/joel/Documents/CFDEM/CFDEMcoupling-PUBLIC-3.0.1/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemPostproc’: No such file or directory

/home/joel/Documents/CFDEM/CFDEMcoupling-PUBLIC-3.0.1/src/lagrangian/cfdemParticle/etc/functions.sh: line 148: rmdepall: command not found

cfdemPostproc.C:41:33: fatal error: turbulenceModel.H: No such file or directory
#include "turbulenceModel.H"
"

Any help is much appreciated.

Thank you.

alice's picture

alice | Wed, 01/20/2016 - 17:13

Hello Joel,
did check your environment variables?
Since your CFDEM-folder lives within $HOME/Documents instead of $HOME you have to account for it in your .bashrc...
Cheers,
Alice

Joel Martis | Thu, 01/21/2016 - 12:48

Hello Alice,

I think my environment variables are fine. I've listed the relevant ones below:
#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export WM_PROJECT_VERSION=3.0.1
export CFDEM_PROJECT_DIR=~/Documents/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_SRC_DIR=$CFDEM_PROJECT_DIR/src
export CFDEM_SOLVER_DIR=$CFDEM_PROJECT_DIR/applications/solvers
export CFDEM_DOC_DIR=$CFDEM_PROJECT_DIR/doc
export CFDEM_UT_DIR=$CFDEM_PROJECT_DIR/applications/utilities
export CFDEM_TUT_DIR=$CFDEM_PROJECT_DIR/tutorials
export CFDEM_PROJECT_USER_DIR=~/Documents/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=~/Documents/liggghts/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic
export CFDEM_LPP_DIR=~/Documents/liggghts/mylpp/src
export CFDEM_PIZZA_DIR=~/Documents/pizza/src
. $CFDEM_bashrc
#================================================#

Joel Martis
Bachelor of Technology in Mechanical Engineering (Senior Year)
Indian Institute of Technology Madras

Stephan | Thu, 01/21/2016 - 11:29

Hi,

I think you did not change the file mentioned in
http://www.cfdem.com/forums/compiling-cfdemcoupling-different-versions
I saw the same error message because the dir-path of the turbulence model in OF 3.0.x are different from OF 2.x.

But I have another question too: did anybody try to run cfdemTestTUT with OF 3.0.x? I experience some problems using the turbulence models. First one has to rename the entry of the simulationType in turbulenceProperties from e.g. "RASModel" to "RAS" but further more RAS does not support "laminar" as an option but instead laminar is an option to simulationType itself (one can chose "RAS", "LES", "laminar"). I chose RAS (one has to specify a real turbulence model then of course) or laminar but anyway at the I got error messages like this:
[0]
[0]
[0] --> FOAM FATAL ERROR:
[0]
request for turbulenceModel RASProperties from objectRegistry region0 failed
available objects of type turbulenceModel are
1(turbulenceProperties)
[0]
[0] From function objectRegistry::lookupObject(const word&) const
[0] in file /home/stephan/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.
[0]
FOAM parallel run aborting
[0]
[1]
[1]
[1] --> FOAM FATAL ERROR:
[1]
request for turbulenceModel RASProperties from objectRegistry region0 failed
available objects of type turbulenceModel are
1(turbulenceProperties)
[1]
[1] From function objectRegistry::lookupObject(const word&) const
[1] in file /home/stephan/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.
[1]
FOAM parallel run aborting
[1]
[0] #0 Foam::error::printStack(Foam::Ostream&)[1] #0 Foam::error::printStack(Foam::Ostream&) at ??:?
at ??:?
[0] #1 Foam::error::abort()[1] #1 Foam::error::abort() at ??:?
at ??:?
[1] #2 Foam::turbulenceModel const& Foam::objectRegistry::lookupObject(Foam::word const&) const[0] #2 Foam::turbulenceModel const& Foam::objectRegistry::lookupObject(Foam::word const&) const at ??:?
at ??:?
[1] #3 Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&)[0] #3 Foam::cfdemCloud::cfdemCloud(Foam::fvMesh const&) at ??:?
[1] #4 at ??:?
[0] #4 ?? at ??:?
[1] #5 __libc_start_main at ??:?
[0] #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #6 in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #6 ?? at ??:?
So there is still something wrong with turbulence model?!
Any help would be appreciated!

Best Regards
Stephan

aalborz | Fri, 03/25/2016 - 23:44

Hi Stephan,

I'm having a hard time compiling one of the solvers in CFDEM. (I'm using OF 3.0.x)

The error is:
"turbulenceModel.H: No such file or directory"

I noticed that you have mentioned, the dir-path of the turbulence model in OF 3.0.x are different from OF 2.x.

I'm confused about chaging this directory and really don't know where and what to change.
-- I've already applied the change in the following link:
http://www.cfdem.com/forums/compiling-cfdemcoupling-different-versions

I would really appreciate it if you could provide me with any information regarding this issue.

Thank you very much,

aalborz

hunger's picture

hunger | Thu, 01/21/2016 - 13:50

Hi Stephan,

you also have to change the turbulence model in the 'couplingProperties' file in the CFD/constant directory.

comment or delete: turbulenceModelType RASProperties;//LESProperties;//
add: turbulenceModelType turbulenceProperties;

Best regards
Harald

Stephan | Thu, 01/21/2016 - 14:12

Hi Harald,

thanks for your help! I was actually playing with this entry but didn't get it right!
And it worked (of course)!

Thanks a lot!
Best regards
Stephan

aalborz | Sat, 03/26/2016 - 18:54

Hi Stephan,

I'm having a hard time compiling one of the solvers in CFDEM. (I'm using OF 3.0.x)

The error is:
"turbulenceModel.H: No such file or directory"

I noticed that you have mentioned, the dir-path of the turbulence model in OF 3.0.x are different from OF 2.x.

I'm confused about chaging this directory and really don't know where and what to change.
-- I've already applied the change in the following link:
http://www.cfdem.com/forums/compiling-cfdemcoupling-different-versions

I would really appreciate it if you could provide me with any information regarding this issue.

Thank you very much,

aalborz