1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.2.7" />
7 <style type=
"text/css">
9 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
11 border: 1px solid red;
16 margin: 1em 5% 1em 5%;
21 text-decoration: underline
;
41 h1
, h2
, h3
, h4
, h5
, h6
{
43 font-family: sans-serif
;
50 border-bottom: 2px solid silver
;
68 border: 1px solid silver
;
87 font-family: sans-serif
;
94 font-family: sans-serif
;
98 font-family: sans-serif
;
100 border-top: 2px solid silver
;
106 padding-bottom: 0.5em;
110 padding-bottom: 0.5em;
114 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
115 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
116 div
.admonitionblock
{
119 margin-bottom: 1.5em;
121 div
.admonitionblock
{
123 margin-bottom: 2.5em;
126 div
.content
{ /* Block element content. */
130 /* Block element titles. */
131 div
.title
, caption
.title
{
133 font-family: sans-serif
;
137 margin-bottom: 0.5em;
143 td div
.title:first-child
{
146 div
.content div
.title:first-child
{
149 div
.content
+ div
.title
{
153 div
.sidebarblock
> div
.content
{
155 border: 1px solid silver
;
162 div
.listingblock
> div
.content
{
163 border: 1px solid silver
;
171 div
.quoteblock
> div
.attribution
{
179 div
.verseblock
> div
.content
{
182 div
.verseblock
> div
.attribution
{
186 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
187 div
.verseblock
+ div
.attribution
{
191 div
.admonitionblock
.icon
{
195 text-decoration: underline
;
197 padding-right: 0.5em;
199 div
.admonitionblock td
.content
{
201 border-left: 2px solid silver
;
204 div
.exampleblock
> div
.content
{
205 border-left: 2px solid silver
;
209 div
.imageblock div
.content
{ padding-left: 0; }
210 div
.imageblock img
{ border: 1px solid silver
; }
211 span
.image img
{ border-style: none
; }
215 margin-bottom: 0.8em;
227 list-style-position: outside
;
230 list-style-type: decimal
;
233 list-style-type: lower-alpha
;
236 div
.tableblock
> table
{
237 border: 3px solid
#527bbd;
240 font-family: sans-serif
;
249 margin-bottom: 0.8em;
252 padding-bottom: 15px;
257 padding-right: 0.8em;
264 div#footer-badges
{ display: none
; }
269 font-family: sans-serif
;
273 margin-bottom: 0.1em;
276 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
292 /* Workarounds for IE6's broken and incomplete CSS2. */
294 div
.sidebar-content
{
296 border: 1px solid silver
;
299 div
.sidebar-title
, div
.image-title
{
301 font-family: sans-serif
;
304 margin-bottom: 0.5em;
307 div
.listingblock div
.content
{
308 border: 1px solid silver
;
313 div
.quoteblock-attribution
{
318 div
.verseblock-content
{
321 div
.verseblock-attribution
{
326 div
.exampleblock-content
{
327 border-left: 2px solid silver
;
331 /* IE6 sets dynamically generated links as visited. */
332 div#toc
a:visited
{ color: blue
; }
334 /* Because IE6 child selector is broken. */
336 list-style-type: lower-alpha
;
338 div
.olist2 div
.olist ol
{
339 list-style-type: decimal
;
342 <title>FreeFOAM README for version
1.5.0-
1</title>
346 <h1>FreeFOAM README for version
1.5.0-
1</h1>
347 <span id=
"author">MichaelWild
</span><br />
348 <span id=
"email"><tt><<a href=
"mailto:themiwi@users.sourceforge.net">themiwi@users.sourceforge.net
</a>></tt></span><br />
349 <span id=
"revision">version
1.5.0-
0,
</span>
353 <div class=
"sectionbody">
354 <div class=
"para"><p><a href=
"http://freefoam.sourceforge.net">http://freefoam.sourceforge.net
</a></p></div>
357 <h2 id=
"_copyright">1. Copyright
</h2>
358 <div class=
"sectionbody">
359 <div class=
"para"><p>FreeFOAM is free software; you can redistribute it and/or modify it under the
360 terms of the GNU General Public License as published by the Free Software
361 Foundation; either version
2 of the License, or (at your option) any later
362 version. See the file COPYING in this directory, for a description of the GNU
363 General Public License terms under which you can copy the files.
</p></div>
365 <h2 id=
"_system_requirements">2. System requirements
</h2>
366 <div class=
"sectionbody">
367 <div class=
"para"><p>FreeFOAM is developed and tested on Linux, but should work with other Unix
368 style systems. With some additional patching it will also work under
369 Mac OS X. The support for Microsoft Windows is a goal, which, however, is
370 still far off.
</p></div>
371 <h3 id=
"_required_software_to_build_freefoam">2.1. Required software to build FreeFOAM
</h3><div style=
"clear:left"></div>
372 <div class=
"vlist"><dl>
378 Currently you need git to obtain the FreeFOAM source code.
<a href=
"http://git.or.cz">http://git.or.cz
</a>
386 In order to build FreeFOAM you need to have CMake with version
2.6.2 or
387 newer installed.
<a href=
"http://cmake.org">http://cmake.org
</a>
395 CMake requires a native build system. On Unix like platforms I recomment
396 using GNU Make.
<a href=
"http://www.gnu.org/software/make">http://www.gnu.org/software/make
</a>
404 In order to build FreeFOAM you need a C++ compiler with good support for
405 template expressions. The g++ compiler from GCC-
4.3 and above will do
406 fine.
<a href=
"http://gcc.gnu.org">http://gcc.gnu.org
</a>
414 The flex lexer generator. Version
2.5.33 is known to work. For more recent
415 versions there have been reports of problems.
<a href=
"http://flex.sourceforge.net">http://flex.sourceforge.net
</a>
423 zlib compression library.
<a href=
"http://www.zlib.net">http://www.zlib.net
</a>
431 The METIS graph partitioning library, version
5.0pre2. If your package manager
432 doesn't contain it, you can also have FreeFOAM build it automatically for you
433 (see the installation section).
<a href=
"http://glaros.dtc.umn.edu/gkhome/metis/metis/overview">http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
</a>
441 MGridGen grid coarsening library. FreeFOAM can build this automatically for
442 you (refer to the installation notes below).
443 <a href=
"http://glaros.dtc.umn.edu/gkhome/mgridgen/overview">http://glaros.dtc.umn.edu/gkhome/mgridgen/overview
</a>
451 pro-STAR input/output library. FreeFOAM can build this automatically for
452 you (refer to the installation notes below).
453 <a href=
"https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz">https://wci.llnl.gov/codes/visit/
3rd_party/libccmio-
2.6.1.tar.gz
</a>
457 <h3 id=
"_optional_software">2.2. Optional software
</h3><div style=
"clear:left"></div>
458 <div class=
"vlist"><dl>
464 In order to run FreeFOAM in parallel, a communications library is required.
465 The following list gives an overview of the available options.
467 <div class=
"ilist"><ul>
470 MPI (
<em>Message Passing Interface
</em>): There are many implementations of the MPI
471 standard. The one that has been tested and is known to work with FreeFOAM
472 is
<a href=
"http://www.open-mpi.org">OpenMPI
</a>.
477 PVM (
<em>Parallel Virtual Machine
</em>) is available from
<a href=
"http://www.csm.ornl.gov/pvm">http://www.csm.ornl.gov/pvm
</a>.
482 GAMMA (
<em>Genoa Active Message MAchine
</em>) is available from
<a href=
"http://www.disi.unige.it/project/gamma">http://www.disi.unige.it/project/gamma
</a>.
492 If you use an MPI library, the ParMetis library is required. If your package
493 manager doesn't contain this library, FreeFOAM can build it automatically for
494 you (refer to the installation notes below).
495 <a href=
"http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview">http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview
</a>
503 If you want to build the
<a href=
"http://paraview.org">ParaView
</a> plugins, you need a
504 ParaView with the development headers
<strong>and
</strong> the corresponding CMake configuration
505 files (ParaViewConfig.cmake, ParaViewUse.cmake, ParaViewLibraryDepends*.cmake).
506 Most likely this means that you have to build ParaView yourself.
507 <a href=
"http://paraview.org">http://paraview.org
</a>
515 Some of the provided tutorial cases require the M4 macro processor.
516 <a href=
"http://www.gnu.org/software/m4/">http://www.gnu.org/software/m4/
</a>
521 <h2 id=
"_installation">3. Installation
</h2>
522 <div class=
"sectionbody">
523 <div class=
"para"><p>This section needs serious expanding, but the short version is:
</p></div>
524 <div class=
"ilist"><ul>
527 Install the prerequisites. If your distribution does not have
528 METIS, ParMetis, MGridGen or libccmio be not worried, FreeFOAM
529 can handle those for you.
534 Clone the FreeFOAM repository (here the clone is placed in $HOME/Source/FreeFOAM):
536 <div class=
"listingblock">
537 <div class=
"content">
538 <pre><tt>$ mkdir -p $HOME/Source
539 $ git clone git://repo.or.cz/freefoam.git $HOME/Source/FreeFOAM
540 $ cd $HOME/Source/FreeFOAM
</tt></pre>
545 Create a build tree and
<em>cd
</em> into it:
547 <div class=
"listingblock">
548 <div class=
"content">
549 <pre><tt>$ mkdir build
550 $ cd build
</tt></pre>
555 Start CMake-configuration:
557 <div class=
"listingblock">
558 <div class=
"content">
559 <pre><tt>$ ccmake ..
</tt></pre>
564 Press the
<tt>c
</tt> key. Use the arrow keys to navigate up and down and press
<tt>enter
</tt> to
565 edit a field. To commit the change, press
<tt>enter
</tt> again, or
<tt>ESC
</tt> to abandon the change.
566 ON/OFF fields are toggled by pressing
<tt>enter
</tt>.
568 <div class=
"ilist"><ul>
571 Set
<tt>CMAKE_BUILD_TYPE
</tt> to
<tt>Release
</tt> for an optimized build.
576 If CMake complains that it can't find MPI, and you don't want to install it, disable
577 <tt>FF_USE_MPI
</tt>. If, instead, you want to use GAMMA or PVM, enable
<tt>FF_USE_GAMMA
</tt> or
578 <tt>FF_USE_PVM
</tt>, respectively. You can also enable more than one of the options.
580 <div class=
"admonitionblock">
583 <div class=
"title">Note
</div>
585 <td class=
"content">Currently only MPI and the dummy implementation are available.
</td>
591 Select the default Pstream implementation by setting
<tt>FF_DEFAULT_PSTREAM
</tt>
592 by setting it to one of
<tt>dummy
</tt>,
<tt>mpi
</tt>,
<tt>pvm
</tt> or
<tt>gamma
</tt>. This setting
593 will only influence the contents of the global controlDict file.
598 If CMake told you it couldn't find ParaView:
600 <div class=
"olist"><ol>
603 Set
<tt>ParaView_DIR
</tt> to the path of the ParaView build directory if you have it.
608 If you do not want to build the ParaView plugins, disable
<tt>FF_BUILD_PARAVIEW_PLUGINS
</tt>
615 If you do not have METIS, ParMetis, MGridGen or libccmio installed, enable
616 <tt>FF_BUILD_PRIVATE_METIS
</tt>,
<tt>FF_BUILD_PRIVATE_PARMETIS
</tt>,
<tt>FF_BUILD_PRIVATE_PARMGRIDGEN
</tt> or
617 <tt>FF_BUILD_PRIVATE_CCMIO
</tt> respectively. CMake will then try to download and build
618 the selected libraries for you. Conversely, if you one of the libraries is provided
619 by your system, you can turn the respective setting to
<tt>OFF
</tt>. Please note that if
620 you system provides only
<tt>ParMetis
</tt>, you do not have to install
<tt>METIS
</tt>, as the
621 former also contains
<tt>METIS
</tt>.
626 If you plan on installing FreeFOAM, set
<tt>CMAKE_INSTALL_PREFIX
</tt> to the base directory
627 under which FreeFOAM should reside.
632 For more fine-grained control over what gets installed where, adjust
633 <tt>FF_INSTALL_CONFIG_PATH
</tt>,
<tt>FF_INSTALL_HEADER_PATH
</tt>,
<tt>FF_INSTALL_LIB_PATH
</tt>,
634 <tt>FF_INSTALL_FRAMEWORK_PATH
</tt>,
<tt>FF_INSTALL_PV3FOAMREADER_PATH
</tt>,
635 <tt>FF_INSTALL_PVFOAMREADER_PATH
</tt> and
<tt>FF_INSTALL_USERDFOAM_PATH
</tt>.
640 If you want FreeFOAM to use
<tt>float
</tt> as the floating point type instead of
641 <tt>double
</tt>, change
<tt>FF_DOUBLE_PRECISION
</tt> to
<tt>OFF
</tt>.
648 Hit the
<tt>c
</tt> key again. If you enabled
<tt>FF_BUILD_PRIVATE_CCMIO
</tt>, CMake will fail
649 to download
<a href=
"https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz">https://wci.llnl.gov/codes/visit/
3rd_party/libccmio-
2.6.1.tar.gz
</a>.
650 Please follow the instructions in the error message on how to work around this
651 problem, or download the file manually and place it in
<tt>ThirdParty/ccmio/
</tt>
652 (relative to the build directory). Then hit
<tt>c
</tt> again.
657 You shouldn't get any errors anymore now. Keep pressing
<tt>c
</tt> until
658 the ccmake displays
"<tt>Press [g] to generate and exit</tt>" in the legend at
659 the bottom of the interface.
664 Press
<tt>g
</tt> to generate the Makefiles and exit the ccmake interface.
669 Start the native build tool. If you used the
<tt>Makefile
</tt> generator
670 (which is the default for Unix-platforms), type
672 <div class=
"listingblock">
673 <div class=
"content">
674 <pre><tt>$ make
</tt></pre>
679 If you have a multi-core/processor machine, you can speed things up
680 significantly by telling Make to run independent jobs in parallel.
681 A good choice for the number of parallel jobs to run is the
682 number of CPU's/cores you have in your machine plus
1 (to compensate
683 for disk-latency). For a typical dual-core machine, run
685 <div class=
"listingblock">
686 <div class=
"content">
687 <pre><tt>$ make -j3
</tt></pre>
692 If you want to, you can now install FreeFOAM (depending on the
693 <tt>CMAKE_INSTALL_PREFIX
</tt> and the individual
<tt>FF_INSTALL_*_PATH
</tt>
694 it is possible that you have to do this as root, i.e. use
695 <tt>su
</tt> or
<tt>sudo
</tt>). However, this is optional and hasn't been
696 tested thoroughly, so you might overwrite some important files
699 <div class=
"listingblock">
700 <div class=
"content">
701 <pre><tt>$ make install
</tt></pre>
705 <h3 id=
"_using_freefoam">3.1. Using FreeFOAM
</h3><div style=
"clear:left"></div>
706 <div class=
"ilist"><ul>
709 Make sure that your shell can find the FreeFOAM executables. If you want
710 to run FreeFOAM from the build tree (i.e. without installing), append
711 <tt><build_dir
>/bin
</tt> to your
<tt>PATH
</tt> variable:
713 <div class=
"listingblock">
714 <div class=
"content">
715 <pre><tt>$ export PATH=$PATH:$HOME/Source/FreeFOAM/build/bin
</tt></pre>
717 <div class=
"para"><p>This assumes that your build directory is
<tt>$HOME/Source/FreeFOAM/build
</tt>,
718 which should be the case if you followed above instructions. If it isn't,
719 you will have to adjust above command appropriately.
</p></div>
723 On some systems it might be necessary to adjust the library search
724 path (although CMake should have taken care of this by using
<tt>RPATH
</tt>
725 on Linux and
<tt>install_name
</tt> on Mac OS X):
727 <div class=
"listingblock">
728 <div class=
"content">
729 <pre><tt>$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Source/FreeFOAM/build/lib/FreeFOAM-
1.5.0</tt></pre>
731 <div class=
"para"><p>Again, this is assuming that your build tree is in
<tt>$HOME/Source/FreeFOAM/build
</tt>.
</p></div>
735 Unfortunately the OpenFOAM library (on which FreeFOAM builds) and some
736 applications require some files to be present for start-up. It finds those
737 in the following places (in the specified order, picking the first hit):
739 <div class=
"olist"><ol>
742 Under the directory specified in the
<em>$FREEFOAM_CONFIG_DIR
</em> environment variable
747 In
<em>$HOME/.FreeFOAM/
1.5.0-
0</em>
752 In
<em>$HOME/.FreeFOAM
</em>
757 In
<em><prefix
>/
<FF_INSTALL_CONFIG_PATH
></em>, where
<em><prefix
></em> is the
758 installation prefix and
<em><FF_INSTALL_CONFIG_PATH
></em> is the value you
759 specified for the
<em>FF_INSTALL_CONFIG_PATH
</em> property when configuring
760 FreeFOAM using ccmake. The former defaults to
<em>/usr/local
</em>, the latter
761 to
<em>etc/FreeFOAM-
1.5.0</em>.
765 <div class=
"para"><p>So, if you want to run FreeFOAM from the build tree (i.e. without running
766 <tt>make install
</tt>), you have the option to place the files under your home directory
767 or set an environment variable. The former can be achieved by:
</p></div>
768 <div class=
"listingblock">
769 <div class=
"content">
770 <pre><tt>$ mkdir -p $HOME/.FreeFOAM/
1.5.0-
0
771 $ cp $HOME/Source/FreeFOAM/etc/controlDict $HOME/.FreeFOAM/
1.5.0-
0
772 $ cp $HOME/Source/FreeFOAM/etc/cellModels $HOME/.FreeFOAM/
1.5.0-
0
773 $ cp -r $HOME/Source/FreeFOAM/etc/thermoData $HOME/.FreeFOAM/
1.5.0-
0</tt></pre>
775 <div class=
"para"><p>Or, if you prefer setting the environment variable:
</p></div>
776 <div class=
"listingblock">
777 <div class=
"content">
778 <pre><tt>$ export FREEFOAM_CONFIG_DIR=$HOME/Source/FreeFOAM/etc
</tt></pre>
780 <div class=
"para"><p>Notice that this time
<em>$HOME/Source/FreeFOAM
</em> refers to the
781 root of the source tree, i.e. where your clone of the FreeFOAM
782 repository is. Adjust it to your actual setup.
</p></div>
786 Both, FreeFOAM and OpenFOAM abstract the parallel operations into
787 the
<tt>Pstream
</tt> library, making it firstly rather simple to switch between
788 parallel implementations and secondly to port the software to a new
789 communications library. However, FreeFOAM uses a much more flexible
790 mechanism of determining which
<tt>Pstream
</tt> implementation library to
791 load than OpenFOAM. The latter did this by adjusting the
<tt>LD_LIBRARY_PATH
</tt>.
792 As FreeFOAM wants to be a well behaved Linux citizen, this is not an
793 option. Instead, FreeFOAM dynamically loads the desired
<tt>Pstream
</tt>
794 library at startup. The following list details how FreeFOAM determines
795 what library to load (if at all):
797 <div class=
"olist"><ol>
800 If the environment variable
<tt>FREEFOAM_PSTREAM_LIBRARY
</tt> is set,
801 FreeFOAM will try to load the library specified in the value of
807 If the sub-dictionary
<tt>PstreamImplementation
</tt> exists in the global
808 <tt>controlDict
</tt> file (see above), it reads the value of the entry
809 <tt>configName
</tt> therein. It then expects that a sub-dictionary of
810 <tt>PstreamImplementation
</tt> with the name specified in
<tt>configName
</tt>
811 exists. If that sub-dictionary contains the entry
<tt>library
</tt>,
812 it will try to load a library spedified by the value of that
817 <div class=
"para"><p>After FreeFOAM (possibly) loaded the library, it will try to instantiate
818 concrete implementations of the abstract base classes
<tt>PstreamImpl
</tt>,
819 <tt>IPstreamImpl
</tt> and
<tt>OPstreamImpl
</tt>. Which classes are to be instantiated
820 is determined as follows:
</p></div>
821 <div class=
"olist"><ol>
824 FreeFOAM queries the environment variables
<tt>FREEFOAM_PSTREAM_CLASS
</tt>,
825 <tt>FREEFOAM_IPSTREAM_CLASS
</tt> and
<tt>FREEFOAM_OPSTREAM_CLASS
</tt> for the class
826 names to be instantiated.
831 Otherwise it requires the sub-dictionary
<tt>PstreamImplementation
</tt>
832 to be present in the global
<tt>controlDict
</tt>, reads the value of
833 <tt>configName
</tt> and similarly to the library loading,
834 loads the sub-dictionary specified by that value. It then expects
835 to find the entries
<tt>Pstream
</tt>,
<tt>IPstream
</tt> and
<tt>OPstream
</tt> which
836 specify the names of the classes to load.
840 <div class=
"para"><p>This means that you can create a global
<tt>controlDict
</tt> file containing
841 (among other things) something like the following:
</p></div>
842 <div class=
"literalblock">
843 <div class=
"content">
844 <pre><tt>PstreamImplementation
847 configName mpi;
</tt></pre>
849 <div class=
"literalblock">
850 <div class=
"content">
853 library libdummyPstream.so;
854 Pstream dummyPstreamImpl;
855 OPstream dummyOPstreamImpl;
856 IPstream dummyIPstreamImpl;
859 <div class=
"literalblock">
860 <div class=
"content">
863 library libmpiPstream.so;
864 Pstream mpiPstreamImpl;
865 OPstream mpiOPstreamImpl;
866 IPstream mpiIPstreamImpl;
870 <div class=
"para"><p>This way the administrator can provide a glocal
<tt>controlDict
</tt> in
871 the FreeFOAM installation. Every user can then override that
<tt>controlDict
</tt>
872 by supplying her own file in her home directory as detailed
873 above. In order to select a particular
<tt>Pstream
</tt> implementation for
874 a specific communications library, the user can then either adjust
875 the
<tt>PstreamImplementation::configName
</tt> entry in the global
876 <tt>controlDict
</tt> file, set the
<tt>FREEFOAM_PSTREAM_CONFIG
</tt> variable
877 or for full control, set the variables
<tt>FREEFOAM_PSTREAM_LIBRARY
</tt>,
878 <tt>FREEFOAM_PSTREAM_CLASS
</tt>,
<tt>FREEFOAM_IPSTREAM_CLASS
</tt> and
879 <tt>FREEFOAM_OPSTREAM_CLASS
</tt>.
</p></div>
883 Now you should be able to run the tutorial cases. For this copy the
884 <tt>tutorials
</tt> directory to some convenient place:
886 <div class=
"listingblock">
887 <div class=
"content">
888 <pre><tt>$ mkdir -p $HOME/FreeFOAM/$LOGNAME-
1.5.0/run
889 $ cp -r $HOME/Source/FreeFOAM/tutorials $HOME/FreeFOAM/$LOGNAME-
1.5.0/run/
890 $ cd $HOME/FreeFOAM/$LOGNAME-
1.5.0/run
</tt></pre>
892 <div class=
"para"><p>And try to run e.g. the
<em>cavity
</em> tutorial case:
</p></div>
893 <div class=
"listingblock">
894 <div class=
"content">
895 <pre><tt>$ cd icoFoam
896 $ blockMesh -case cavity
897 $ checkMesh -case cavity
898 $ icoFoam -case cavity
</tt></pre>
900 <div class=
"para"><p>Things should run smoothly and finish without an error.
</p></div>
903 <div class=
"admonitionblock">
906 <div class=
"title">Warning
</div>
908 <td class=
"content">Currently the utility
<tt>paraFoam
</tt> does not work, as it hasn't been
909 adapted to FreeFOAM. You have to make sure that ParaView finds the
910 plugins (by e.g. setting the
<tt>PV_PLUGIN_PATH
</tt> environment variable to
911 the directory containing libPV3FoamReader.so) yourself. Then create an empty
912 file called
<tt><something
>.OpenFOAM
</tt> (where
<tt><something
></tt> is a name of
913 your choice)
<strong>in
</strong> the case directory and then start ParaView using
914 <tt>paraview
 --data=
<casedirectory
>/
<something
>.OpenFOAM
</tt>.
915 Alternatively you can also start ParaView without any of the command
916 line arguments and then open the
<em><something
>.OpenFOAM
</em> file from within ParaView.
</td>
919 <h3 id=
"_configuration_reference">3.2. Configuration reference
</h3><div style=
"clear:left"></div>
920 <div class=
"vlist"><dl>
922 <tt>CMAKE_BUILD_TYPE
</tt>
926 One of
<tt><empty
></tt>,
<tt>Debug
</tt>,
<tt>Release
</tt>,
<tt>RelWithDebInfo
</tt> and
<tt>MinSizeRel
</tt>.
930 <tt>CMAKE_INSTALL_PREFIX
</tt>
938 <tt>FF_DOUBLE_PRECISION
</tt>
942 If set to
<tt>ON
</tt> FreeFOAM will be compiled using
<tt>double
</tt> as the
943 floating point type. If set to
<tt>OFF
</tt> it will use
<tt>float
</tt>.
947 <tt>FF_INSTALL_BIN_PATH
</tt>
951 Installation path of the binaries. If not absolute, it is relative to
952 <tt>CMAKE_INSTALL_PREFIX
</tt>.
956 <tt>FF_INSTALL_CONFIG_PATH
</tt>
960 Installation path of the configuration files. If not absolute, it is
961 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>.
965 <tt>FF_BUILD_FRAMEWORK
</tt>
969 If this is enabled, the libraries are built as frameworks. Only available on Mac OS X.
973 <tt>FF_INSTALL_HEADER_PATH
</tt>
977 Installation path of the header files. If not absolute, it is
978 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>. On Mac OS X, and if
979 <tt>FF_BUILD_FRAMEWORK
</tt> is enabled, this setting is ignored.
983 <tt>FF_INSTALL_LIB_PATH
</tt>
987 Installation path of the libraries. If not absolute, it is
988 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>.
992 <tt>FF_INSTALL_FRAMEWORK_PATH
</tt>
996 Installation path of the Mac OS X frameworks. If not absolute, it is
997 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>. This is only available and takes
998 effect if FreeFOAM is compiled on Mac OS X, and if
999 <tt>FF_BUILD_FRAMEWORK
</tt> is enabled.
1003 <tt>FF_INSTALL_PV3FOAMREADER_PATH
</tt>
1007 Installation path of the ParaView3 plugins. If not absolute, it is
1008 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>.
1012 <tt>FF_INSTALL_PVFOAMREADER_PATH
</tt>
1016 Installation path of the ParaView2 plugins. If not absolute, it is
1017 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>.
1021 <tt>FF_INSTALL_USERDFOAM_PATH
</tt>
1025 Installation path of the Ensight plugin. If not absolute, it is
1026 relative to
<tt>CMAKE_INSTALL_PREFIX
</tt>.
1030 <tt>FF_USE_GAMMA
</tt>
1034 If enabled, FreeFOAM will use the GAMMA parallel communications library.
1042 If enabled, FreeFOAM will use the MPI parallel communications library.
1043 This is required in order to build some of the libraries and utilities.
1051 If enabled, FreeFOAM will use the PVM parallel communications library.
1055 <tt>FF_DEFAULT_PSTREAM
</tt>
1059 The default Pstream selection in the global controlDict file.
1063 <tt>FF_BUILD_PARAVIEW_PLUGINS
</tt>
1067 Whether to build the ParaView plugins. If enabled, FreeFOAM requires a
1068 ParaView build tree and the
<tt>ParaView_DIR
</tt> variable set to the path of it.
1072 <tt>FF_BUILD_PRIVATE_CCMIO
</tt>
1076 Automatically download and build libccmio. Unfortunately this process will
1077 fail in the download step, since CMake currently does not support
<tt>https
</tt>
1078 URLs. But you will get specific instructions from the build system on how to
1079 get around this problem.
1083 <tt>FF_BUILD_PRIVATE_METIS
</tt>
1087 Automatically download and build METIS.
1091 <tt>FF_BUILD_PRIVATE_PARMETIS
</tt>
1095 Automatically download and build ParMetis.
1099 <tt>FF_BUILD_PRIVATE_PARMGRIDGEN
</tt>
1103 Automaticall download and build ParMGridGen/MGridgen.
1107 <tt>FF_BUILD_DOXYGEN_DOCS
</tt>
1111 Enable building of the Doxygen API documentation. To actually build it,
1112 execute
<tt>make doc
</tt>.
1117 <h2 id=
"_documentation">4. Documentation
</h2>
1118 <div class=
"sectionbody">
1119 <div class=
"para"><p><a href=
"http://www.OpenFOAM.org/doc">http://www.OpenFOAM.org/doc
</a></p></div>
1121 <h2 id=
"_help">5. Help
</h2>
1122 <div class=
"sectionbody">
1123 <div class=
"ilist"><ul>
1126 <a href=
"http://freefoam.sourceforge.net">http://freefoam.sourceforge.net
</a>
1131 <a href=
"https://lists.sourceforge.net/lists/listinfo/freefoam-user">https://lists.sourceforge.net/lists/listinfo/freefoam-user
</a>
1136 <a href=
"http://www.OpenFOAM.org/discussion.html">http://www.OpenFOAM.org/discussion.html
</a> <strong>please only ask questions related
1137 to
<em>OpenFOAM
</em> there
</strong>.
1142 <h2 id=
"_reporting_bugs_in_freefoam">6. Reporting Bugs in FreeFOAM
</h2>
1143 <div class=
"sectionbody">
1144 <div class=
"para"><p><a href=
"http://freefoam.sourceforge.net">http://freefoam.sourceforge.net
</a></p></div>
1147 <div id=
"footer-text">
1148 Version
1.5.0-
0<br />
1149 Last updated
2009-
02-
23 20:
32:
02 CEST