|
[Sponsors] |
Error while compiling turbulence models stabRAS_v1712 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2021, 09:30 |
Error while compiling turbulence models stabRAS_v1712
|
#1 |
New Member
Clarisse Hayoun
Join Date: Mar 2021
Location: France
Posts: 5
Rep Power: 5 |
Dear all,
I am using OpenFOAM v2012 and I am trying to add the turbulence models from stabRAS_v1712 using the following instructions : https://github.com/BjarkeEltardLarsen/stabRAS_v1712. I get this error: Code:
ln: ./lnInclude Making dependency list for source file makeTurbModel.C g++ -std=c++14 -m64 -pthread -DOPENFOAM=2012 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude -I/usr/lib/openfoam/openfoam2012/src/TurbulenceModels/incompressible/lnInclude -I/usr/lib/openfoam/openfoam2012/src/transportModels/incompressible/lnInclude -I/usr/lib/openfoam/openfoam2012/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2012/src/meshTools/lnInclude -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2012/src/OSspecific/POSIX/lnInclude -fPIC -c makeTurbModel.C -o Make/linux64GccDPInt32Opt/makeTurbModel.o In file included from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/token.H:52, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/UILListIO.C:31, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/UILList.H:462, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/ILList.H:42, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/IDLList.H:37, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/entry.H:48, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/dictionary.H:92, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/baseIOdictionary.H:46, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/IOdictionary.H:44, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:44, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:40, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/incompressible/lnInclude/IncompressibleTurbulenceModel.H:42, from makeTurbModel.C:26: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H: In instantiation of ‘static Foam::autoPtr<Foam::RASModel<BasicTurbulenceModel> > Foam::RASModel<BasicTurbulenceModel>::adddictionaryConstructorToTable<RASModelType>::New(const alphaField&, const rhoField&, const volVectorField&, const surfaceScalarField&, const surfaceScalarField&, const transportModel&, const Foam::word&) [with RASModelType = Foam::RASModels::kEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >; BasicTurbulenceModel = Foam::IncompressibleTurbulenceModel<Foam::transportModel>; Foam::RASModel<BasicTurbulenceModel>::alphaField = Foam::geometricOneField; Foam::RASModel<BasicTurbulenceModel>::rhoField = Foam::geometricOneField; Foam::volVectorField = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>; Foam::surfaceScalarField = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>; Foam::RASModel<BasicTurbulenceModel>::transportModel = Foam::transportModel]’: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H:108:9: required from ‘Foam::RASModel<BasicTurbulenceModel>::adddictionaryConstructorToTable<RASModelType>::adddictionaryConstructorToTable(const Foam::word&) [with RASModelType = Foam::RASModels::kEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >; BasicTurbulenceModel = Foam::IncompressibleTurbulenceModel<Foam::transportModel>]’ makeTurbModel.C:75:1: required from here /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:75:38: error: invalid new-expression of abstract class type ‘Foam::RASModels::kEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >’ 75 | return autoPtr<baseType>(new baseType##Type parList); \ /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H:108:9: note: in expansion of macro ‘declareRunTimeSelectionTable’ 108 | declareRunTimeSelectionTable | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from makeTurbModel.C:74: lnInclude/kEpsilonStab.H:113:7: note: because the following virtual functions are pure within ‘Foam::RASModels::kEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >’: 113 | class kEpsilonStab | ^~~~~~~~~~~~ In file included from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:40, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/incompressible/lnInclude/IncompressibleTurbulenceModel.H:42, from makeTurbModel.C:26: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:208:37: note: ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::turbulenceModel::omega() const’ 208 | virtual tmp<volScalarField> omega() const = 0; | ^~~~~ In file included from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/token.H:52, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/UILListIO.C:31, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/UILList.H:462, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/ILList.H:42, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/IDLList.H:37, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/entry.H:48, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/dictionary.H:92, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/baseIOdictionary.H:46, from /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/IOdictionary.H:44, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:44, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:40, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/incompressible/lnInclude/IncompressibleTurbulenceModel.H:42, from makeTurbModel.C:26: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H: In instantiation of ‘static Foam::autoPtr<Foam::RASModel<BasicTurbulenceModel> > Foam::RASModel<BasicTurbulenceModel>::adddictionaryConstructorToTable<RASModelType>::New(const alphaField&, const rhoField&, const volVectorField&, const surfaceScalarField&, const surfaceScalarField&, const transportModel&, const Foam::word&) [with RASModelType = Foam::RASModels::RNGkEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >; BasicTurbulenceModel = Foam::IncompressibleTurbulenceModel<Foam::transportModel>; Foam::RASModel<BasicTurbulenceModel>::alphaField = Foam::geometricOneField; Foam::RASModel<BasicTurbulenceModel>::rhoField = Foam::geometricOneField; Foam::volVectorField = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>; Foam::surfaceScalarField = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>; Foam::RASModel<BasicTurbulenceModel>::transportModel = Foam::transportModel]’: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H:108:9: required from ‘Foam::RASModel<BasicTurbulenceModel>::adddictionaryConstructorToTable<RASModelType>::adddictionaryConstructorToTable(const Foam::word&) [with RASModelType = Foam::RASModels::RNGkEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >; BasicTurbulenceModel = Foam::IncompressibleTurbulenceModel<Foam::transportModel>]’ makeTurbModel.C:78:1: required from here /usr/lib/openfoam/openfoam2012/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:75:38: error: invalid new-expression of abstract class type ‘Foam::RASModels::RNGkEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >’ 75 | return autoPtr<baseType>(new baseType##Type parList); \ /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/RASModel.H:108:9: note: in expansion of macro ‘declareRunTimeSelectionTable’ 108 | declareRunTimeSelectionTable | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from makeTurbModel.C:77: lnInclude/RNGkEpsilonStab.H:103:7: note: because the following virtual functions are pure within ‘Foam::RASModels::RNGkEpsilonStab<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >’: 103 | class RNGkEpsilonStab | ^~~~~~~~~~~~~~~ In file included from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/TurbulenceModel.H:40, from /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/incompressible/lnInclude/IncompressibleTurbulenceModel.H:42, from makeTurbModel.C:26: /usr/lib/openfoam/openfoam2012/src/TurbulenceModels/turbulenceModels/lnInclude/turbulenceModel.H:208:37: note: ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::turbulenceModel::omega() const’ 208 | virtual tmp<volScalarField> omega() const = 0; | Do you have any idea how to fix this? Best regards, |
|
February 8, 2023, 08:39 |
|
#2 |
New Member
Ivan
Join Date: Dec 2021
Posts: 6
Rep Power: 4 |
Hi, have you manage to compile these turbulence models in v2012?
kind regards, Ivan S. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding turbulence models to (reacting)TwoPhaseEulerFoam | lavdwall | OpenFOAM Running, Solving & CFD | 0 | February 3, 2017 03:04 |
y+ range for turbulence models | babri | FLUENT | 1 | August 30, 2016 17:39 |
in k-epsilon wall function approach high Re turbulence models: question of velocity | romant | OpenFOAM Programming & Development | 6 | May 26, 2016 09:14 |
Advice about turbulence models? | mqsim | OpenFOAM Running, Solving & CFD | 6 | April 27, 2016 07:50 |
Compiling turbulence models | nico765 | OpenFOAM Running, Solving & CFD | 6 | January 31, 2007 13:30 |