1.6. Blade Server Installations

The possible requirements for the machine learning project on the blade servers:

Current purpose - re-run just the steady state case without optimisation. Only require:

1.6.1. Proposed Run Script

module load python/anaconda3
source activate py3

. $WM_PROJECT_DIR/bin/tools/RunFunctions

pyFoamClearCase.py . --processors-remove
/usr/local/Pointwise/PointwiseV18.0R2/pointwise -b Hydro_V18_wider.glf
rm -r 0
cp -r 0_orig 0
transformPoints -scale '(0.0254 0.0254 0.0254)'
renumberMesh -overwrite
cp system/controlDict_simple system/controlDict
runParallel potentialFoam
runParallel simpleFoam
reconstructPar -latestTime
pyFoamCopyLastToFirst.py . .
pyFoamClearCase.py . --processors-remove
cp system/controlDict_parcel system/controlDict
runParallel icoUncoupledKinematicParcelFoam

1.6.2. OS

uname -a
Linux cfd4 3.10.0-862.14.4.el7.x86_64 #1 SMP Tue Sep 25 14:32:52 CDT 2018 x86_64 x86_64 x86_64 GNU/Linux

1.6.3. Anaconda (Installed)

module load python/anaconda3
conda --version
conda 4.5.11

1.6.4. Python 3.x (Installed)

python -V
Python 3.5.4 :: Anaconda custom (64-bit)
  • Change to python 3 environment

conda search "^python$"
conda create –n py3 python=3.5.4 anaconda

Proceed ([y]/n)?

source activate py3

Can also remove conda environment (I didn’t do this)

conda remove -n py3 -all pyFoam 0.6.6 (Installed)

Python version: 2.7.5 (default, Jun 20 2019, 16:11:37)
pyFoam-Version: 0.6.10
  • (May have only been installed with Python 2.7.5)

pip install PyFoam==0.6.6
which pyFoamVersion.py
  • Alias to PyFoam version is not be needed as Python 3.5.4 environment is used Numpy (Installed as 1.14.0 with Python 3.5.4)

import numpy
print (numpy.__version__)
1.14.0 Matplotlib (Installed as 2.1.2 with Python 3.5.4)

import matplotlib
print (matplotlib.__version__)
2.1.2 scipy (Installed as 1.0.0 with Python 3.5.4)

import scipy
print (scipy.__version__)

1.6.5. OpenFOAM 4.x (OK)


1.6.6. Output of PATH

(OF:4.x) (py3) $ echo $PATH

1.6.7. Pointwise 18.0R1 (Installed as 18.0R2)

pointwise --help
  • No license, but can specify a license server and port

  • Looks like 18.0R2 is installed (require Pointwise18.0R1)

ls -ls /usr/local/Pointwise/
4 drwxr-xr-x 9 root root 4096 Jan 25  2017 PointwiseV18.0R2

Obtain from John Stone: pw-V18.0R1-linux_x86_64-jre.sh (Not Available Online)

sh pw-V18.0R1-linux_x86_64-jre.sh
/home/links/apr207/Pointwise/PointwiseV18.0R1 is installation directory
Run Pointwise
(Won't find license)
Specify license server
server: emps-pointwise
port: 2385

Add this to .bashrc:

# Pointwise alias for this version
alias pointwise="/home/links/apr207/Pointwise/PointwiseV18.0R1/pointwise"

1.6.10. Had to re-install OpenFOAM-4.x as OpenFOAM-4.x_blade_servers because lagrangian libraries are too complex

cp -rf OpenFOAM-4.x/ OpenFOAM-4.x_blade_servers

ln -s /usr/bin/mpicc.openmpi OpenFOAM-4.x_blade_servers/bin/mpicc ln -s /usr/bin/mpirun.openmpi OpenFOAM-4.x_blade_servers/bin/mpirun

source $HOME/OpenFOAM/OpenFOAM-4.x/etc/bashrc FOAMY_HEX_MESH=yes