cd /path/to/OpenFOAM wget https://dl.openfoam.com/source/v2206/OpenFOAM-v2206.tgz wget https://dl.openfoam.com/source/v2206/ThirdParty-v2206.tgz tar -xvf OpenFOAM-v2206.tgz tar -xvf ThirdParty.v2206.tgz
source OpenFOAM-v2206/etc/bashrc
此处会输出以下警告,忽视即可:
No comletions for /path/to/OpenFOAM/OpenFOAM-v2206/platorms/linuxARM64gGccDPInt320pt/bin/
[ignore if OpenFOAM is not yet compiled]
foamSystemCheck
结果输出“System check: PASS, Can continue to OpenFOMA installation.”,即可进行后续OpenFOAM安装。
./OpenFOAM-v2206/Allwmake -j -s -q -l
这将使用所有内核(-j)、减少的输出(-s、-silent)、排队(-q、-queue)和日志(-l、-log)将输出记录到一个文件(e.g.log.linux64GccDPInt32Opt)中,例如用于以后的检查。
foamTestTutorial -full incompressible/simpleFoam/pitzDaily
结果回显如下,出现图中信息则为运行成功。