gu1 |
November 21, 2018 06:08 |
I still get the error below if you can help me...:
Quote:
$ kEpsilonTurbulentFoam
kEpsilonTurbulentFoam: symbol lookup error: /home/cae/OpenFOAM/cae-5.0/platforms/linux64GccDPInt32Opt/lib/libturbkEpsilonModel.so: undefined symbol: _ZN4Foam15RASModel8typeName
|
I tried everything I read in the forums but it did not work out.
EDIT1: I discovered some things about the error...
... in the kEpsilon.C:
Quote:
namespace Foam
{
defineTypeNameAndDebug(kEpsilon, 0);
// addToRunTimeSelectionTable(RASModel, kEpsilon, dictionary); //error!
}
|
If I compile with this commented line, it compiles right, BUT... when I try to compile the solver that fetches that library (a solver based on the PISO algorithm) it gives the following error:
Quote:
/home/cae/OpenFOAM/cae-5.0/platforms/linux64GccDPInt32Opt/lib/libkEpsilonModel.so: undefined reference to para `Foam::RASModel::New(Foam::word const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::dictionary const&)'
/home/cae/OpenFOAM/cae-5.0/platforms/linux64GccDPInt32Opt/lib/libkEpsilonModel.so: undefined reference to para `Foam::RASModel::correct()'
collect2: error: ld returned 1 exit status
/opt/openfoam5/wmake/makefiles/general:140: recipe for target '/home/cae/OpenFOAM/cae-5.0/platforms/linux64GccDPInt32Opt/bin/kEpsilonTurbulentFoam' failed
make: *** [/home/cae/OpenFOAM/cae-5.0/platforms/linux64GccDPInt32Opt/bin/kEpsilonTurbulentFoam] Error 1
|
If I compile with the uncommented line, it does not compile (kEpsilon.C) ... it throws error.
Quote:
$ wmake
Making dependency list for source file kEpsilon.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c RASModel/kEpsilon/kEpsilon.C -o Make/linux64GccDPInt32Opt/RASModel/kEpsilon/kEpsilon.o
In file included from /opt/openfoam5/src/OpenFOAM/lnInclude/token.H:49:0,
from /opt/openfoam5/src/OpenFOAM/lnInclude/Istream.H:47,
from /opt/openfoam5/src/OpenFOAM/lnInclude/ISstream.H:39,
from /opt/openfoam5/src/OpenFOAM/lnInclude/IOstreams.H:38,
from /opt/openfoam5/src/OpenFOAM/lnInclude/VectorSpace.C:27,
from /opt/openfoam5/src/OpenFOAM/lnInclude/VectorSpace.H:233,
from /opt/openfoam5/src/OpenFOAM/lnInclude/Vector.H:44,
from /opt/openfoam5/src/OpenFOAM/lnInclude/vector.H:39,
from /opt/openfoam5/src/OpenFOAM/lnInclude/fieldTypes.H:35,
from /opt/openfoam5/src/finiteVolume/lnInclude/volFieldsFwd.H:37,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvmDdt.H:38,
from /opt/openfoam5/src/finiteVolume/lnInclude/fvm.H:43,
from lnInclude/RASModel.H:44,
from RASModel/kEpsilon/kEpsilon.H:42,
from RASModel/kEpsilon/kEpsilon.C:26:
lnInclude/RASModel.H: In instantiation of ‘static Foam::autoPtr<Foam::RASModel> Foam::RASModel::adddictionaryConstructorToTable<RA SModelType>::New(const Foam::word&, const volVectorField&, const surfaceScalarField&, const Foam::dictionary&) [with RASModelType = Foam::kEpsilon; Foam::volVectorField = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>; Foam::surfaceScalarField = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>]’:
lnInclude/RASModel.H:115:9: required from ‘Foam::RASModel::adddictionaryConstructorToTable<R ASModelType>::adddictionaryConstructorToTable(cons t Foam::word&) [with RASModelType = Foam::kEpsilon]’
RASModel/kEpsilon/kEpsilon.C:37:5: required from here
/opt/openfoam5/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:72:64: error: invalid new-expression of abstract class type ‘Foam::kEpsilon’
return autoPtr<baseType>(new baseType##Type parList); \
^
lnInclude/RASModel.H:115:9: note: in expansion of macro ‘declareRunTimeSelectionTable’
declareRunTimeSelectionTable
^
In file included from RASModel/kEpsilon/kEpsilon.C:26:0:
RASModel/kEpsilon/kEpsilon.H:53:7: note: because the following virtual functions are pure within ‘Foam::kEpsilon’:
class kEpsilon
^
In file included from RASModel/kEpsilon/kEpsilon.H:42:0,
from RASModel/kEpsilon/kEpsilon.C:26:
lnInclude/RASModel.H:227:37: note: virtual Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > Foam::RASModel::divDevRhoReff(Foam::volVectorField &) const
virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const = 0;
^
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/RASModel/kEpsilon/kEpsilon.o' failed
make: *** [Make/linux64GccDPInt32Opt/RASModel/kEpsilon/kEpsilon.o] Error 1
|
|