forked from smenon/dynamicTopoFvMesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install.txt
74 lines (46 loc) · 2.29 KB
/
Install.txt
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
Installation instructions:
-------------------------
Pre-installation steps:
1. Ensure that OpenFOAM is installed and properly configured.
2. Configure and install Mesquite.
- Obtain the sources from:
http://www.cs.sandia.gov/~web1400/1400_download.html
- Assuming that Mesquite is to be installed in $WM_THIRD_PARTY_DIR,
define the following environment variables:
In Bash: export MESQUITE_DIR=$WM_THIRD_PARTY_DIR/mesquite-x.x.x
In Csh: setenv MESQUITE_DIR $WM_THIRD_PARTY_DIR/mesquite-x.x.x
where x.x.x is the appropriate version on Mesquite.
- Follow installation instructions and compile Mesquite. The following
configuration is known to work:
./configure \
--prefix=$MESQUITE_DIR \
--enable-release \
--disable-debug-assertions \
--disable-igeom \
--disable-imesh \
--disable-irel \
--enable-shared \
--without-cppunit \
--enable-trap-fpe \
--disable-function-timers
Once configured, proceed with 'make' and 'make install'
- Set the Mesquite library directory, based on architecture:
In Bash: export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib
In Csh: setenv MESQUITE_LIB_DIR $MESQUITE_DIR/lib
for 64-bit:
In Bash: export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib64
In Csh: setenv MESQUITE_LIB_DIR $MESQUITE_DIR/lib64
Repository check-out and installation:
1. Checkout the repository contents to an appropriate location on disk:
git clone https://github.com/smenon/dynamicTopoFvMesh <check-out directory>
or, if you're having trouble with the https protocol,
you can alternatively do it through SSH:
git clone [email protected]:smenon/dynamicTopoFvMesh <check-out directory>
2. Go to the checked-out directory and type:
./Allwmake
3. This will build the relevant libraries / executables, and place them in
$FOAM_USER_LIBBIN / $FOAM_USER_APPBIN.
Usage:
1. To use the libraries, add the following lines in your dynamicMeshDict:
dynamicFvMeshLibs ("libdynamicTopoFvMesh.so");
motionSolverLibs ("libmesquiteMotionSolver.so");