xue-cheng / CFL3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DES-Enhanced CFL3D

Github访问受限请转到Gitee镜像,仅下载

CFL3D

CFL3D is a structured-grid, cell-centered, upwind-biased, Reynolds-averaged Navier-Stokes (RANS) code. It can be run in parallel on multiple grid zones with point-matched, patched, overset, or embedded connectivities. Both multigrid and mesh sequencing are available in time-accurate or steady-state modes.

The most up-to-date information can be found on the web at:

https://nasa.github.io/CFL3D/


Copyright 2001 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.

The CFL3D platform is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

编译说明

Linux

  • 编译工具
  • 编译步骤
    cd CFL3D
    mkdir build && cd build
    FC=ifort CC=icc CXX=icpc cmake ..
    make -j
    make install
  • CMake选项
    • -DCMAKE_BUILD_TYPE=[Release]|Debug|...:编译类型
    • -DCMAKE_INSTALL_PREFIX=/path/to/install:CFL3D的安装路径
    • -DSINGLE_PRECISION=ON|[OFF]:编译单/双精度版本,默认双精度
    • -DNO_REDIRECT=ON|[OFF]:采用cfl3d.inp作为输入文件,禁用管道重定向
    • -DWITH_FASTIO=[ON]|OFF:禁用并行输出
    • -DWITH_DELAUNAY=ON|[OFF]:编译Delaunay网格变形模块
    • -DHPC=ON == -DNO_REDIRECT=ON -DWITH_FASTIO=OFF
    • -DBUILD_*=ON|OFF:打开/关闭指定包的编译
      • SEQ 串行版本,[ON]
      • MPI 并行版本,[ON]
      • SPLITTER 分块工具,[ON]
      • PRECFL3D 输入检查,[ON]
      • RONNIE & PRERONNIE 搭接网格,[OFF]
      • MAGGIE 重叠网格,[OFF]
      • TOOLS 多种小工具,[ON]

Windows

可以通过WSL安装,参照Linux安装方法

特性

  1. 默认ifullns = 1,在2D中务必手动置零
  2. IDDES-SA 混合湍流模型
  3. 湍流模型分支/修正
  4. 收敛准则
  5. 阵风模型
  6. 非定常入口
  7. 壁面喷流边界条件 (BC2036)
  8. 基于Delaunay映射的网格变形

特别注意事项

  1. 如果出现错误forrtl: severe (174),说明栈空间溢出,执行 ulimit -s unlimited 以临时解除限制。管理员可以修改系统配置永久解除。
  2. 由于CFL3D代码的BUG,Delaunay映射与Finite Macro Elemnt在大规模问题中无法使用。因此从性能角度出发默认关闭了WITH_DELAUNAY并开启全局链接优化,全局链接优化耗时很长,请耐心等待。

About

License:Apache License 2.0


Languages

Language:Fortran 48.1%Language:C++ 43.2%Language:C 8.5%Language:CMake 0.1%Language:Python 0.0%Language:Shell 0.0%