OpenFOAM基础应用以及代码解读 扫二维码继续学习

免费

2.openfoam的求解器和库函数的介绍

查看快捷方式的定义

vim etc/config/aliases.sh

 

环境变量的具体地址:
echo  $FOAM_SRC

test文件对于openfoam自带的库函数进行测试

创建run文件:

放置定制求解器和算例

mkdir -p $FOAM_RUN

2.1求解器

tree -L 2

basic 基本求解器

combustion

compressible

incompressible

multiphase

heat transer

Stress Analysis

2.2 src(库函数)  所有的求解器

tree -L 2

ODE

dynamicFvMesh

postProcessing

transportModels

sixDoFRigidBodyMotion

TurbulenceModels

FiniteVolume

2.3 tut(算例)

2.4util(工具)

2.5 Wmake

wmake(用于自定义求解器,进行自定义求解器的编译)

wclean  (进行删除)

将算例拷到run文件夹下:

cp - $FOAM_TUTORIALS/incompressible/icoFoam/cavity . -r

 

blockesh

icoFoam

paraFoam

[展开全文]

mkdir -p $FOAM_RUN

General intro on the solvers

-basic

   -potentialFoam:solve the velocity potential

  -laplacianFoam:solve the Laplacian equation for diffusiom process

  -scalarTransportFoam:solve the transport equation for prassive scalar 

-combustion

-compressible 

  -rhoSimpleFoam :compressible+simpleFoam

  -rhoPimpleFoam:compressoble+pimpleFoam

  -rhoPorousSimpleFoam:compressoble+PorousSimpleFoam

 

 

 

 

[展开全文]
点击这里给我发消息