Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    新方程的预测步和修正步

    OpenFOAM
    2
    3
    492
    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.
    • 好
      好好科研 last edited by 李东岳

      想向各位大佬请教一下,在icofoam里面添加新方程$\frac{\partial H}{\partial t}+ \vec{u}\cdot \triangledown H=\varepsilon \triangledown ^{2}H$和$\frac{\partial H}{\partial t}+ \vec{w}\cdot \triangledown H=\varepsilon \triangledown ^{2}H$,其中$\varepsilon$是常数,H是一个标量函数。但是不知道为什么得到的H是只算了第二个方程的结果,一个方程相当于没有算。代码如下:
      e8438ad7-61fb-40e0-b359-5b3f7f708518-image.png
      a347a9b8-8130-4c08-8d46-781ddc3424b8-image.png

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

        在同一个时间步里面植入两个方程,需要把H.oldTime()重新赋值一下

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

        1 Reply Last reply Reply Quote
        • 好
          好好科研 last edited by

          谢谢东岳老师

          1 Reply Last reply Reply Quote
          • First post
            Last post

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