CFDEM compiling error

Submitted by shinesli on
j-kerbl

Hi,

as stated when sourcing the Coupling

echo "************************************"
echo "WARNING from your CFDEM code!"
echo "WARNING: Coupling with your OpenFOAM(R) version is currently under development!"
echo "In doubt switch to another version."
echo "************************************"

So other solvers than cfdemPostProc should have compiled just fine.
If you want to use cfdemPostProc I suggest to switch to OF 3.x

Cheers,
Josef

Mon, 17 Oct 2016 - 10:36 Permalink
shinesli

In reply to by j-kerbl

Thank you so much. I'm flattered that you, as a project member of this project, replied on my problem. So I'm new user to cfdem. I want to try using cfdem to model cold spray process. So, if I continue using OF 4.x, there's no problem with other solvers. Is that right? I can try run some tutorials first, if there's unexpected results coming out, I will switch to OF 3.x. Thanks for helping!

Best,
Yudong

Mon, 17 Oct 2016 - 18:38 Permalink
chenxi

In reply to by shinesli

Hi, I think I kind of solved this problem by modify cfdemPostproc.C

I changed following code:

voidfraction.internalField() = particleCloud.voidFractionM().voidFractionInterp();

into:
voidfraction.ref() = particleCloud.voidFractionM().voidFractionInterp();

Sun, 25 Dec 2016 - 14:21 Permalink
j-kerbl

Hi Yudong,

yes you can run the tutorials, except the cfdemPostproc solver of course.
To make sure the other solvers compiled correctly, you should run the cfdemSolverPiso.

Cheers,
Josef

Tue, 18 Oct 2016 - 09:52 Permalink

I'm using OF-4.x to couple with CFDEM. While I compile CFDEM there's an error showing that the cfdemPostproc.C contains an error:

cfdemPostproc.C: In function ‘int main(int, char**)’:
cfdemPostproc.C:118:89: error: passing ‘const Internal {aka const Foam::DimensionedField}’ as ‘this’ argument of ‘void Foam::DimensionedField::operator=(const Foam::DimensionedField&) [with Type = double, GeoMesh = Foam::volMesh]’ discards qualifiers [-fpermissive]
make: *** [Make/linux64GccDPInt32Opt/cfdemPostproc.o] Error 1
waiting...

There are many other warnings for example:

removing all .dep files ...
find: `./Make/linux64GccDPInt32Opt': No such file or directory
Making dependency list for source file cfdemSolverIB.C
could not open file cfdemCloudIBSuperquadric.H for source file cfdemSolverIB.C due to No such file or directory
could not open file meshToMeshNew.H for source file cfdemSolverIB.C due to No such file or directory
could not open file fvIOoptionList.H for source file cfdemSolverIB.C due to No such file or directory
could not open file readPISOControls.H for source file cfdemSolverIB.C due to No such file or directory

There's a ‘./Make/linux64GccDPInt32Opt' directory in the computer. And by the way I'm using Ubuntu 12.04 LTS. Do you have any idea how to fix these problems? Thanks!