Skip to content

OpenFOAM

OpenFOAM交流区

4.7k 主题 27.7k 帖子
  • 合集:OpenFOAM安装准备工作贴

    已固定
    24
    24 帖子
    18k 浏览
    S

    @李东岳 好的,谢谢老师!

  • OpenFOAM教程 初级入门建议

    已固定
    47
    47 帖子
    109k 浏览
    李东岳

    @黑山雁 处理了 :-)

  • 求助:interDyMFoam自适应网格问题

    1
    1 帖子
    120 浏览

    各位大佬好,我是CFDEM新手,最近尝试参照twoSpheresGlowinskiMPI构建自己的算例,采用dynamicRefine,在计算过程中断构建的算例基本与参照算例一致,但试跑算例出现中断,不知道是否是哪里没有注意到,求大佬指导
    报错描述
    当不使用自适应网格时,算例正常计算;当采用自适应网格功能interDyMFoam,网格未加密前(未达到设置加密条件),正常计算;网格开始加密计算中断。
    报错代码如下:

    Time = 0.0001 Selected 0 cells for refinement out of 1613716. Selected 0 split points out of a possible 0. Courant Number mean: 0.000199582 max: 0.0804916 - evolve() timeStepFraction() = 2 Starting up LIGGGHTS Executing command: 'run 10 ' Setting up run at Fri Jul 26 12:59:28 2024 Memory usage per processor = 6.75634 Mbytes Step Atoms KinEng rke Volume dragtota dragtota dragtota 1 1 2.5261073e-08 0 0.0260508 0 0 0 CFD Coupling established at step 10 11 1 3.5918126e-08 0 0.0260508 0 0 0 Loop time of 0.000962037 on 16 procs for 10 steps with 1 atoms, finish time Fri Jul 26 12:59:28 2024 Pair time (%) = 4.70437e-06 (0.489001) Neigh time (%) = 0 (0) Comm time (%) = 4.65044e-06 (0.483395) Outpt time (%) = 6.52643e-05 (6.78397) Other time (%) = 0.000887418 (92.2436) Nlocal: 0.0625 ave 1 max 0 min Histogram: 15 0 0 0 0 0 0 0 0 1 Nghost: 0 ave 0 max 0 min Histogram: 16 0 0 0 0 0 0 0 0 0 Neighs: 0 ave 0 max 0 min Histogram: 16 0 0 0 0 0 0 0 0 0 Total # of neighbors = 0 Ave neighs/atom = 0 Neighbor list builds = 0 Dangerous builds = 0 LIGGGHTS finished Foam::cfdemCloudIB::reAllocArrays() nr particles = 1 evolve done. DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 1.06984e-07, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 4.99282e-07, No Iterations 1 DILUPBiCG: Solving for Uz, Initial residual = 1, Final residual = 6.95219e-10, No Iterations 2 DICPCG: Solving for p, Initial residual = 1, Final residual = 9.26695e-07, No Iterations 573 time step continuity errors : sum local = 3.69904e-10, global = -1.28591e-13, cumulative = -1.28591e-13 DICPCG: Solving for p, Initial residual = 0.0476412, Final residual = 9.26405e-07, No Iterations 513 time step continuity errors : sum local = 3.16922e-08, global = -3.49546e-12, cumulative = -3.62406e-12 DICPCG: Solving for p, Initial residual = 0.0055667, Final residual = 9.51869e-07, No Iterations 500 time step continuity errors : sum local = 3.3706e-08, global = -6.10801e-12, cumulative = -9.73206e-12 DICPCG: Solving for p, Initial residual = 0.00178549, Final residual = 9.94251e-07, No Iterations 473 time step continuity errors : sum local = 3.53268e-08, global = -5.71629e-12, cumulative = -1.54484e-11 No finite volume options present particleCloud.calcVelocityCorrection() DICPCG: Solving for phiIB, Initial residual = 1, Final residual = 9.63924e-07, No Iterations 501 ExecutionTime = 30.7 s ClockTime = 32 s Time = 0.0002 Selected 784 cells for refinement out of 1613716. Refined from 1613716 to 1619204 cells. Selected 0 split points out of a possible 784. Courant Number mean: 0.126921 max: 9.46381 - evolve() timeStepFraction() = 2 Starting up LIGGGHTS Executing command: 'run 10 ' Setting up run at Fri Jul 26 12:59:56 2024 Memory usage per processor = 6.75634 Mbytes Step Atoms KinEng rke Volume dragtota dragtota dragtota 11 1 3.5918126e-08 0 0.0260508 0 0 0.017347056 CFD Coupling established at step 20 21 1 3.6972707e-08 0 0.0260508 0 0 0.017347056 Loop time of 0.00149142 on 16 procs for 10 steps with 1 atoms, finish time Fri Jul 26 12:59:56 2024 Pair time (%) = 3.75399e-06 (0.251706) Neigh time (%) = 0 (0) Comm time (%) = 3.65471e-06 (0.24505) Outpt time (%) = 8.7527e-05 (5.86871) Other time (%) = 0.00139648 (93.6345) Nlocal: 0.0625 ave 1 max 0 min Histogram: 15 0 0 0 0 0 0 0 0 1 Nghost: 0 ave 0 max 0 min Histogram: 16 0 0 0 0 0 0 0 0 0 Neighs: 0 ave 0 max 0 min Histogram: 16 0 0 0 0 0 0 0 0 0 Total # of neighbors = 0 Ave neighs/atom = 0 Neighbor list builds = 0 Dangerous builds = 0 LIGGGHTS finished nr particles = 1 -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 15 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. --------------------------------------------------------------------------
  • dsmcfoam

    2
    2 帖子
    27 浏览
    李东岳

    你初始化的例子的位置可能在网格外面?

  • waves2Foam的一键安装解决方案

    5
    5 帖子
    110 浏览
    L

    @队长别开枪 高手。膜拜。

  • OpenFOAM后处理计算yPlus时出错,求解答

    10
    10 帖子
    3k 浏览
    C

    @李东岳 谢谢您

  • 1 帖子
    33 浏览
    C

    postProcess -func yPlus

    --> FOAM FATAL ERROR:
    Unable to find turbulence model in the database

    From function virtual bool Foam::functionObjects::yPlus::execute() in file yPlus/yPlus.C at line 180.
  • interFoam 出口流体堆积,液位过高

    7
    7 帖子
    79 浏览
    L

    非常感谢李老师!

  • 关于使用openfoam将volField转化成pointField

    1
    1 帖子
    20 浏览
    L

    请教各位大佬:
    openfoam有没有自带的插值可以将volField转化成pointField,使用tecplot进行后处理时插值操作会将cell data转化成point data,操作比较麻烦于是自行编写openfoam程序,很多操作是基于volField,然后结果和tecplot有比较大的区别,不知道是不是插值的影响

  • 关于 rhoCentralFoam 中 fvSchemes 设置的疑问。

    6
    6 帖子
    674 浏览
    B

    @李东岳 谢谢东岳老师

  • OpenFOAM中的动网格边界

    18
    18 帖子
    4k 浏览
    J

    @lxz-ii 嗯嗯,我刚刚搜到了一些,先去试试看

  • reactmultiPhaseEulerfoam-多相气固

    2
    2 帖子
    47 浏览
    李东岳

    我给你看了一下,openfoam2012这个没有植入颗粒动理学理论,算颗粒流不太准了。你可以使用openfoam8。

  • openfoam 不可压缩计算中的能量守恒

    10
    10 帖子
    448 浏览
    I

    @李东岳 好的我简要描述下问题,就是我按照完整的形式推导了不可压缩流动的能量守恒公式。
    4422b726-0b92-4704-82cd-c145d75dcc1c-image.png 但是案例结果并不满足。
    我对这一项有疑问4326e809-66fe-472b-a04c-686c03c3cb2b-image.png
    我在程序里输出是有值的,但是之前的回复中提到不可压缩流动中应当为零。
    这一项是按照下面这个式子,考虑了速度梯度为零,去掉右边第一项积分来的
    e470d379-bbaf-47b1-ba05-c1afb5d0c8d9-image.png
    我发现这个式子中的三项,积分后的形式都是一致的,感到很困惑。

  • 6 帖子
    486 浏览
    李东岳

    还真是。我刚才看了一下。应该是我的虚拟机上面没有装tecplot,所以没找到tec的头文件。

    dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/postProcessing/dataConversion/foamToTecplot360$ wmake wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries: wmakeLnInclude error: base directory /home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/ does not exist Making dependency list for source file foamToTecplot360.C could not open file TECIO.h for source file foamToTecplot360.C due to No such file or directory could not open file MASTER.h for source file foamToTecplot360.C due to No such file or directory could not open file GLOBAL.h for source file foamToTecplot360.C due to No such file or directory Making dependency list for source file vtkMesh.C Making dependency list for source file tecplotWriter.C could not open file TECIO.h for source file tecplotWriter.C due to No such file or directory could not open file MASTER.h for source file tecplotWriter.C due to No such file or directory could not open file GLOBAL.h for source file tecplotWriter.C due to No such file or directory 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/home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/lagrangian/basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/dynamicMesh/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -c tecplotWriter.C -o /home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o In file included from tecplotWriter.C:26: tecplotWriter.H:39:10: fatal error: TECIO.h: 没有那个文件或目录 39 | #include "TECIO.h" | ^~~~~~~~~ compilation terminated. make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:26:/home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o] 错误 1 dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/posttProcessing/tProcessing/dataCotProttProcessing/dataConversion/foamToTecplot360$
  • 2 帖子
    29 浏览
    李东岳

    在openfoam 5.x下编译你试试 我那个虚拟机里面有
    如果编译你都不知道怎么编译的话 你需要先学一下openfoam 然后再弄ibScourFoam

  • 4 帖子
    61 浏览
    L

    谢谢李老师,问题解决了,他们的程序调数据都要走一下虚拟硬盘,不是直连的,中间文件乱码了。

  • 修改boundary文件中的类型导致错误

    3
    3 帖子
    45 浏览

    @李东岳 好的,谢谢东岳老师!

  • 4 帖子
    60 浏览
    Y

    第一次在这个网站上求助各位大佬,报错图片不知道怎么看不了了,不好意思![IWE)}@6(NH98E9LRH@PDEK.png

  • 23 帖子
    9k 浏览
    D

    您好,想问一下您问的这个问题解决了吗,我目前也在通过naca翼型接触openfoam,用rhopimple算的非定常总是收敛,从rhopimple改成rhoC算就会提示各种错误

  • OpenFOAM耗散过大如何解决?

    3
    3 帖子
    1k 浏览
    李东岳

    数值耗散问题不好处理。方程本质的问题。