CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    source term only in boundary cell.

    OpenFOAM
    1
    2
    369
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • K
      kimy 最后由 李东岳 编辑

      Hi guys,

      I defined a Uw which has the same size of the total cell numbers to save the velocity only in the boundary cell. Due to the fact that the source term I need to use is Uw times the area of corresponding wall. Thus, I defined a patchArea (patchArea[faceI] = mesh.magSf().boundaryField()[patchID][faceI];) used to save that area. Note that the size of patchArea is also same as Uw, however the index is not corresponding to each other. Is there a way to rearrange the order of patchArea, to make the index consistent with Uw? I uploaded a output log file here, as you can see, the index with a non-zero value in Uw means the wall cell index. But the order in patchArea needs to be modified

      1 条回复 最后回复 回复 引用
      • K
        kimy 最后由 编辑

        Already solved.

        1 条回复 最后回复 回复 引用
        • First post
          Last post