Compiling Error even after adding Additional Libs

Submitted by Joel Martis on Fri, 02/05/2016 - 07:17

Hello!

I added the additional libs file as recommended by Chris Goniva. However I still get the following errors while compiling:
*******************************************************************************
.
.
.
could not open file stdio.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file string.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file limits.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
.
.
.
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file subModels/forceModel/forceModel/forceModel.C due to 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
.
.
.
could not open file cfdemCloudRotation.H for source file cfdemSolverPiso.C due to No such file or directory
could not open file readPISOControls.H for source file cfdemSolverPiso.C due to No such file or directory
.
.
.
*************************************************************************************************

Kindly help me!

Regards,
Joel

j-kerbl's picture

j-kerbl | Tue, 03/08/2016 - 14:14

Hi Joel,

the ompi/mpi are more warnings than errors. You do not need to worry about them, although there are a lot of them.

So far I do not see an actual error, where the compilation is stopped. Does it compile or do you get an error-message actually stating error?

Cheers
Josef

Joel Martis | Tue, 03/08/2016 - 15:41

I compiled CFDEM coupling with OpenFOAM 2.4 ( I was using OpenFOAM 3.0 initially).

It works fine with OpenFOAM 2.4

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

heliana60 | Fri, 03/11/2016 - 11:31

I wanted to install CFDEM with OF3.0 since apparently it is compatible, but when I compile CFDEMParticle i get this error :
In file included from cfdemCloud/cfdemCloud.C:33:0:
cfdemCloud/cfdemCloud.H:410:30: error: ‘incompressible’ does not name a type
inline const incompressible::turbulenceModel& turbulence() const;
^
In file included from cfdemCloud/cfdemCloud.H:461:0,
from cfdemCloud/cfdemCloud.C:33:
cfdemCloud/cfdemCloudI.H:321:22: error: ‘incompressible’ does not name a type
inline const incompressible::turbulenceModel& cfdemCloud::turbulence() const
^
cfdemCloud/cfdemCloud.C: In constructor ‘Foam::cfdemCloud::cfdemCloud(const Foam::fvMesh&)’:
cfdemCloud/cfdemCloud.C:125:5: error: class ‘Foam::cfdemCloud’ does not have any field named ‘turbulence_’
turbulence_
^
cfdemCloud/cfdemCloud.C:133:35: error: ‘incompressible’ was not declared in this scope
mesh.lookupObject
^
cfdemCloud/cfdemCloud.C:133:22: error: parse error in template argument list
mesh.lookupObject
^
cfdemCloud/cfdemCloud.C:140:9: error: no matching function for call to ‘Foam::fvMesh::lookupObject(const Foam::word&) const’
)
^
In file included from /home/hcardenas/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude/Time.H:42:0,
from /home/hcardenas/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude/fvCFD.H:6,
from cfdemCloud/cfdemCloud.H:49,
from cfdemCloud/cfdemCloud.C:33:
/home/hcardenas/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude/objectRegistry.H:181:25: note: candidate: template const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const
const Type& lookupObject(const word& name) const;
^
/home/hcardenas/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude/objectRegistry.H:181:25: note: template argument deduction/substitution failed:
cfdemCloud/cfdemCloud.C:140:9: error: template argument 1 is invalid
)
^
cfdemCloud/cfdemCloud.C:197:21: warning: use of old-style cast [-Wold-style-cast]
(char *)"none",
^
cfdemCloud/cfdemCloud.C:198:21: warning: use of old-style cast [-Wold-style-cast]
(char *)"none"
^
cfdemCloud/cfdemCloud.C: In member function ‘Foam::tmp > Foam::cfdemCloud::voidfractionNuEff(Foam::volScalarField&) const’:
cfdemCloud/cfdemCloud.C:826:54: error: ‘turbulence_’ was not declared in this scope
new volScalarField("viscousTerm", ( turbulence_.nut()
^
cfdemCloud/cfdemCloud.C:845:67: error: ‘turbulence_’ was not declared in this scope
new volScalarField("viscousTerm", voidfraction*( turbulence_.nut()

In the end it does not compile :(

I am a bit desperate, is it for sure working fine with OpenFOAM 2.4,? should I downgrade to that OF? or it also needs some magic :) ?
Have a nice day.,
heliana

Joel Martis | Sat, 03/12/2016 - 06:41

I think if you're desperate, then it makes sense to go for OpenFOAM 2.4, since no editing of any file is required. You can directly compile CFDEM coupling without any problem.

Regards,
Joel

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

j-kerbl's picture

j-kerbl | Thu, 03/17/2016 - 15:21

Hi Heliana,

yes, all standard settings are for 2.4.x .
Have you changed the version definition in
https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/src/lag...
and have you set the CFDEM_ADD_LIBS_DIR and CFDEM_ADD_LIBS_NAME as well?

And be warned: OF 3.0.x has changed the input structure of some turbulence settings. This might easily lead to problems there since cases might not be compatible.

Cheers
Josef

heliana60 | Thu, 04/14/2016 - 18:37

Sorry for the so late answer! yeah, it finally compiled after fixing the additional libraries!

Thanks!