OpenFOAMv2206中dictionaryConstructorTable程序问题
-
各位大佬,我想在OpenFOAMv2206中植入我在OpenFOAM9中修改的模型。但是在编译过程中出现了错误:
我的代码在OF9中是可以运行的,但是在OpenFOAMv2206中就报错了。看其他的代码感觉OpenFOAM9和OpenFOAMv2206没有太大的区别,这个错误是为什么呢?
Foam::autoPtr<Foam::viscoelasticLogLaw> Foam::viscoelasticLogLaw::New ( const word& name, const volVectorField& U, const surfaceScalarField& phi, const dictionary& dict ) { const word typeName(dict.get<word>("type")); Info<< "Selecting viscoelasticLog model " << typeName << endl; dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTablePtr_->find(typeName); if (cstrIter == dictionaryConstructorTablePtr_->end()) { FatalErrorIn ( "viscoelasticLogLaw::New(const word& name, const volVectorField&, " "const surfaceScalarField&)" ) << "Unknown viscoelasticLogLaw type " << typeName << endl << endl << "Valid viscoelasticLogLaw types are :" << endl << dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); } return autoPtr<viscoelasticLogLaw>(cstrIter()(name, U, phi, dict)); }