@李东岳 可以了,李老师,非常感谢!早上输密码的时候用数字键盘没把数字打上
您之前提到可以把这个求解器编译到最新版本的OpenFOAM框架内,关于这个流程您有什么建议吗?或者有什么资料可以参考学习的吗?感觉难度应该不小
AWAN
帖子
-
OpenFOAM气相燃爆求解器编译报错 -
OpenFOAM气相燃爆求解器编译报错@李东岳 老师,确实是不同版本的,感觉应该就是这个问题导致的报错。台式机用的是4.8.5版本的,而虚拟机默认使用的是9.3.0版本。看openfoamwiki.net上说OpenFOAM-2.1.1适配的是4.8版本,记得当时在台式机上特意装过。检查发现虚拟机上也已经装有4.8版本了,但通过sudo update-alternatives --config gcc切换gcc默认版本时需要输入sudo密码,不知道您当时设的是什么?试了一下不是1,也不是dyfluid
-
OpenFOAM气相燃爆求解器编译报错@李东岳 不好意思老师,这两天去忙了点其他工作。ddtFoam适用的OpenFOAM版本是这个链接下载的源代码包中包含的用户指南指明的。如下图所示。
这几天想了一下,编译出错会不会与OpenFOAM-2.1.1的安装方式有关?因为我自用台式机上的2.1.1是从官网下载并根据上面的教程联网一步步安装的,在此基础上以同样方式编译ddtFoam没有报错,而在虚拟机上就一直报错 -
OpenFOAM气相燃爆求解器编译报错@李东岳 麻烦老师了,但按照您的方法修改重新编译后还是有问题,而且新修改的这条语句也报错了 ,截取了最前面的两处报错:
dyfluid@dyfluid-virtual-machine:~/OpenFOAM/dyfluid-2.1.1/ddtfoam$ ./Allwmake + wmake libso basic '/home/dyfluid/OpenFOAM/dyfluid-2.1.1/platforms/linux64GccDPOpt/lib/libmybasicThermophysicalModels.so' is up to date. + wmake libso reactionThermo Making dependency list for source file chemistryReaders/chemkinReader/chemkinReader.C SOURCE=chemistryReaders/chemkinReader/chemkinReader.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/chemkinReader.o In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBase.H:266, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLList.H:36, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedListI.H:27, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedList.H:363, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.C:29, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:259, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashTable.C:30, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:184, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:452, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:35, from lnInclude/chemistryReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::iterator Foam::SLListBase::iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:218:21: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 218 | iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:220:12: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 220 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::iterator Foam::SLListBase::begin()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:233:16: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 233 | return endIter_; | ^~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::const_iterator Foam::SLListBase::const_iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:318:27: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 318 | const_iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:320:12: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 320 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::const_iterator Foam::SLListBase::cbegin() const’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:333:16: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 333 | return endConstIter_; | ^~~~~~~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBase.H:280, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IDLList.H:36, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/entry.H:45, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dictionary.H:53, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTableIO.C:30, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTable.C:142, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTable.H:156, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:41, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::iterator Foam::DLListBase::iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:246:21: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 246 | iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:248:12: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 248 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::iterator Foam::DLListBase::begin()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:261:16: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 261 | return endIter_; | ^~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::const_iterator Foam::DLListBase::const_iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:345:27: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 345 | const_iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:347:12: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 347 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::const_iterator Foam::DLListBase::cbegin() const’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:360:16: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 360 | return endConstIter_; | ^~~~~~~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.H:360, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/scalarField.H:38, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:42, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C: In member function ‘void Foam::Field<Type>::operator=(const Foam::VectorSpace<Form, Cmpt, nCmpt>&)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C:680:42: warning: typedef ‘VSType’ locally defined but not used [-Wunused-local-typedefs] 680 | typedef VectorSpace<Form,Cmpt,nCmpt> VSType; | ^~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:354, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ReactionI.H: In member function ‘Foam::word& Foam::Reaction<ReactionThermo>::name()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ReactionI.H:38:12: ********************error********************: binding reference of type ‘Foam::word&’ to ‘const Foam::word’ discards qualifiers 38 | return name_; | ^~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H: At global scope: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:107:25: warning: ‘Foam::perfectGas Foam::operator+(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 107 | inline Foam::perfectGas Foam::operator+ | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:112:34: note: only here as a ‘friend’ 112 | inline friend perfectGas operator+ | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:121:25: warning: ‘Foam::perfectGas Foam::operator-(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 121 | inline Foam::perfectGas Foam::operator- | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:118:34: note: only here as a ‘friend’ 118 | inline friend perfectGas operator- | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:135:25: warning: ‘Foam::perfectGas Foam::operator*(Foam::scalar, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 135 | inline Foam::perfectGas Foam::operator* | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:124:34: note: only here as a ‘friend’ 124 | inline friend perfectGas operator* | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:145:25: warning: ‘Foam::perfectGas Foam::operator==(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 145 | inline Foam::perfectGas Foam::operator== | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:130:34: note: only here as a ‘friend’ 130 | inline friend perfectGas operator== | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRate.H:123, from chemistryReaders/chemkinReader/chemkinReader.C:32: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRateI.H:100:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::ArrheniusReactionRate&)’ has not been declared within ‘Foam’ 100 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:32: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRate.H:109:32: note: only here as a ‘friend’ 109 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRate.H:122, from chemistryReaders/chemkinReader/chemkinReader.C:33: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRateI.H:95:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::thirdBodyArrheniusReactionRate&)’ has not been declared within ‘Foam’ 95 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:33: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRate.H:108:32: note: only here as a ‘friend’ 108 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRate.H:125, from chemistryReaders/chemkinReader/chemkinReader.C:39: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRateI.H:127:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::LandauTellerReactionRate&)’ has not been declared within ‘Foam’ 127 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:39: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRate.H:111:32: note: only here as a ‘friend’ 111 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRate.H:126, from chemistryReaders/chemkinReader/chemkinReader.C:40: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRateI.H:116:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::JanevReactionRate&)’ has not been declared within ‘Foam’ 116 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:40: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRate.H:112:32: note: only here as a ‘friend’ 112 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRate.H:126, from chemistryReaders/chemkinReader/chemkinReader.C:41: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRateI.H:109:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::powerSeriesReactionRate&)’ has not been declared within ‘Foam’ 109 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:41: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRate.H:112:32: note: only here as a ‘friend’ 112 | inline friend Ostream& operator<< | ^~~~~~~~ chemistryReaders/chemkinReader/chemkinReader.C: In member function ‘Foam::scalar Foam::chemkinReader::molecularWeight(const Foam::List<Foam::chemkinReader::specieElement>&) const’: chemistryReaders/chemkinReader/chemkinReader.C:123:43: **************error**************: binding reference of type ‘Foam::word&’ to ‘const Foam::word’ discards qualifiers 123 | word& elementName = specieComposition[i].elementName; In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:359, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.C: In instantiation of ‘Foam::Reaction<ReactionThermo>::Reaction(const speciesTable&, const Foam::List<Foam::Reaction<ReactionThermo>::specieCoeffs>&, const Foam::List<Foam::Reaction<ReactionThermo>::specieCoeffs>&, const Foam::HashPtrTable<ReactionThermo>&) [with ReactionThermo = Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >; Foam::speciesTable = Foam::hashedWordList]’: chemistryReaders/chemkinReader/chemkinReader.C:508:25: required from here /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.C:133:13: warning: implicitly-declared ‘Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >::sutherlandTransport(const Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >&)’ is deprecated [-Wdeprecated-copy] 133 | rhs_(rhs) | ^
-
OpenFOAM气相燃爆求解器编译报错@李东岳 谢谢李老师!全部log有点长,超篇幅了,包含最开始错误的前半段log如下:
dyfluid@dyfluid-virtual-machine:~/OpenFOAM/dyfluid-2.1.1/ddtfoam$ ./Allwmake + wmake libso basic '/home/dyfluid/OpenFOAM/dyfluid-2.1.1/platforms/linux64GccDPOpt/lib/libmybasicThermophysicalModels.so' is up to date. + wmake libso reactionThermo SOURCE=chemistryReaders/chemkinReader/chemkinReader.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I../basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/chemkinReader.o In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBase.H:266, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLList.H:36, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedListI.H:27, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedList.H:363, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.C:29, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:259, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashTable.C:30, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:184, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:452, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:35, from lnInclude/chemistryReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::iterator Foam::SLListBase::iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:218:21: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 218 | iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:220:12: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 220 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::iterator Foam::SLListBase::begin()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:233:16: warning: implicitly-declared ‘constexpr Foam::SLListBase::iterator::iterator(const Foam::SLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 233 | return endIter_; | ^~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:174:13: note: because ‘Foam::SLListBase::iterator’ has user-provided ‘void Foam::SLListBase::iterator::operator=(const Foam::SLListBase::iterator&)’ 174 | inline void Foam::SLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::const_iterator Foam::SLListBase::const_iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:318:27: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 318 | const_iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:320:12: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 320 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: In member function ‘Foam::SLListBase::const_iterator Foam::SLListBase::cbegin() const’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:333:16: warning: implicitly-declared ‘constexpr Foam::SLListBase::const_iterator::const_iterator(const Foam::SLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 333 | return endConstIter_; | ^~~~~~~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H:265:13: note: because ‘Foam::SLListBase::const_iterator’ has user-provided ‘void Foam::SLListBase::const_iterator::operator=(const Foam::SLListBase::const_iterator&)’ 265 | inline void Foam::SLListBase::const_iterator::operator= | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBase.H:280, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IDLList.H:36, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/entry.H:45, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dictionary.H:53, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTableIO.C:30, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTable.C:142, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/HashPtrTable.H:156, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:41, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::iterator Foam::DLListBase::iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:246:21: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 246 | iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:248:12: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 248 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::iterator Foam::DLListBase::begin()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:261:16: warning: implicitly-declared ‘constexpr Foam::DLListBase::iterator::iterator(const Foam::DLListBase::iterator&)’ is deprecated [-Wdeprecated-copy] 261 | return endIter_; | ^~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:198:13: note: because ‘Foam::DLListBase::iterator’ has user-provided ‘void Foam::DLListBase::iterator::operator=(const Foam::DLListBase::iterator&)’ 198 | inline void Foam::DLListBase::iterator::operator=(const iterator& iter) | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::const_iterator Foam::DLListBase::const_iterator::operator++(int)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:345:27: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 345 | const_iterator tmp = *this; | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:347:12: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 347 | return tmp; | ^~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H: In member function ‘Foam::DLListBase::const_iterator Foam::DLListBase::cbegin() const’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:360:16: warning: implicitly-declared ‘constexpr Foam::DLListBase::const_iterator::const_iterator(const Foam::DLListBase::const_iterator&)’ is deprecated [-Wdeprecated-copy] 360 | return endConstIter_; | ^~~~~~~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/DLListBaseI.H:292:13: note: because ‘Foam::DLListBase::const_iterator’ has user-provided ‘void Foam::DLListBase::const_iterator::operator=(const Foam::DLListBase::const_iterator&)’ 292 | inline void Foam::DLListBase::const_iterator::operator= | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.H:360, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/scalarField.H:38, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:42, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C: In member function ‘void Foam::Field<Type>::operator=(const Foam::VectorSpace<Form, Cmpt, nCmpt>&)’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C:680:42: warning: typedef ‘VSType’ locally defined but not used [-Wunused-local-typedefs] 680 | typedef VectorSpace<Form,Cmpt,nCmpt> VSType; | ^~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:354, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ReactionI.H: In member function ‘Foam::word& Foam::Reaction<ReactionThermo>::name()’: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ReactionI.H:38:12: **********************************error**********************************: binding reference of type ‘Foam::word&’ to ‘const Foam::word’ discards qualifiers 38 | return name_; | ^~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H: At global scope: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:107:25: warning: ‘Foam::perfectGas Foam::operator+(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 107 | inline Foam::perfectGas Foam::operator+ | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:112:34: note: only here as a ‘friend’ 112 | inline friend perfectGas operator+ | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:121:25: warning: ‘Foam::perfectGas Foam::operator-(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 121 | inline Foam::perfectGas Foam::operator- | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:118:34: note: only here as a ‘friend’ 118 | inline friend perfectGas operator- | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:135:25: warning: ‘Foam::perfectGas Foam::operator*(Foam::scalar, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 135 | inline Foam::perfectGas Foam::operator* | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:124:34: note: only here as a ‘friend’ 124 | inline friend perfectGas operator* | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:149, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGasI.H:145:25: warning: ‘Foam::perfectGas Foam::operator==(const Foam::perfectGas&, const Foam::perfectGas&)’ has not been declared within ‘Foam’ 145 | inline Foam::perfectGas Foam::operator== | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:35, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/perfectGas.H:130:34: note: only here as a ‘friend’ 130 | inline friend perfectGas operator== | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRate.H:123, from chemistryReaders/chemkinReader/chemkinReader.C:32: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRateI.H:100:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::ArrheniusReactionRate&)’ has not been declared within ‘Foam’ 100 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:32: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/ArrheniusReactionRate.H:109:32: note: only here as a ‘friend’ 109 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRate.H:122, from chemistryReaders/chemkinReader/chemkinReader.C:33: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRateI.H:95:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::thirdBodyArrheniusReactionRate&)’ has not been declared within ‘Foam’ 95 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:33: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thirdBodyArrheniusReactionRate.H:108:32: note: only here as a ‘friend’ 108 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRate.H:125, from chemistryReaders/chemkinReader/chemkinReader.C:39: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRateI.H:127:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::LandauTellerReactionRate&)’ has not been declared within ‘Foam’ 127 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:39: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/LandauTellerReactionRate.H:111:32: note: only here as a ‘friend’ 111 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRate.H:126, from chemistryReaders/chemkinReader/chemkinReader.C:40: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRateI.H:116:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::JanevReactionRate&)’ has not been declared within ‘Foam’ 116 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:40: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/JanevReactionRate.H:112:32: note: only here as a ‘friend’ 112 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRate.H:126, from chemistryReaders/chemkinReader/chemkinReader.C:41: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRateI.H:109:23: warning: ‘Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::powerSeriesReactionRate&)’ has not been declared within ‘Foam’ 109 | inline Foam::Ostream& Foam::operator<< | ^~~~ In file included from chemistryReaders/chemkinReader/chemkinReader.C:41: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/powerSeriesReactionRate.H:112:32: note: only here as a ‘friend’ 112 | inline friend Ostream& operator<< | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:359, from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.C: In instantiation of ‘Foam::Reaction<ReactionThermo>::Reaction(const speciesTable&, const Foam::List<Foam::Reaction<ReactionThermo>::specieCoeffs>&, const Foam::List<Foam::Reaction<ReactionThermo>::specieCoeffs>&, const Foam::HashPtrTable<ReactionThermo>&) [with ReactionThermo = Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >; Foam::speciesTable = Foam::hashedWordList]’: chemistryReaders/chemkinReader/chemkinReader.C:507:25: required from here /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.C:133:13: warning: implicitly-declared ‘Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >::sutherlandTransport(const Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >&)’ is deprecated [-Wdeprecated-copy] 133 | rhs_(rhs) | ^ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/sutherlandTransport.H:226, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:39, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/sutherlandTransportI.H:171:1: note: because ‘Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >’ has user-provided ‘Foam::sutherlandTransport<Thermo>& Foam::sutherlandTransport<Thermo>::operator=(const Foam::sutherlandTransport<Thermo>&) [with Thermo = Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> >]’ 171 | Foam::sutherlandTransport<Thermo>::operator= | ^~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/NonEquilibriumReversibleReaction.H:185, from chemistryReaders/chemkinReader/chemkinReader.C:31: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/NonEquilibriumReversibleReaction.C: In instantiation of ‘Foam::NonEquilibriumReversibleReaction<ReactionThermo, ReactionRate>::NonEquilibriumReversibleReaction(const Foam::Reaction<ReactionThermo>&, const ReactionRate&, const ReactionRate&) [with ReactionThermo = Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >; ReactionRate = Foam::ArrheniusReactionRate]’: chemistryReaders/chemkinReader/chemkinReader.C:520:21: required from here /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/NonEquilibriumReversibleReaction.C:41:28: warning: implicitly-declared ‘Foam::Reaction<Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > > >::Reaction(const Foam::Reaction<Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > > >&)’ is deprecated [-Wdeprecated-copy] 41 | rk_(reverseReactionRate) | ^ In file included from lnInclude/chemistryReader.H:40, from chemistryReaders/chemkinReader/chemkinReader.H:39, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:146:14: note: because ‘Foam::Reaction<Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > > >’ has user-provided ‘void Foam::Reaction<ReactionThermo>::operator=(const Foam::Reaction<ReactionThermo>&) [with ReactionThermo = Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >]’ 146 | void operator=(const Reaction<ReactionThermo>&); | ^~~~~~~~ /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/Reaction.H:65:7: warning: implicitly-declared ‘Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >::sutherlandTransport(const Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >&)’ is deprecated [-Wdeprecated-copy] 65 | class Reaction | ^~~~~~~~ In file included from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/sutherlandTransport.H:226, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/thermoPhysicsTypes.H:39, from /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/reactionTypes.H:35, from chemistryReaders/chemkinReader/chemkinReader.H:49, from chemistryReaders/chemkinReader/chemkinReader.C:26: /home/dyfluid/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude/sutherlandTransportI.H:171:1: note: because ‘Foam::sutherlandTransport<Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> > >’ has user-provided ‘Foam::sutherlandTransport<Thermo>& Foam::sutherlandTransport<Thermo>::operator=(const Foam::sutherlandTransport<Thermo>&) [with Thermo = Foam::specieThermo<Foam::janafThermo<Foam::perfectGas> >]’ 171 | Foam::sutherlandTransport<Thermo>::operator= | ^~~~
-
OpenFOAM气相燃爆求解器编译报错@李东岳 谢谢李老师!
(1)最开始的几处报错应该是下图,反复出现了多次:
(2)试过虚拟机中OpenFOAM-2.1.1常用的几种求解器,都能正常运行。
(3)我们当然有兴趣把它植入到新版本的OpenFOAM中,之前用2.1.1发现有些新版本的命令在里面不被识别,用的不太顺利。但我们目前学习OpenFOAM时间不长,对于求解器如何适配到高版本中还没有思路,希望李老师给提供一些可行的建议或思路,感谢老师! -
OpenFOAM气相燃爆求解器编译报错大家好!由于工程项目需要,我最近正利用文献中的一种名为ddtFoam的求解器(Journal of Combustion, 2014, 686347; International Journal of Hydrogen Energy, 2022, 47(25): 12759-12770.)模拟气相燃爆、可燃气爆燃转爆轰的过程。该求解器开发于2014年,需要基于OpenFOAM-2.1.1进行编译安装。这几天在公司非联网的工作站上,利用李老师分享的虚拟机方法(OpenFOAM-8 + OpenFOAM-v2106 + OpenFOAM-v2006 + OpenFOAM-6 + OpenFOAM-2.1.1 + foam-extend-4.1)对该求解器进行了编译,出现了如附图所示的错误,该求解器说明文件中的安装方法也一并附上。
在这之前我曾用自己联网的台式机在WSL Ubuntu 20.04环境下编译该求解器,并未出现上述错误(这里的OpenFOAM-2.1.1是单独从官网下载联网安装的),但自己的机器计算能力实在有限,所以想在公司的工作站上再进行安装使用。
由于刚接触OpenFOAM不久,我已经被上述问题困扰几天了,也在CFD中文网查了很多关于求解器编译报错的帖子,目前仍没有找到好的解决方法。希望有经验的大佬们能拨冗相助,指点迷津!谢谢大家!