|
[Sponsors] |
October 18, 2018, 07:34 |
error during compilation of new solver
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Hello Friends,
Stokes.C: In member function ‘virtual Foam::tmp<Foam::GeometricField<Foam::SymmTensor<do uble>, Foam::fvPatchField, Foam::volMesh> > Foam::laminarModels::Stokes<BasicTurbulenceModel>: :R() const’: Stokes.C:222:5: error: expected primary-expression before ‘)’ token Stokes.C:222:5: error: expected ‘;’ before ‘)’ token In file included from laminarModel.H:201:0, from turbulentFluidThermoModel.H:49, from rhoCentralFoamreac.C:35: laminarModel.C: In constructor ‘Foam::laminarModel<BasicTurbulenceModel>::laminar Model(const Foam::word&, const alphaField&, const rhoField&, const volVectorField&, const surfaceScalarField&, const surfaceScalarField&, const transportModel&, const Foam::word&)’: laminarModel.C:70:29: error: ‘class Foam::dictionary’ has no member named ‘optionalSubDict’ laminarModel.C: In static member function ‘static Foam::autoPtr<Foam::laminarModel<BasicTurbulenceMo del> > Foam::laminarModel<BasicTurbulenceModel>::New(cons t alphaField&, const rhoField&, const volVectorField&, const surfaceScalarField&, const surfaceScalarField&, const transportModel&, const Foam::word&)’: laminarModel.C:117:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat] laminarModel.C:117:14: error: ‘cstrIter’ does not name a type laminarModel.C:119:14: error: ‘cstrIter’ was not declared in this scope laminarModel.C:121:13: error: ‘FatalErrorInFunction’ was not declared in this scope laminarModel.C:131:22: error: there are no arguments to ‘cstrIter’ that depend on a template parameter, so a declaration of ‘cstrIter’ must be available [-fpermissive] laminarModel.C:131:22: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) laminarModel.C: In member function ‘virtual bool Foam::laminarModel<BasicTurbulenceModel>::read()’: laminarModel.C:172:37: error: ‘class Foam::dictionary’ has no member named ‘optionalSubDict’ laminarModel.C: In member function ‘virtual Foam::tmp<Foam::GeometricField<Foam::SymmTensor<do uble>, Foam::fvPatchField, Foam::volMesh> > Foam::laminarModel<BasicTurbulenceModel>::R() const’: laminarModel.C:317:50: error: ‘Zero’ was not declared in this scope In file included from rhoCentralFoamreac.C:37:0: directionInterpolate.H: At global scope: directionInterpolate.H:6:52: error: ‘>>’ should be ‘> >’ within a nested template argument list directionInterpolate.H: In function ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::interpolate(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const surfaceScalarField&, const Foam::word&)’: directionInterpolate.H:13:56: error: ‘>>’ should be ‘> >’ within a nested template argument list In file included from rhoCentralFoamreac.C:46:0: postProcess.H: In function ‘int main(int, char**)’: postProcess.H:66:5: error: ‘postProcessOptionName’ is not a member of ‘Foam::argList’ postProcess.H:70:5: error: ‘postProcess’ is not a member of ‘Foam::argList’ In file included from rhoCentralFoamreac.C:46:0: postProcess.H:77:5: error: ‘postProcess’ is not a member of ‘Foam::functionObject’ In file included from rhoCentralFoamreac.C:46:0: postProcess.H:83:9: error: ‘list’ is not a member of ‘Foam::functionObjectList’ In file included from rhoCentralFoamreac.C:46:0: postProcess.H:104:9: error: ‘New’ is not a member of ‘Foam::functionObjectList’ postProcess.H:116:28: error: ‘New’ is not a member of ‘Foam::functionObjectList’ In file included from createFields.H:1:0, from postProcess.H:129, from rhoCentralFoamreac.C:46: createRDeltaT.H:1:16: error: ‘Foam::fv::localEulerDdt’ has not been declared createRDeltaT.H:15:17: error: ‘localEulerDdt’ is not a member of ‘Foam::fv’ createRDeltaT.H:23:13: error: ‘extrapolatedCalculatedFvPatchScalarField’ was not declared in this scope In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:46: createFields.H:120:45: error: no matching function for call to ‘flux(Foam::volVectorField&)’ Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const Foam::word&)/fvcFlux.C:44:1: note: template argument deduction/substitution failed: In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:46: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:62:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const Foam::word&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:62:1: note: template argument deduction/substitution failed: In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:132:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:132:1: note: template argument deduction/substitution failed: In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:46: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:149:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:149:1: note: template argument deduction/substitution failed: In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:46: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:166:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:166:1: note: template argument deduction/substitution failed: In file included from postProcess.H:129:0, from rhoCentralFoamreac.C:46: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from rhoCentralFoamreac.C:46:0: postProcess.H:148:13: error: ‘profiling’ has not been declared In file included from createFields.H:1:0, from rhoCentralFoamreac.C:51: createRDeltaT.H:1:16: error: ‘Foam::fv::localEulerDdt’ has not been declared createRDeltaT.H:15:17: error: ‘localEulerDdt’ is not a member of ‘Foam::fv’ createRDeltaT.H:23:13: error: ‘extrapolatedCalculatedFvPatchScalarField’ was not declared in this scope In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: error: no matching function for call to ‘flux(Foam::volVectorField&)’ createFields.H:120:45: note: candidates are: In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:44:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const Foam::word&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:44:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:62:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const Foam::word&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:62:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:80:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&, const Foam::word&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:80:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:98:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&, const Foam::word&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:98:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:117:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:117:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.H:123:0, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:48, from /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8, from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:149:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const surfaceScalarField&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:149:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const surfaceScalarField& {aka const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&}’ from rhoCentralFoamreac.C:33: /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:166:1: note: template<class Type> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fvc::flux(const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&, const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&) /home/harsha/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcFlux.C:166:1: note: template argument deduction/substitution failed: In file included from rhoCentralFoamreac.C:51:0: createFields.H:120:45: note: cannot convert ‘rhoU’ (type ‘Foam::volVectorField {aka Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>}’) to type ‘const Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> >&’ In file included from rhoCentralFoamreac.C:52:0: createFieldRefs.H:7:12: error: ‘const volScalarField’ has no member named ‘primitiveField’ rhoCentralFoamreac.C:55:17: error: ‘class Foam::ThermalDiffusivity<Foam::CompressibleTurbule nceModel<Foam::fluidThermo> >’ has no member named ‘validate’ In file included from rhoCentralFoamreac.C:59:0: readFluxScheme.H:10:9: error: ‘FatalErrorInFunction’ was not declared in this scope In file included from rhoCentralFoamreac.C:153:0: centralCourantNo.H:34:53: error: ‘class Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>’ has no member named ‘primitiveField’ Last edited by harsha_kulkarni; October 18, 2018 at 09:07. |
|
October 19, 2018, 10:05 |
|
#2 |
Member
Vince
Join Date: Mar 2017
Posts: 45
Rep Power: 9 |
Hi,
Could you please format your code and give us some context, what you've tried, etc. Thanks, Vincent |
|
November 7, 2019, 01:47 |
|
#3 |
Senior Member
Brett
Join Date: May 2013
Posts: 216
Rep Power: 14 |
Any feedback on how this was resolved?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation Modeling Using Discrete Ordinates Method and Parallel Solver | malicemethods | FLUENT | 3 | May 25, 2018 15:25 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 10:52 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |