运行和验证

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 下载测试算例包“su2code.github.io-master.zip”

    SU2 6.X.X 版本与 7.X.X版本用例配置文件参数改动较大,需要在对应源码包中获取相应版本算例配置文件。

  3. 使用SFTP工具将SU2测试算例包上传至服务器“/path/to/CASE”目录。
  4. 执行以下命令解压算例包。

    unzip su2code.github.io-master.zip

  5. 执行以下命令进入解压算例包。

    cd su2code.github.io-master

  6. 执行以下命令创建“testcase”文件夹。

    mkdir testcase

  7. 执行以下命令复制“testcase”文件夹重命名为“Inviscid_Bump”

    cd testcase
    cp -rf /path/to/CASE/su2code.github.io-master/testcase /Inviscid_Bump

  8. 执行以下命令进入“Inviscid_Bump”算例包中。

    cd ../Inviscid_Bump

  9. 执行以下命令运行SU2。

    mpirun --allow-run-as-root -np 16 SU2_CFD inv_channel.cfg

    输出的结果示例如下所示。

    ----------------------- Residual Evolution Summary ----------------------
    log10[Maximum residual]: -7.391.
    Maximum residual point 511, located at (3, 0.003).
    -------------------------------------------------------------------------
     Iter    Time(s)     Res[Rho]     Res[RhoE]      CL(Total)      CD(Total)
      600   0.087015    -9.260167     -3.862403       0.000291       0.000007
      601   0.087013    -9.271532     -3.873152       0.000291       0.000007
      602   0.087011    -9.282237     -3.883903       0.000291       0.000007
      603   0.087010    -9.293729     -3.894743       0.000291       0.000007
      604   0.087008    -9.305008     -3.905581       0.000291       0.000007
      605   0.087006    -9.316490     -3.916410       0.000291       0.000007
      606   0.087006    -9.327466     -3.927381       0.000291       0.000007
      607   0.087004    -9.338974     -3.938270       0.000291       0.000007
      608   0.087002    -9.350370     -3.949267       0.000291       0.000007
      609   0.087000    -9.361588     -3.960211       0.000291       0.000007
      610   0.086998    -9.373061     -3.971327       0.000291       0.000007
      611   0.086997    -9.384581     -3.982358       0.000291       0.000007
    -------------------------- File Output Summary --------------------------
    Writing comma-separated values (CSV) surface files.
    Loading solution output data locally on each rank.
    Sorting output data across all ranks.
    Writing binary SU2 native restart file.
    -------------------------------------------------------------------------
    ------------------------- Solver Postprocessing -------------------------
    Deleted CNumerics container.
    Deleted CIntegration container.
    Deleted CSolver container.
    Deleted CIteration container.
    Deleted CInterpolator container.
    Deleted CTransfer container.
    Deleted CGeometry container.
    Deleted CFreeFormDefBox class.
    Deleted CSurfaceMovement class.
    Deleted CVolumetricMovement class.
    Deleted CConfig container.
    Deleted COutput class.
    -------------------------------------------------------------------------
    Completed in 53.260358 seconds on 16 cores.
    ------------------------- Exit Success (SU2_CFD) ------------------------