Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    抛物型初始速度的给定

    OpenFOAM
    5
    7
    3008
    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

      openfoam顶盖驱动流如何给一个抛物型分布的初始驱动速度a

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

        用codedFixedValue,你的计算公式是?

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

        青 1 Reply Last reply Reply Quote
        • 青
          青瓷碎了夏天 @李东岳 last edited by

          @李东岳 方腔的movingwall给定一个水平速度u=x²+2x,x就是相对于最左端的水平距离

          谢谢。

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

            codedFixedValue

            movingWall
                {
                    type            codedFixedValue;
                    name            shit;
            
                    code
                    #{
                        const fvPatch& boundaryPatch = this->patch();
            
                        vectorField v = boundaryPatch.Cf();
            
                        forAll(boundaryPatch, faceI)
                        {
                            scalar x = boundaryPatch.Cf()[faceI].x();
                            v[faceI] = vector(sqr(x) + 2.0*x, 0, 0);
                        }
            
                        operator==(v);
                    #};
            
                    value           $internalField;
                }
            

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

            Z hurricane007 2 Replies Last reply Reply Quote
            • Z
              zhengshu930 @李东岳 last edited by

              @东岳 老师,请问可不可以将入口边界等分成5份,然后每一段可以根据建立的表格进行赋值?

              星 1 Reply Last reply Reply Quote
              • 星
                星星星星晴 @zhengshu930 last edited by

                @zhengshu930 http://sourceflux.de/blog/the-codedfixedvalue-boundary-condition/

                在写博士毕业论文,寻找postdoc或者职位中~
                m.sui20@foxmail.com

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

                  @东岳
                  点赞了,自己写出来的第一个OpenFOAM代码。。。

                  1 Reply Last reply Reply Quote
                  • First post
                    Last post

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