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. DLBfoam的编译

DLBfoam的编译

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

    https://github.com/Aalto-CFD/DLBFoam
    请问有人使用过DLBfoam吗?我在编译过程中
    ./Allwmake --clean --platform STANDALONE
    出现的以下的错误,在参考https://github.com/Aalto-CFD/DLBFoam/issues/21的帖子讨论结果后,还是没有解决这个问题

    wmake libso src/thermophysicalModels/chemistryModel
    wmake libso src/ODE_DLB
    wmakeLnInclude: linking include files to ./lnInclude
    Making dependency list for source file seulex_LAPACK.C
    g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/usr/include    -I/work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include  -DDEBUG=0  -IlnInclude -I. -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OpenFOAM/lnInclude -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OSspecific/POSIX/lnInclude   -fPIC -c ODESolvers/ODESolver/ODESolver.C -o Make/linux64GccDPInt32Opt/ODESolvers/ODESolver/ODESolver.o
    g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/usr/include    -I/work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include  -DDEBUG=0  -IlnInclude -I. -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OpenFOAM/lnInclude -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OSspecific/POSIX/lnInclude   -fPIC -c ODESolvers/ODESolver/ODESolverNew.C -o Make/linux64GccDPInt32Opt/ODESolvers/ODESolver/ODESolverNew.o
    g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/usr/include    -I/work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include  -DDEBUG=0  -IlnInclude -I. -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OpenFOAM/lnInclude -I/work/opt/local/apps/gcc/4.8.5/impi/2019.9.304/openfoam/8/OpenFOAM-8/src/OSspecific/POSIX/lnInclude   -fPIC -c ODESolvers/seulex_LAPACK/seulex_LAPACK.C -o Make/linux64GccDPInt32Opt/ODESolvers/seulex_LAPACK/seulex_LAPACK.o
    ODESolvers/seulex_LAPACK/seulex_LAPACK.C: In member function ‘bool Foam::seulex_LAPACK::seul(Foam::scalar, const scalarField&, Foam::label, Foam::scalar, Foam::label, Foam::scalarField&, const scalarField&) const’:
    ODESolvers/seulex_LAPACK/seulex_LAPACK.C:157:53: error: too few arguments to function ‘void dgetrs_(const char*, const int*, const int*, const double*, const int*, const int*, double*, const int*, int*, size_t)’
         dgetrs_(&TRANS,&N,&NRHS,A,&LDA,IPIV,b,&LDB,&INFO);
                                                         ^
    In file included from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:11:0,
                     from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke.h:36,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.H:58,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.C:28:
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4043:42: note: declared here
     #define LAPACK_dgetrs_base LAPACK_GLOBAL(dgetrs,DGETRS)
                                              ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke_mangling.h:12:39: note: in definition of macro ‘LAPACK_GLOBAL’
     #define LAPACK_GLOBAL(lcname,UCNAME)  lcname##_
                                           ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4044:6: note: in expansion of macro ‘LAPACK_dgetrs_base’
     void LAPACK_dgetrs_base(
          ^
    ODESolvers/seulex_LAPACK/seulex_LAPACK.C:211:61: error: too few arguments to function ‘void dgetrs_(const char*, const int*, const int*, const double*, const int*, const int*, double*, const int*, int*, size_t)’
                 dgetrs_(&TRANS,&N,&NRHS,A,&LDA,IPIV,b,&LDB,&INFO);
                                                                 ^
    In file included from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:11:0,
                     from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke.h:36,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.H:58,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.C:28:
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4043:42: note: declared here
     #define LAPACK_dgetrs_base LAPACK_GLOBAL(dgetrs,DGETRS)
                                              ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke_mangling.h:12:39: note: in definition of macro ‘LAPACK_GLOBAL’
     #define LAPACK_GLOBAL(lcname,UCNAME)  lcname##_
                                           ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4044:6: note: in expansion of macro ‘LAPACK_dgetrs_base’
     void LAPACK_dgetrs_base(
          ^
    ODESolvers/seulex_LAPACK/seulex_LAPACK.C:268:57: error: too few arguments to function ‘void dgetrs_(const char*, const int*, const int*, const double*, const int*, const int*, double*, const int*, int*, size_t)’
             dgetrs_(&TRANS,&N,&NRHS,A,&LDA,IPIV,b,&LDB,&INFO);
                                                             ^
    In file included from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:11:0,
                     from /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke.h:36,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.H:58,
                     from ODESolvers/seulex_LAPACK/seulex_LAPACK.C:28:
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4043:42: note: declared here
     #define LAPACK_dgetrs_base LAPACK_GLOBAL(dgetrs,DGETRS)
                                              ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapacke_mangling.h:12:39: note: in definition of macro ‘LAPACK_GLOBAL’
     #define LAPACK_GLOBAL(lcname,UCNAME)  lcname##_
                                           ^
    /work/00/gs50/s50001/lapack-3.10.1/LAPACKE/include/lapack.h:4044:6: note: in expansion of macro ‘LAPACK_dgetrs_base’
     void LAPACK_dgetrs_base(
          ^
    make: *** [Make/linux64GccDPInt32Opt/ODESolvers/seulex_LAPACK/seulex_LAPACK.o] Error 1
    
    尚 1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #2

    OpenFOAM installation. dev and three latest official releases are maintaned in corresponding branches. You can find older versions under tags and releases.

    这个代码没有明确的说适配什么openfoam版本

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

    1 条回复 最后回复
  • 尚 在线
    尚 在线
    尚善若水
    在 中回复了 欧阳 最后由 尚善若水 编辑
    #3

    @欧阳

    sudo apt install intel-mkl
    dpkg -L libmkl-dev
    gedit ~/.bashrc
    export MKLROOT="/usr/include/mkl"
    source ~/.bashrc
    **exit**
    
    source MKL,MKL 会污染系统 mpirun,导致 OpenFOAM 计算时并行挂起
    oneapi  #这个命令会导致编译器变成 intel 编译器,所以 export MKLROOT 后要退出重进系统
    
    ./Allwmake --clean --platform MKL
    
    
    1 条回复 最后回复
  • 欧 离线
    欧 离线
    欧阳
    写于 最后由 编辑
    #4

    谢谢,谢谢大佬,太感谢了,大佬使用过DLBfoam吗?

    尚 1 条回复 最后回复
  • 尚 在线
    尚 在线
    尚善若水
    在 中回复了 欧阳 最后由 编辑
    #5

    @欧阳 测试过,但是没继续使用,我现在用的是org的cpuLoad

    李东岳李 欧 2 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    在 中回复了 尚善若水 最后由 编辑
    #6

    @尚善若水 org那面的实测起来怎么样

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

    1 条回复 最后回复
  • 欧 离线
    欧 离线
    欧阳
    在 中回复了 尚善若水 最后由 编辑
    #7

    @尚善若水 DLB跟org的cpuload,大佬测试的哪个性能更好?

    1 条回复 最后回复
  • 尚 在线
    尚 在线
    尚善若水
    写于 最后由 编辑
    #8

    @李东岳 @欧阳 我计算ODW,一百万网格,氢氨机理s59r356,cpuLoad(redistributionInterval 20; maxImbalance 0.1;)和DLBFoam(只使用负载均衡,不使用pyJac)效果基本相当。

    1 条回复 最后回复

  • 登录

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