求助如何在HPC Cluster上安装OF5.0
-
请教大家,我现在想在HPC cluster上安装Openfoam 5.0, 目前服务器上已经装有该版本,但是因为我要更改湍流模型,所以需要在当地的用户文件内重新安装该版本。Cluster上已经安装了module Gcc和MPI.
我在网上找到一些教程,不过都是2.x版本,所以可能不完全适用。 下面是主要的几个步骤,我在这里贴出来方便与OF5.0对比
1)
cp /cineca/prod/applications/openfoam/2.3.0-gnu-4.7.2/openmpi--1.6.3--gnu--4.7.2/OF_2.3.0_LOCAL_INSTALL_CINECA_PLX.tar .
tar -xf OF_2.3.0_LOCAL_INSTALL_CINECA_PLX.tar
rm OF_2.3.0_LOCAL_INSTALL_CINECA_PLX.tar
cd OF_2.3.0_LOCAL_INSTALL_CINECA_PLX
ls
OF_2.3.0_LOCAL_INSTALL_CINECA_PLX.sh PATCHES (新版本里并没有该配置文件,只有bashrc)- Execute the script to download, configure and install your local version of OpenFOAM:
./OF_2.3.0_LOCAL_INSTALL_CINECA_PLX.sh
The installation dir, in this case, is located in your $HOME space
FOAM_INST_DIR=$HOME/OpenFOAM
The OpenFOAM environment of the local installation is set in
$HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc - Load the environment of your local installation
module load gnu/4.7.2
module load openmpi/1.6.3--gnu--4.7.2
source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc
and you will have
$WM_PROJECT_VERSION=2.3.x
$FOAM_INST_DIR=/plx/userinternal/ispisso0/OpenFOAM
$WM_PROJECT_USER_DIR=/plx/userinternal/ispisso0/OpenFOAM/ispisso0-2.3.x
下面是我在cluster里找到的tar文件,该文件在OF的安装目录里:
5-0.tar.gz backup2.zig backup.zip bashrc OpenFOAM-5.0 (已编译好程序)
我主要有下面几点问题:
1) 这个tar.gz文件包我是否可以直接用它在我的用户文件夹里安装编译?
2)它有一个独立的bashrc文件,这个是否可以直接用来当配置文件?我看了一下里面发现他的WM_COMPILER=Icc,并不是Gcc
3)我是否可以按照上面的OF2.X编译步骤进行?还是有其他的步骤需要我考虑的?谢谢大家!!!最近被这个安装搞得焦头烂额的,希望能有人给我些建议~~~
- Execute the script to download, configure and install your local version of OpenFOAM: