Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    OpenFOAM中自编译边界条件的库函数,计算速度变慢

    OpenFOAM
    2
    4
    186
    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.
    • R
      ruibin_tongji last edited by

      各位老师好!我在在OpenFOAM的SRC中编译大气边界条件,编译成功后,计算时比OpenFOAM中自带的边界条件计算速度慢很多,这是什么原因造成的呢?

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

        @ruibin_tongji 需要提供更多信息debug.. 植入了什么方程?

        CFD课程 改成线上了 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        R 1 Reply Last reply Reply Quote
        • R
          ruibin_tongji @李东岳 last edited by

          @李东岳李老师您好,我在OpenFOAM中的atmBoundaryLayer中修改了入口湍流动能的计算公式,计算公式是由如图所示拟合得到二次曲线的。 f5de23fa-e335-4408-a74e-9a16f9da0336-image.png 编译没问题,也可以正常计算,后处理时的入口TKE值也是正确的,只是计算的时候很慢。比直接采用OpenFOAM自带的atmBoundaryLayer慢好多倍。

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

            @ruibin_tongji 你看你的log是不是有些迭代次数太多了

            CFD课程 改成线上了 http://dyfluid.com/class.html
            CFD高性能服务器 http://dyfluid.com/servers.html

            1 Reply Last reply Reply Quote
            • First post
              Last post

            CFD中文网 | 东岳流体 | 京ICP备15017992号-2