Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    openfoam中压力梯度计算不均

    OpenFOAM
    2
    3
    793
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zp气固两相流 last edited by

      最近发现在openfoam计算压力梯度时,用blockMesh生成的均匀网格,给定压力场为均匀初始场,当压力初始场为零时,全场压力梯度为零,但是当压力初始场为101325时,梯度在x,y(2D)方向上绝对值大小为1e-6(由于网格质量引起的数值误差?),虽然这个值量级比较小,但是目前计算的系统网格长度量级为1e-5,会对最终的结果产生误差,我分别在openfoam2.2.x以及openfoam6.0上测试都存在该问题,压力梯度计算方法为Gauss linear,不知道有没有人碰到类似的情况,或者有没有推荐的绘制网格质量较高的软件,我试试在不同网格下计算看看
      下图为压力初始值为101325的压力梯度分布
      (另附测试算例链接https://pan.baidu.com/s/1uFbx_xqbO-5QAbcmTSr-fA)
      p101325.png

      1 Reply Last reply Reply Quote
      • 李东岳
        李东岳 管理员 last edited by

        你可以试试对grad限制一下,cellLimited Gauss linear

        线上CFD课程 7月1日报名截止 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        1 Reply Last reply Reply Quote
        • Z
          zp气固两相流 last edited by

          非常感谢李老师,cellLimited Gauss linear 1 格式比Gauss linear好很多,运行程序之前运行renumberMesh -overwrite改善网格质量也有作用

          1 Reply Last reply Reply Quote
          • First post
            Last post

          CFD中文网 | 东岳流体 | 京ICP备15017992号-2
          论坛登录问题反馈可联系 li.dy@dyfluid.com