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. 我想用rhocentralfoamlts,稳态的求解器,但是编译的时候有错误提示,不知道什么原因。

我想用rhocentralfoamlts,稳态的求解器,但是编译的时候有错误提示,不知道什么原因。

已定时 已固定 已锁定 已移动 OpenFOAM
4 帖子 2 发布者 4.6k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 小 离线
    小 离线
    小葱小虫
    写于 最后由 小葱小虫 编辑
    #1
    cc@ubuntu:~/Downloads/rhoCentralLTS-OF-2.1$ wmake
    Making dependency list for source file rhoCentralLTS.C
    SOURCE=rhoCentralLTS.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IBCs/lnInclude -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam211/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam211/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam211/src/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/rhoCentralLTS.o
    In file included from createFields.H:35:0,
                     from rhoCentralLTS.C:48:
    rhoBoundaryTypes.H: In function ‘int main(int, char**)’:
    rhoBoundaryTypes.H:12:36: error: ‘fixedRhoFvPatchScalarField’ has not been declared
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:35:8: warning: unused variable ‘maxCo’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
    make: *** [Make/linuxGccDPOpt/rhoCentralLTS.o] Error 1
    cc@ubuntu:~/Downloads/rhoCentralLTS-OF-2.1$ cd ..
    cc@ubuntu:~/Downloads$ wmake
    wmake error: 'Make' directory does not exist in /home/cc/Downloads
    cc@ubuntu:~/Downloads$ cd rhoCentralLTS-OF-2.1/
    cc@ubuntu:~/Downloads/rhoCentralLTS-OF-2.1$ wmake
    SOURCE=rhoCentralLTS.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IBCs/lnInclude -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam211/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam211/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam211/src/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/rhoCentralLTS.o
    In file included from createFields.H:35:0,
                     from rhoCentralLTS.C:48:
    rhoBoundaryTypes.H: In function ‘int main(int, char**)’:
    rhoBoundaryTypes.H:12:36: error: ‘fixedRhoFvPatchScalarField’ has not been declared
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:35:8: warning: unused variable ‘maxCo’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
    make: *** [Make/linuxGccDPOpt/rhoCentralLTS.o] Error 1
    cc@ubuntu:~/Downloads/rhoCentralLTS-OF-2.1$ wmake
    SOURCE=rhoCentralLTS.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IBCs/lnInclude -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam211/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam211/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam211/src/dynamicMesh/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/rhoCentralLTS.o
    In file included from createFields.H:35:0,
                     from rhoCentralLTS.C:48:
    rhoBoundaryTypes.H: In function ‘int main(int, char**)’:
    rhoBoundaryTypes.H:12:36: error: ‘fixedRhoFvPatchScalarField’ has not been declared
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:32:12: warning: unused variable ‘adjustTimeStep’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:35:8: warning: unused variable ‘maxCo’ [-Wunused-variable]
    /opt/openfoam211/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
    make: *** [Make/linuxGccDPOpt/rhoCentralLTS.o] Error 1
    cc@ubuntu:~/Downloads/rhoCentralLTS-OF-2.1$
    1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    写于 最后由 编辑
    #2
    ‘fixedRhoFvPatchScalarField’ has not been declared
    

    你需要声明这个场

    小 1 条回复 最后回复
  • 小 离线
    小 离线
    小葱小虫
    在 中回复了 赵一铭 最后由 编辑
    #3

    @赵一铭 你好,我这个是从群里下载的,从来没有编译过,应该是直接可以用的那,这个怎么弄

    赵 1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    在 中回复了 小葱小虫 最后由 编辑
    #4

    @小葱小虫

    2个原因:
    1.版本不对。你看看是不是你们能用的一个openfoam版本。
    2.代码缺失。有可能有一些类库你没有哦。

    1 条回复 最后回复

  • 登录

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