-
Notifications
You must be signed in to change notification settings - Fork 27
/
ANSYS-2023R1_install
executable file
·75 lines (67 loc) · 2.35 KB
/
ANSYS-2023R1_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
71
72
73
74
75
#!/usr/bin/env bash
###############################################
# Installing ANSYS 2023 R1
#
# September 2021
#
# Didn't work first time - I think the GUI installers need to be
# started from the dirtectories they are in.
#
# Updated March 2023 for ANSYS 2023 R1
NAME=${NAME:-ANSYS}
VERSION=${VERSION:-2023.R1}
INSTALL_PREFIX=${INSTALL_PREFIX:-/shared/ucl/apps/${NAME}/${VERSION}}
SRC_ARCHIVE=${SRC_ARCHIVE:-/shared/ucl/apps/ANSYS/installers/${VERSION}}
ELECTRONICS=${ELECTRONICS:-ELECTRONICS_2023R1_LINX64.tgz}
FLUIDSTRUCTURES=${FLUIDSTRUCTURES:-FLUIDSTRUCTURES_2023R1_LINX64.tgz}
PREPPOST=${PREPPOST:-PREPPOST_2023R1_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 -nochecks -silent -install_dir $INSTALL_PREFIX -licserverinfo 2325:1055:lic-ansys.ucl.ac.uk
# ./INSTALL
echo "PREPPOST ..."
cd ../PREPPOST
./INSTALL -nochecks -silent -install_dir $INSTALL_PREFIX -licserverinfo 2325:1055:lic-ansys.ucl.ac.uk
echo "ELECTRONICS ..."
cd ../ELECTRONICS/Electronics_231_linx64
echo "Couldn't get silent install to work so use GUI and:"
echo "Use: $INSTALL_PREFIX/AnsysEM as the install location for ELECTRONICS."
./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."