|
[Sponsors] |
May 16, 2016, 05:48 |
compilation error in OpenFoam
|
#1 |
New Member
Krish
Join Date: Mar 2016
Posts: 7
Rep Power: 10 |
Hi there,
I am trying to implement an equation in the OpenFoam solver but ended up in compilation error. the error is as follows: createFields.H: In function ‘int main(int, char**)’: createFields.H:10:15: error: no matching function for call to ‘Foam::IOobject::IOobject(const char [19], const Foam::word&, Foam::IOobject::readOption, Foam::IOobject::writeOption)’ ) ^ createFields.H:10:15: note: candidates are: In file included from /opt/openfoam30/src/OpenFOAM/lnInclude/regIOobject.H:41:0, from /opt/openfoam30/src/OpenFOAM/lnInclude/objectRegistry.H:39, from /opt/openfoam30/src/OpenFOAM/lnInclude/Time.H:42, from /opt/openfoam30/src/finiteVolume/lnInclude/fvCFD.H:6, from ellipticBitterFoam.C:31: /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:230:9: note: Foam::IOobject::IOobject(const Foam::fileName&, const Foam:bjectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool) IOobject ^ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:230:9: note: no known conversion for argument 2 from ‘const Foam::word’ to ‘const Foam:bjectRegistry&’ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:217:9: note: Foam::IOobject::IOobject(const Foam::word&, const Foam::fileName&, const Foam::fileName&, const Foam:bjectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool) IOobject ^ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:217:9: note: no known conversion for argument 3 from ‘Foam::IOobject::readOption’ to ‘const Foam::fileName&’ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:206:9: note: Foam::IOobject::IOobject(const Foam::word&, const Foam::fileName&, const Foam:bjectRegistry&, Foam::IOobject::readOption, Foam::IOobject::writeOption, bool) IOobject ^ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:206:9: note: no known conversion for argument 3 from ‘Foam::IOobject::readOption’ to ‘const Foam:bjectRegistry&’ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:92:7: note: Foam::IOobject::IOobject(const Foam::IOobject&) class IOobject ^ /opt/openfoam30/src/OpenFOAM/lnInclude/IOobject.H:92:7: note: candidate expects 1 argument, 4 provided In file included from ellipticBitterFoam.C:43:0: createFields.H:24:19: error: ‘mesh’ was not declared in this scope mesh, ^ createFields.H:57:13: error: no match for ‘operator/’ (operand types are ‘Foam::dimensionedScalar {aka Foam::dimensioned<double>}’ and ‘Foam::tmp<Foam::GeometricField<Foam::SymmTensor<d ouble>, Foam::fvPatchField, Foam::volMesh> >’) I / (3.14 * sqr(fvc::grad(a1))) ^ createFields.H:57:13: note: candidates are: In file included from /opt/openfoam30/src/OpenFOAM/lnInclude/IOstream.H:50:0, from /opt/openfoam30/src/OpenFOAM/lnInclude/Ostream.H:39, from /opt/openfoam30/src/OpenFOAM/lnInclude/OSstream.H:39, from /opt/openfoam30/src/OpenFOAM/lnInclude/messageStream.H:216, from /opt/openfoam30/src/OpenFOAM/lnInclude/error.H:51, from /opt/openfoam30/src/OpenFOAM/lnInclude/UListI.H:26, from /opt/openfoam30/src/OpenFOAM/lnInclude/UList.H:394, from /opt/openfoam30/src/OpenFOAM/lnInclude/List.H:43, from /opt/openfoam30/src/OpenFOAM/lnInclude/labelList.H:48, from /opt/openfoam30/src/OpenFOAM/lnInclude/UPstream.H:42, from /opt/openfoam30/src/OpenFOAM/lnInclude/Pstream.H:42, from /opt/openfoam30/src/OpenFOAM/lnInclude/parRun.H:35, from /opt/openfoam30/src/finiteVolume/lnInclude/fvCFD.H:4, from ellipticBitterFoam.C:31: /opt/openfoam30/src/OpenFOAM/lnInclude/fileName.H:200:10: note: Foam::fileName Foam:perator/(const Foam::string&, const Foam::string&) fileName operator/(const string&, const string&); ^ /opt/openfoam30/src/OpenFOAM/lnInclude/fileName.H:200:10: note: no known conversion for argument 1 from ‘Foam::dimensionedScalar {aka Foam::dimensioned<double>}’ to ‘const Foam::string&’ In file included from /opt/openfoam30/src/OpenFOAM/lnInclude/VectorSpace.H:168:0, from /opt/openfoam30/src/OpenFOAM/lnInclude/Field.H:46, from /opt/openfoam30/src/OpenFOAM/lnInclude/scalarField.H:38, from /opt/openfoam30/src/OpenFOAM/lnInclude/dimensionSet.H:46, from /opt/openfoam30/src/OpenFOAM/lnInclude/dimensionedType.H:40, from /opt/openfoam30/src/OpenFOAM/lnInclude/dimensionedScalar.H:38, from /opt/openfoam30/src/OpenFOAM/lnInclude/TimeState.H:38, from /opt/openfoam30/src/OpenFOAM/lnInclude/Time.H:47, from /opt/openfoam30/src/finiteVolume/lnInclude/fvCFD.H:6, from ellipticBitterFoam.C:31: /opt/openfoam30/src/OpenFOAM/lnInclude/VectorSpaceI.H:591:13: note: template<class Form, class Cmpt, int nCmpt> Form Foam:perator/(const Foam::VectorSpace<Form, Cmpt, nCmpt>&, Foam::scalar) inline Form operator/ ^ /opt/openfoam30/src/OpenFOAM/lnInclude/VectorSpaceI.H:591:13: note: template argument deduction/substitution failed: In file included from ellipticBitterFoam.C:43:0: make: *** [Make/linux64GccDPInt32Opt/ellipticBitterFoam.o] Error 1 Attached are the source files for the same. Any help in this regard is much appreciated. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM compilation | MrAnderson | OpenFOAM | 3 | October 16, 2017 19:04 |
OpenFOAM error during compilation | fkika | OpenFOAM Running, Solving & CFD | 2 | January 11, 2016 01:29 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
OpenFoam 2.1.x /2.2.0 compilation failed on Ubuntu 12.04/10 64bit | keepfit | OpenFOAM Installation | 2 | March 26, 2013 10:43 |