Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    关于createField.H的问题

    OpenFOAM
    2
    3
    473
    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.
    • win
      win last edited by

      平时汇报_看图王.png
      像图片中的这种问题,c是一个计算的标量场,但是它需要一个判断,这种情况在createField.H中怎么写它的计算公式啊?

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

        forAll(C, celli)
        {
            if ()
            {
                C[celli] = a;
            }
            else
            {
            }
        }
        

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

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

          谢谢老师

          1 Reply Last reply Reply Quote
          • First post
            Last post

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