OpenFoam——环境变量及基本命令
一、环境变量
src = ‘cd $FOAM_SRC’
lib = ‘cd $FOAM_LIBBIN’
app = ‘cd $FOAM_APP’
sol = ‘cd $FOAM_SOLVERS’
util = ‘cd $FOAM_UTILITIES’
tut = ‘cd $FOAM_TUTORIALS’
run = ‘cd $FOAM_RUN’
二、基本命令
1、进入openfoam目录
foam
2、进入src目录
src
3、显示该目录下的文件
ls
4、显示环境变量的地址
echo $FOAM_SRC
5、创建run文件夹用于存储算例,或者自己写的库
mkdir -p $FOAM_RUN
这时会在OpenFOAM文件夹下创建一个bql-9/run文件夹
6、进入run文件夹
run
7、复制案例至文件夹run
cp -r $FOAM_TUTORIALS $FOAM_RUN