- Compilers (default): gcc and openmpi
- Go to home directory and make "OpenFOAM" directory
- cd
- mkdir -p OpenFOAM
- cd OpenFOAM
- Download: OpenFOAM-v3.0+.tgz HERE
- Unzip
- tar -xzf OpenFOAM-v3.0+.tgz
- cd OpenFOAM-v3.0+
- Disable graphics compiling part
- Open
- vi src/postProcessing/functionObjects/Allwmake
- Comment out the last line
- # ./graphics/Allwmake
- Open
- Take care of conflict due to flex++ version
- Open the following files
- $WM_PROJECT_DIR/src/triSurface/triSurface/interfaces/STL/readSTLASCII.L
- $WM_PROJECT_DIR/applications/utilities/mesh/conversion/gambitToFoam/gambitToFoam.L
- $WM_PROJECT_DIR/applications/utilities/mesh/conversion/fluent3DMeshToFoam/fluent3DMeshToFoam.L
- $WM_PROJECT_DIR/applications/utilities/mesh/conversion/fluentMeshToFoam/fluentMeshToFoam.L
- $WM_PROJECT_DIR/applications/utilities/mesh/conversion/ansysToFoam/ansysToFoam.L
- Make change
- from
- #if YY_FLEX_SUBMINOR_VERSION < 34
- extern "C" int yywrap()
- #else
- int yyFlexLexer::yywrap()
- #endif
- to
- // #if YY_FLEX_SUBMINOR_VERSION < 34
- // extern "C" int yywrap()
- // #else
- int yyFlexLexer::yywrap()
- // #endif
- from
- Open the following files
- Set up compiling environment
- source OpenFOAM/OpenFOAM-v3.0+/etc/bashrc
- echo " alias of30plus='source OpenFOAM/OpenFOAM-v3.0+/etc/bashrc'" >> $HOME/.bahsrc
- Compile
- ./Allwmake
This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
Search This Blog
Saturday, October 29, 2016
How to install OpenFOAM3+ on Ubuntu 16
Subscribe to:
Post Comments (Atom)
Labels
- Academic Notes (4)
- BLAS (1)
- CEE618 (2)
- CentOS (1)
- Computation (1)
- Conferences (1)
- Cross compiling (1)
- Graphics (1)
- Hawaii Tour (2)
- Intel compiler (1)
- Just (1)
- Laptop (1)
- LaTex (22)
- Life and Humanity (8)
- Linux and Computing (107)
- LSF (1)
- Lyx (3)
- Macintosh (5)
- MPI (1)
- News (11)
- OpenFoam (1)
- OpenMPI (1)
- PBS (2)
- Software (4)
- SSH (2)
- torque (1)
- Touchpad (1)
- VMD (1)
- yum (1)
No comments:
Post a Comment