-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
100 lines (68 loc) · 3.65 KB
/
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#--------------------------------------------------------------------------------------
Installation Instructions
#--------------------------------------------------------------------------------------
# managedFlu - OpenFOAM C++ interactive functionality API
# Copyright (C) 2011- Alexey Petrov
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# See http://sourceforge.net/projects/pythonflu
#
# Author : Alexey PETROV, Andrey Simurzin
#---------------------------------------------------------------------------
Pre-requisites
#--------------------------------------------------------------------------------------
"managedFlu" requires the following mandatory and optional pre-requisites.
* Make sure that confFlu (common configuration package) is installed (tested with release 2.0-porting)
Can be found at http://sourceforge.net/projects/pythonflu/files.
Please follow instructions from corresponding INSTALL file to setup confFlu
in your environment.
* Make sure that OpenFOAM is installed (tested with 1.6-ext, 2.0.0, 2.0.1 and 2.1.0 versions).
Please follow instructions from corresponding INSTALL file to setup OpenFOAM in your environment.
* Make sure that Boost C++ libraries is installed (tested with 1.40 - 1.48 versions).
Please follow instructions from corresponding INSTALL file to setup Boost C++ libraries in your environment.
Then follow the instructions below in order to build and install the "managedFlu".
#--------------------------------------------------------------------------------------
Basic Installation
#--------------------------------------------------------------------------------------
The build procedure of the "managedFlu" package is based on GNU autoconf and make utilities.
In order to build the module you have to perform the following actions:
1. Start a new shell session (to ensure a clear environment).
2. Go to the source directory:
cd <path to the sources>
3. Copy the provided "env.sh.example" file to "env.sh" and adjust to your local environment.
<your favorite editor> ./env.sh
4. Source this "env.sh" file to define the corresponding build environment.
source ./env.sh
5. Configuring the build system:
./build_configure
./configure
Make sure that after each configuration step the "--- OK ---" message is
printed in your console.
To see all applicable configuration options run "./configure --help"
6. Build and install "managedFlu":
make
sudo bash -c "source ./bashrc && make install"
(use "make clean" command to cleanup the build folder)
7. Uninstall "managedFlu":
sudo bash -c "source ./bashrc && make uninstall"
#--------------------------------------------------------------------------------------
Environment
#--------------------------------------------------------------------------------------
For using managedFlu source OpenFOAM enviroment itself
# For OpenCFD's OpenFOAM-2.1.0
source /opt/openfoam210/etc/bashrc
# For Extended's OpenFOAM-1.6
source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc
#--------------------------------------------------------------------------------------