Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    如何用codestream设置k的边界条件

    OpenFOAM
    2
    7
    243
    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
      ZZ给我趴下 last edited by

      请问各位大佬我在对k文件使用codestream创建如下的边界条件,要如何调用U的数据。258ce44db584e72052f3488c97e1734.png 93eee4f2d92a5e8b8514fab655d8190.png 1f889ef79ba45ee9f707214eca9d483.png

      1 Reply Last reply Reply Quote
      • Z
        ZZ给我趴下 last edited by

        903db67fd7ea6dffd60f7752171719f.png 这是k的边界条件。

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

          const volVectorField& U = mesh.lookupObject<volVectorField>("U");
          

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

          Z 2 Replies Last reply Reply Quote
          • Z
            ZZ给我趴下 @李东岳 last edited by

            @李东岳 好的,谢谢东岳老师。

            1 Reply Last reply Reply Quote
            • Z
              ZZ给我趴下 @李东岳 last edited by

              @李东岳 095161e45fb099d8ce7d3f062c16c49.png 1014e5d321fd40874602e44107681e8.png 东岳老师,还是会出现这个错误,出现在这两行。

              李东岳 1 Reply Last reply Reply Quote
              • 李东岳
                李东岳 管理员 @ZZ给我趴下 last edited by

                @zz给我趴下 首先U是vector,并且是volField,所以赋值肯定是不对的。你试试U[i]

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

                Z 1 Reply Last reply Reply Quote
                • Z
                  ZZ给我趴下 @李东岳 last edited by

                  @李东岳 好的,谢谢东岳老师

                  1 Reply Last reply Reply Quote
                  • First post
                    Last post

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