Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. OpenFOAM气相燃爆求解器编译报错

OpenFOAM气相燃爆求解器编译报错

已定时 已固定 已锁定 已移动 OpenFOAM
14 帖子 3 发布者 5.2k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 李东岳 编辑
    #2

    这个不是最开始的报错。需要看一下最开始的报错。

    另外,我那个虚拟机,openfoam211,其他求解器可以跑么。

    我看了下ddtFoam,挺有意思,这个求解器版本太老太老了,openfoam211的。你们是否感兴趣适配到最新的openfoam9或者10。

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #3

    @李东岳 谢谢李老师!
    (1)最开始的几处报错应该是下图,反复出现了多次:
    批注 2023-04-13 171854.png
    批注 2023-04-13 171856.png
    批注 2023-04-13 171857.png
    (2)试过虚拟机中OpenFOAM-2.1.1常用的几种求解器,都能正常运行。
    (3)我们当然有兴趣把它植入到新版本的OpenFOAM中,之前用2.1.1发现有些新版本的命令在里面不被识别,用的不太顺利。但我们目前学习OpenFOAM时间不长,对于求解器如何适配到高版本中还没有思路,希望李老师给提供一些可行的建议或思路,感谢老师!:xinxin:

    1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 编辑
    #4

    只能看出来ddtFoam跟openfoam211的thermo库的代码有冲突。他这个提示了openfoam211/src里面的冲突位置,没有提示ddtFoam的位置,这是最开始的错误么?最好把log通过代码的方式贴一下,如下:

    全部错误信息
    
    

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #5

    @李东岳 谢谢李老师!全部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=
          | ^~~~
    
    
    1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 编辑
    #6

    我看了一下ddtFoam的代码,你尝试把chemkinReader.C的

    const word& elementName = specieComposition[i].elementName;
    

    换成

    word& elementName = specieComposition[i].elementName;
    

    试试

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #7

    @李东岳 麻烦老师了,但按照您的方法修改重新编译后还是有问题,而且新修改的这条语句也报错了:xinlei: ,截取了最前面的两处报错:

    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)
          |             ^
    
    1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 编辑
    #8

    因为我没有211,所以这么debug太慢了,行不通。

    https://sourceforge.net/projects/ddtfoam/ 我没看到他们说适用于211 你在哪里看到的

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #9

    @李东岳 不好意思老师,这两天去忙了点其他工作。ddtFoam适用的OpenFOAM版本是这个链接下载的源代码包中包含的用户指南指明的。如下图所示。
    微信截图_20230413093730.png
    这几天想了一下,编译出错会不会与OpenFOAM-2.1.1的安装方式有关?因为我自用台式机上的2.1.1是从官网下载并根据上面的教程联网一步步安装的,在此基础上以同样方式编译ddtFoam没有报错,而在虚拟机上就一直报错:136:

    李东岳李 1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    在 中回复了 AWAN 最后由 编辑
    #10

    @AWAN 你看一下台式机与虚拟机的编译器是不是都是一个版本的g++

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #11

    @李东岳 老师,确实是不同版本的,感觉应该就是这个问题导致的报错。台式机用的是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批注 2023-04-21 114534.png

    李东岳李 1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    在 中回复了 AWAN 最后由 编辑
    #12

    那应该是G++版本的问题

    密码是1

    你再试一下

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    A 1 条回复 最后回复
  • A 离线
    A 离线
    AWAN
    在 中回复了 李东岳 最后由 编辑
    #13

    @李东岳 可以了,李老师,非常感谢!早上输密码的时候用数字键盘没把数字打上:136:
    您之前提到可以把这个求解器编译到最新版本的OpenFOAM框架内,关于这个流程您有什么建议吗?或者有什么资料可以参考学习的吗?感觉难度应该不小

    1 条回复 最后回复
  • S 离线
    S 离线
    Sandman
    在 中回复了 AWAN 最后由 Sandman 编辑
    #14

    @AWAN 在 OpenFOAM气相燃爆求解器编译报错 中说:

    OpenFOAM-8 + OpenFOAM-v2106 + OpenFOAM-v2006 + OpenFOAM-6 + OpenFOAM-2.1.1 + foam-extend-4.1

    您好,请问您提到的李老师分享的【OpenFOAM-8 + OpenFOAM-v2106 + OpenFOAM-v2006 + OpenFOAM-6 + OpenFOAM-2.1.1 + foam-extend-4.1】虚拟机在哪下载呀?或者您是否方面再次分享一下呀?感谢!

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]