March 17, 2020, 21:15
|
Problem in compiling Euler Local Ddt scheme in existing solver?
|
#1
|
Member
Bidesh Sengupta
Join Date: Sep 2018
Location: Sngapore
Posts: 76
Rep Power: 7
|
Hi Foamers!
I am using dbns solvers. I am trying to implement Euler local time stepping (from FoamBazzar). But I received bunch of errors, which I can not understand.
The part of my error is given below:
Code:
from EulerLocalDdtScheme.H:50,
from EulerLocalDdtSchemes.C:30:
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H: In instantiation of ‘static Foam::tmp<Foam::fv::ddtScheme<Type> > Foam::fv::ddtScheme<Type>::addIstreamConstructorToTable<ddtSchemeType>::New(const Foam::fvMesh&, Foam::Istream&) [with ddtSchemeType = Foam::fv::EulerLocalDdtScheme<double>; Type = double]’:
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H:94:9: required from ‘Foam::fv::ddtScheme<Type>::addIstreamConstructorToTable<ddtSchemeType>::addIstreamConstructorToTable(const Foam::word&) [with ddtSchemeType = Foam::fv::EulerLocalDdtScheme<double>; Type = double]’
EulerLocalDdtSchemes.C:39:5: required from here
/home/bidesh/foam/foam-extend-4.0/src/foam/lnInclude/runTimeSelectionTables.H:73:66: error: invalid new-expression of abstract class type ‘Foam::fv::EulerLocalDdtScheme<double>’
return autoPtr< baseType >(new baseType##Type parList); \
^
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H:94:9: note: in expansion of macro ‘declareRunTimeSelectionTable’
declareRunTimeSelectionTable
^
In file included from EulerLocalDdtSchemes.C:30:0:
EulerLocalDdtScheme.H:67:7: note: because the following virtual functions are pure within ‘Foam::fv::EulerLocalDdtScheme<double>’:
class EulerLocalDdtScheme
^
In file included from EulerLocalDdtScheme.H:50:0,
from EulerLocalDdtSchemes.C:30:
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H:164:38: note: Foam::tmp<Foam::fvMatrix<Type> > Foam::fv::ddtScheme<Type>::fvmDdt(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = double]
virtual tmp<fvMatrix<Type> > fvmDdt
^
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H:169:38: note: Foam::tmp<Foam::fvMatrix<Type> > Foam::fv::ddtScheme<Type>::fvmDdt(const dimensionedScalar&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = double; Foam::dimensionedScalar = Foam::dimensioned<double>]
virtual tmp<fvMatrix<Type> > fvmDdt
^
/home/bidesh/foam/foam-extend-4.0/src/finiteVolume/lnInclude/ddtScheme.H:175:38: note: Foam::tmp<Foam::fvMatrix<Type> > Foam::fv::ddtScheme<Type>::fvmDdt(const volScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = double; Foam::volScalarField = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]
virtual tmp<fvMatrix<Type> > fvmDdt
|
|
|