Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    关于externalCoupled的应用求教,希望能够输出网格内部面的流速,用以与其他算法耦合。

    OpenFOAM
    1
    2
    104
    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.
    • V
      vien锁 last edited by

      我在尝试通过externalCoupled进行耦合计算,利用externalCoupled输出网格patch的流速并与其他算法耦合。但我并不会在openFOAM的网格中建立内部面,尝试建立了循环边界,但是由于边界类型是cyclic而不是patch,无法用externalCoupled进行输出控制。

      希望各位能够给予指点,感谢您的宝贵时间。

      // Control for external coupled simulation
      externalCoupled
      {
      // Mandatory entries
      type            externalCoupled;
      libs            (fieldFunctionObjects);
      
      // Directory to use for communication
      commsDir        "<case>/comms";
      
      // Does external process start first
      // initByExternal  true;
      initByExternal  false;
      
      regions
      {
          // Region name (wildcards allowed)
          ".*"
          {
              // Patch or patchGroup
              outlet
              {
                  // Fields to output in commsDir
                  writeFields (U);
      			
                  // Fields to read from commsDir
                  readFields  ();
              }
      		
      	cyclicFaces_master
              {
                  // Fields to output in commsDir
                  writeFields (U);
      
                  // Fields to read from commsDir
                  readFields  ();
              }
      		
      		
          }
      }
      
      // Enabled or not?
      #sinclude "<case>/externalCoupled.control"
      
      // Optional entries
      waitInterval        5;
      timeOut             12000;
      statusDone          done;  // Any arbitrary status=... value
      calcFrequency       1000; //必须大于1
      
      1 Reply Last reply Reply Quote
      • V
        vien锁 last edited by

        我希望能够在计算域中创建一个内部面,仅用来导出数据,不知道有什么方便的方法没有。用fluent网格导入后,内部面直接消失了。

        1 Reply Last reply Reply Quote
        • First post
          Last post

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