Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    关于openFoam中非求解量的边界条件的疑问

    OpenFOAM
    2
    4
    2923
    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.
    • lushifer
      lushifer last edited by

      在openfoam中定义了某一场量P,P是通过其他场量计算得到的,比如说P=Aa-Bb,A和B是PDE方程未知数。请问P场量的边界场是怎么计算得到的呢?还有是什么时候更新边界场呢?

      1 Reply Last reply Reply Quote
      • Wayne
        Wayne last edited by

        correctBoundaryConditions()
        {
         this->setUpToDate();
         storeOldTimes();
         boundaryField_.evaluate();
        }
        

        然后就是具体调用各个边界条件中的evaluate()函数了。

        可参考http://www.cfd-online.com/Forums/openfoam-programming-development/129271-how-boundary-conditions-called-openfoam-solvers.html

        但是,如果选了calculated边界,边界值就是被算出来的。但是这个值是怎么给定的我暂时不清楚,比如U=d*P,这都是针对体心值的操作,不清楚选了calculated时边界值是如何更新的

        Blog: http://blog.sina.com.cn/multiphyzks
        RG:https://www.researchgate.net/profile/Yan_Wang154

        1 Reply Last reply Reply Quote
        • lushifer
          lushifer last edited by

          多谢大神!一直没解决,我再找找看看了。

          1 Reply Last reply Reply Quote
          • Wayne
            Wayne last edited by

            知道了。内部场和边界场不是分开的,所以用等号赋值的时候也就更新了边界场。

            Blog: http://blog.sina.com.cn/multiphyzks
            RG:https://www.researchgate.net/profile/Yan_Wang154

            1 Reply Last reply Reply Quote
            • First post
              Last post

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