June 27, 2017, 16:13
|
Compiling Error: Is the operator the problem
|
#2
|
New Member
Deutschland
Join Date: Mar 2016
Posts: 12
Rep Power: 10
|
Dear Foamer,
As mentioned I'm try to add some passive scalar equation to chtMultiregionFoam.
Can someone give me a hint, what the problem is, when compiling? There seems to be a problem with the operator *. But what? Do I have to include any further files? Sorry but I cannot get more out of that error message! Thanks!
PHP Code:
p { margin-bottom: 0.25cm; line-height: 120%; } In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8, from vapourFoam.C:36: /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2221:33: note: candidate: template<class Type> Foam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >&, const Foam::tmp<Foam::fvMatrix<Type> >&) Foam::tmp<Foam::fvMatrix<Type>> Foam::operator* ^ /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2221:33: note: template argument deduction/substitution failed: In file included from ./solid/solveSolid.H:31:0, from vapourFoam.C:110: ./solid/calcparPresSolid.H:4:42: note: cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >&’ parPresSolid = relativeHumiditySolid*pSatSolid; //JEAL ^ In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8, from vapourFoam.C:36: /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2233:33: note: candidate: template<class Type> Foam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::dimensioned<double>&, const Foam::fvMatrix<Type>&) Foam::tmp<Foam::fvMatrix<Type>> Foam::operator* ^ /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2233:33: note: template argument deduction/substitution failed: In file included from ./solid/solveSolid.H:31:0, from vapourFoam.C:110: ./solid/calcparPresSolid.H:4:42: note: cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’) to type ‘const Foam::dimensioned<double>&’ parPresSolid = relativeHumiditySolid*pSatSolid; //JEAL ^ In file included from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.H:1058:0, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.C:29, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/ddtScheme.H:342, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.C:28, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvcDdt.H:205, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvc.H:44, from /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvCFD.H:8, from vapourFoam.C:36: /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2245:33: note: candidate: template<class Type> Foam::tmp<Foam::fvMatrix<Type> > Foam::operator*(const Foam::dimensioned<double>&, const Foam::tmp<Foam::fvMatrix<Type> >&) Foam::tmp<Foam::fvMatrix<Type>> Foam::operator* ^ /home/my_comp/Schreibtisch/OpenFOAM/OpenFOAM-dev-debug/src/finiteVolume/lnInclude/fvMatrix.C:2245:33: note: template argument deduction/substitution failed: In file included from ./solid/solveSolid.H:31:0, from vapourFoam.C:110: ./solid/calcparPresSolid.H:4:42: note: cannot convert ‘relativeHumiditySolid’ (type ‘Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’) to type ‘const Foam::dimensioned<double>&’ parPresSolid = relativeHumiditySolid*pSatSolid;
|
|
|