-
Notifications
You must be signed in to change notification settings - Fork 27
/
ANSYS-2021R2_install
executable file
·70 lines (62 loc) · 1.98 KB
/
ANSYS-2021R2_install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env bash
###############################################
# Installing ANSYS 2021 R2
#
# September 2021
#
# Didn't work first time - I think the GUI installers need to be
# started from the dirtectories they are in.
NAME=${NAME:-ANSYS}
VERSION=${VERSION:-2021.R2}
INSTALL_PREFIX=${INSTALL_PREFIX:-/shared/ucl/apps/${NAME}/${VERSION}}
SRC_ARCHIVE=${SRC_ARCHIVE:-/shared/ucl/apps/ANSYS/installers/${VERSION}}
ELECTRONICS=${ELECTRONICS:-ELECTRONICS_2021R2_LINX64.tgz}
FLUIDSTRUCTURES=${FLUIDSTRUCTURES:-FLUIDSTRUCTURES_2021R2_LINX64.tgz}
PREPPOST=${PREPPOST:-PREPPOST_2021R2_LINX64.tgz}
CFXNODES=${CFXNODES:-/shared/ucl/apps/build_scripts/files/ANSYS/cfxnodes}
CFXNODES_CS=${CFXNODES_CS:-/shared/ucl/apps/build_scripts/files/ANSYS/cfxnodes_cs}
# LICSERV=${LICSERV:[email protected]}
set -e
# Needs approx 60 GB to unpack so using ~/Scratch
archive_dir=~/Scratch/Software/ANSYS/installers/$VERSION
mkdir -p $archive_dir
cd $archive_dir
echo "Unpacking archives into $archive_dir ..."
mkdir -p ELECTRONICS
cd ELECTRONICS
tar -xvf ${SRC_ARCHIVE}/${ELECTRONICS}
cd ..
mkdir -p FLUIDSTRUCTURES
cd FLUIDSTRUCTURES
tar -xvf ${SRC_ARCHIVE}/${FLUIDSTRUCTURES}
cd ..
mkdir -p PREPPOST
cd PREPPOST
tar -xvf ${SRC_ARCHIVE}/${PREPPOST}
cd ..
echo "Archives unpacked."
mkdir -p ${INSTALL_PREFIX}/ucl/bin
echo ""
echo "Now run the following three GUI installers:"
echo ""
echo "`pwd`/FLUIDSTRUCTURES/INSTALL"
echo "`pwd`/PREPPOST/INSTALL"
echo "`pwd`/ELECTRONICS/Electronics_212_linx64/install"
echo ""
echo "Use: $INSTALL_PREFIX as the install location for FLUIDSTRUCTURES and PREPPOST."
echo "Use: $INSTALL_PREFIX/AnsysEM as the install location for ELECTRONICS."
echo ""
echo "FLUIDSTRUCTURES ..."
cd FLUIDSTRUCTURES
./INSTALL
echo "PREPPOST ..."
cd ../PREPPOST
./INSTALL
echo "ELECTRONICS ..."
cd ../ELECTRONICS/Electronics_212_linx64
./install
echo ""
echo "Installing UCL GE support scripts ..."
cp $CFXNODES ${INSTALL_PREFIX}/ucl/bin/cfxnodes
cp $CFXNODES_CS ${INSTALL_PREFIX}/ucl/bin/cfxnodes_cs
echo "Finished."