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
22 帖子 3 发布者 7.0k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 亦 离线
    亦 离线
    亦又
    写于 最后由 编辑
    #1

    @李东岳 老师如果想安装自己以前的用过的openfoam-4.1,应该怎么操作?

    1 条回复 最后回复
  • H 离线
    H 离线
    HITSC30
    写于 最后由 李东岳 编辑
    #2

    http://dyfluid.com/install.html

    https://cfd-china.com/topic/7069/openfoam-org系列国内满速下载地址

    我按照李老师这两个帖子个安装的。朋友你可以试试,刚看了下,里面有4.X不清楚是不是你需要的4.1版本

    哨声响起的前一秒,我从未停止奔跑。
    对CFD保持间断的兴趣~

    李东岳李 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    写于 最后由 亦又 编辑
    #3

    @李东岳 老师,https://cfd-china.com/topic/7069/openfoam-org系列国内满速下载地址, 这里面的4.X是4.1版本么?那这个4.1版本的如何在ubuntu24.04上下载?需要换系统么?

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 亦又 最后由 编辑
    #4

    @亦又 在 安装openfoam 中说:

    @李东岳 老师,https://cfd-china.com/topic/7069/openfoam-org系列国内满速下载地址, 这里面的4.X是4.1版本么?那这个4.1版本的如何在ubuntu24.04上下载?需要换系统么?

    好像很多东西版本不太兼容,那我需要怎么操作?

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

    我建议你直接下载我的虚拟机跑 http://dyfluid.com/download.html
    我看了一下 没有4.1 你如果需要的话我可以给你装一个4.1

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

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #6

    @李东岳 老师,9635b298-3aed-4e24-a505-56befd520464-image.png 。我在网上找到了压缩包,但是在Ubuntu24.04.1安装,总是出现各种问题。

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

    为什么要用4.1?如果初学的话我觉得你装不上。直接用10得了呗

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

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #8

    @李东岳 老师,之前一直用的4.1 感觉别的版本区别还不小,用起来不是很习惯

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

    你之前用过4.1,那就自己装吧,编译4.1要编译器降级,https://www.cfd-china.com/topic/4196/ubuntu-20-04-安装-openfoam-v1712

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

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #10

    @李东岳 我用到了gcc5了,别的那些包有什么需要改动或者那个些源网站要怎么调整,./Allwmake -j 总是出问题?

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

    我不太确定,但我记得应该是5以下的4.8,你试试4.8

    别的不需要调整

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

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #12

    @李东岳
    insertSurfaceNearestPointPairs.C: In member function ‘void Foam::CV2D::insertSurfaceNearestPointPairs()’:
    insertSurfaceNearestPointPairs.C:178:31: error: ‘toPoint3D’ was not declared in this scope
    toPoint3D(vert),
    ^
    insertSurfaceNearestPointPairs.C:225:67: error: no matching function for call to ‘Foam::CV2D::toPoint2D(const Foam::Vector<double>&)’
    surfacePoints.append(toPoint2D(pHit.hitPoint()));
    ^
    insertSurfaceNearestPointPairs.C:225:67: note: candidates are:
    In file included from CV2D.H:469:0,
    from insertSurfaceNearestPointPairs.C:26:
    CV2DI.H:what:29: note: const point2D& Foam::CV2D::toPoint2D(const int&) const
    inline const Foam::point2D& Foam::CV2D::toPoint2D(const point& p) const
    ^
    CV2DI.H:what:29: note: no known conversion for argument 1 from ‘const Foam::Vector<double>’ to ‘const int&’
    CV2DI.H:chigua2:33: note: const point2DField Foam::CV2D::toPoint2D(const pointField&) const
    inline const Foam::point2DField Foam::CV2D::toPoint2D(const pointField& p) const
    ^
    CV2DI.H:chigua2:33: note: no known conversion for argument 1 from ‘const Foam::Vector<double>’ to ‘const pointField& {aka const Foam::Field<Foam::Vector<double> >&}’
    CV2DI.H:149:37: note: const point2D& Foam::CV2D::toPoint2D(const Point&) const
    inline Foam::CV2D::point2DFromPoint Foam::CV2D::toPoint2D(const Point& P) const
    ^
    CV2DI.H:149:37: note: no known conversion for argument 1 from ‘const Foam::Vector<double>’ to ‘const Point& {aka const CGAL::Point_2CGAL::Epick&}’
    In file included from CV2D.H:469:0,
    from insertBoundaryConformPointPairs.C:26:
    CV2DI.H: In member function ‘bool Foam::CV2D::insertMirrorPoint(const point2D&, const point2D&)’:
    CV2DI.H:94:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/insertBoundaryConformPointPairs.o] 错误 1
    make[2]: *** 正在等待未完成的任务....
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2D.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/foamyQuadMesh.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/insertSurfaceNearPointPairs.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/CV2DIO.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/insertFeaturePoints.o] 错误 1
    CV2DI.H: In member function ‘bool Foam::CV2D::insertMirrorPoint(const point2D&, const point2D&)’:
    CV2DI.H:94:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/insertSurfaceNearestPointPairs.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/foamyQuadMesh/shortEdgeFilter2D.o] 错误 1
    make[1]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:generation] 错误 2
    make: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:mesh] 错误 2
    老师,这是什么问题?

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

    不需要编译foamyQuadMesh,忽略

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

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #14

    @李东岳 老师,可是它自动停止了,到这里

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

    foamyQuadMesh是之前测试性的代码,后来给删了。你编译时候强制略过好了。或者自动停止之后,手动继续编译别的

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

    亦 4 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #16

    @李东岳 老师,如何强制跳过啊?如果手动编译别的,怎么查看还需要编译那些?

    1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 编辑
    #17

    @李东岳 -ldynamicMesh -lgenericPatchFields -lOpenFOAM -ldl
    -lm -o /home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/subsetMesh
    make: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:mesh] 错误 2

    这是啥问题?

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 亦又 最后由 编辑
    #18

    @亦又 在 安装openfoam 中说:

    @李东岳 -ldynamicMesh -lgenericPatchFields -lOpenFOAM -ldl
    -lm -o /home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/subsetMesh
    make: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:mesh] 错误 2

    这是啥问题?

    .PHONY: application
    application: $(FOAM_APPS)

    .PHONY: $(FOAM_APPS)
    $(FOAM_APPS):
    +@wmake -all $(TARGET) $@ 这是34行到39行

    亦 1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 亦又 最后由 编辑
    #19

    @亦又 在 安装openfoam 中说:

    @亦又 在 安装openfoam 中说:

    @李东岳 -ldynamicMesh -lgenericPatchFields -lOpenFOAM -ldl
    -lm -o /home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/subsetMesh
    make: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:mesh] 错误 2

    这是啥问题?

    .PHONY: application
    application: $(FOAM_APPS)

    .PHONY: $(FOAM_APPS)
    $(FOAM_APPS):
    +@wmake -all $(TARGET) $@ 这是34行到39行

    dyz@dyz-VMware-Virtual-Platform:~/OpenFOAM/OpenFOAM-4.1$ cd ~/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/manipulation/subsetMesh
    dyz@dyz-VMware-Virtual-Platform:~/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/manipulation/subsetMesh$ wmake
    /home/dyz/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/manipulation/subsetMesh
    make: “/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/bin/subsetMesh”已是最新。
    咋回事

    1 条回复 最后回复
  • 亦 离线
    亦 离线
    亦又
    在 中回复了 李东岳 最后由 亦又 编辑
    #20

    @李东岳 加上之前的,老师您再看看这些
    compilation terminated.
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.o] 错误 1
    In file included from lnInclude/CGALTriangulation3Ddefs.H:41:0,
    from lnInclude/conformalVoronoiMesh.H:46,
    from lnInclude/cellSizeFunction.H:39,
    from cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.H:37,
    from cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.C:26:
    lnInclude/CGALTriangulation3DKernel.H:48:60: fatal error: CGAL/Robust_circumcenter_filtered_traits_3.h: 没有那个文件或目录
    #include "CGAL/Robust_circumcenter_filtered_traits_3.h"
    ^
    compilation terminated.
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshConformToSurface.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControlMesh/cellShapeControlMesh.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMeshTools/DelaunayMeshTools.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshFeaturePoints.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/cellSizeAndAlignmentControls.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshIO.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cvControls/cvControls.o] 错误 1
    make[2]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8:/home/dyz/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/cellShapeControl/cellSizeAndAlignmentControl/searchableSurfaceControl/searchableSurfaceControl.o] 错误 1
    make[1]: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:generation] 错误 2
    make: *** [/home/dyz/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39:mesh] 错误 2
    这个foamyMesh里面好像又出现一些问题。

    1 条回复 最后回复

  • 登录

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