-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
executable file
·130 lines (88 loc) · 4.87 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#--------------------------------------------------------------------------------------
Installation Instructions
#--------------------------------------------------------------------------------------
Copyright (C) 2010- Alexey Petrov
Copyright (C) 2009-2010 Pebble Bed Modular Reactor (Pty) Limited (PBMR)
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
#--------------------------------------------------------------------------------------
Pre-requisites
#--------------------------------------------------------------------------------------
"hybridFlu" is a OpenFOAM based interactive engineering environment requires the
following mandatory and optional pre-requisites.
* Make sure that confFlu is installed (tested with release 1.2-hybrid)
Can be found at http://sourceforge.net/projects/pythonflu.
Please follow instructions from corresponding INSTALL file to setup confFlu
in your environment.
* Make sure that OpenFOAM is installed (tested with versions 1.4.1-dev and 1.6).
Please follow instructions from corresponding INSTALL file to setup OpenFOAM
in your environment.
* Make sure that pythonFlu is installed (tested with release 8.2-hybrid)
Can be found at http://sourceforge.net/projects/pythonflu.
Please follow instructions from corresponding INSTALL file to setup pythonFlu
in your environment.
* Make sure that Python (developement version, with Python.h header file) is
installed (tested with 2.4, 2.6.2) with corresponding Tkinter package
Please follow instructions from http://www.python.org/ web-site.
* Make sure that IPython is installed (tested with releases 0.9.1 & 0.10)
Please follow instructions from http://www.ipython.scipy.org/ web-site.
* Install foam2vtk (optional)
Can be found at http://sourceforge.net/projects/pythonflu.
Please follow instructions from corresponding INSTALL file to setup foam2vtk
in your environment.
* Install unv2foam (optional)
Can be found at http://sourceforge.net/projects/pythonflu.
Please follow instructions from corresponding INSTALL file to setup unv2foam
in your environment.
* Install unv2foam (optional)
Can be found at http://sourceforge.net/projects/pythonflu.
Please follow instructions from corresponding INSTALL file to setup unv2foam
in your environment.
* Install icoFlux (optional)
Can be found at http://sourceforge.net/projects/pythonflu.
* Install Python Pmw library (optional) (tested with 1.3.2 )
Please follow instructions from http://www.pmw.sourceforge.net/ web-site.
Then follow below instructions in order to build and install the "hybridFlu".
#--------------------------------------------------------------------------------------
Basic Installation
#--------------------------------------------------------------------------------------
The build procedure of the "hybridFlu" package is based on GNU autoconf and make utilities.
In order to build the module you have to perform the following actions:
1. Go to the source directory:
cd <path to the sources>
2. Modify the provided "env.sh" file to adjust to your local environment.
<your favorite editor> ./env.sh
3. Source this "env.sh" file to define corresponding build environment.
source ./env.sh
4. Configuring the "hybridFlu" 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"
Currently, the following options are available:
--with-pythonFlu=<path>
--with-foam2vtk=<path>
--with-unv2foam=<path>
--with-foam2med=<path>
--with-foam2vtk=<path>
--with-unv2foam=<path>
#--------------------------------------------------------------------------------------
"hybridFlu" environment
#--------------------------------------------------------------------------------------
Before start to use "hybridFlu" it is necessary to source the generated "bashrc" file
#--------------------------------------------------------------------------------------
"hybridFlu" installation check
#--------------------------------------------------------------------------------------
Run the following "hybridFlu" script
./hybridFlu/examples/run_examples
#--------------------------------------------------------------------------------------