CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    自定义函数求助

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

      刚开始top边界条件为zeroGradient,后来改成了symmetry,报以下错误,,请问怎么修改文件呢

      --> FOAM FATAL IO ERROR: 
      
          Cannot find 'value' entry on patch top of field p in file "/home/zc7565/work/yz/mc/0/p"
          which is required to set the values of the generic patch field.
          (Actual type symmetry)
      
          Please add the 'value' entry to the write function of the user-defined boundary-condition
          or link the boundary-condition into libfoamUtil.so
      
      file: /home/zc7565/work/yz/mc/0/p::boundaryField::top from line 49 to line 49.
      
          From function genericFvPatchField<Type>::genericFvPatchField(const fvPatch&, const Field<Type>&, const dictionary&)
          in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 71.
      
      

      世界那么大,怎能不去看看

      1 条回复 最后回复 回复 引用
      • 红豆沙
        红豆沙 最后由 编辑

        问题 稍微解决,,将symmetry边界换成wall边界,使用zeroGradient 可以算了,,先算 再看

        世界那么大,怎能不去看看

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