CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home >

CFD Vendor & Organization Feeds

CFD Online top

► Forum News - Improved breadcrumbs, new OpenFOAM forums
  23 Jan, 2018
As you might have noticed we have improved the breadcrumb links available just under the top drop-down menu when you are visiting a forum. The breadcrumb now includes links to all preceding forums. This should hopefully make it easier to navigate up in the sub-forum tree.

We have also recently launched a new OpenFOAM forum for Community Contributions, you can find it here:

https://www.cfd-online.com/Forums/op...contributions/

This forum is intended for discussions about open source extensions to OpenFOAM coming from the community. Each extension also has a Prefix and it is possible to filter the forum to only see threads about one extension/prefix. If you are missing an extension/prefix please send an email to webmaster@cfd-online.com or reply to this thread.

Our intention is also to under this Community Contribution forum add additional sub-forums for specific development groups. So far we have only added one development group.
► Spam filter problems - Forbidden, You Don't have permission to access ...
    9 Dec, 2017
We have for some time now been running quite restrictive spam filers on our servers. This has reduced our spam problems significantly. However, our spam filters also sometimes give normal users problems. Two things can happen if you are blocked by our spam filters:

1. You will be completely locked out and you will not be able to access any page on cfd-online.com for a certain period

2. You will when you try to do something on CFD Online get an error message saying something like:

Quote:

Forbidden

You don't have permission to access ....
If you are having problems with our filters please contact us directly via email to webmaster@cfd-online.com. Describe what problem you have and what you were doing when the problem occured. Please also tell us your IP number, which you can look up on for example https://www.iplocation.net/find-ip-address
► Updated Forum Apps for Android and iOS / iPhone / iPad
  18 Oct, 2017
We have now updated both of our forum apps. The new version of the app is a major release based on a new code-base, with many improvements and hopefully a better user interface. It should be both faster and more bug-free.

The Android version can be found on Google Play here:

https://play.google.com/store/apps/d...nlinecomForums

The iOS / iPhone / iPad version can be found on Apple App Store here:

https://itunes.apple.com/app/id936248777

As always the Forum app is free to everyone.

One thing that we have changed is that this app now no more by default includes a special app-footer when you post a message from within the app. This footer irritated some users and it fills no real purpose. I don't think that I liked it myself either. I want to decide myself if I have a footer in my posts and what I write in it.
► CFD Online Privacy Policy
  12 Sep, 2017
Please find CFD Online's Privacy Policy here:

https://www.cfd-online.com/About/privacy_policy.php

This privacy policy was created since we received a request by Google to clearly specify CFD Online's user data policy in a privacy statement.
► Intrusion in the CFD Online Forums
  26 Aug, 2017
We have discovered that someone has been able to compromise the forums on CFD Online. Our forum user-database was most likely stolen and this database contained encrypted forum passwords (the stored passwords were both hashed and salted before stored, but the random salt was also available in the user-database). The hash algorithm used is fairly reliable, and was used twice with the random salt, but there has been reports of possible weaknesses, so someone might be able to decrypt the passwords. Hence, we ask everyone to please change your passwords.

All registered users should have received an email asking you to please change your password in the forums. If you remember your password you can do this in the User Panel > Edit Email and Password section here: https://www.cfd-online.com/Forums/pr...o=editpassword. If you have forgotten your password you can request a new one to be set and emailed to you at https://www.cfd-online.com/Forums/login.php?do=lostpw

In addition to the stolen user-database the intruder was also able to install his own Google AdSense advertisements in the forum threads. These ads were quite annoying and were not visible for administrators or moderators, so it took some time for us to discover them. This also happened in the middle of our vacation time. These annoying ads were available from July 28 until August 21.

If you have any questions or comments about this please do not hesitate to contact us at webmaster@cfd-online.com.

We are very sorry about this incident and would like to sincerely apologize to all of our fantastic users.

NAFEMS top

► NAFEMS World Congress 2019 - Call for Papers Now Open
  30 Jul, 2018
NAFEMS are delighted to announce that the call for papers for the 2019 NAFEMS World Congress, in Quebec City, Canada, 17-20 June 2019, is now open.Engineering analysis, modelling and simulation are dy
► Call-for-Papers - We want you!
  19 Jun, 2018
Call for Papers - We want you!Get involved with the engineering analysis, modelling and simulation community and present at one of the many NAFEMS events taking place around the world. As part of our
► Rodney L. Dreisbach Recognised in 1st Class of NAFEMS Technical Fellows
    5 Jun, 2018
Rodney L. Dreisbach Recognised in 1st Class of NAFEMS Technical FellowsDr Dreisbach received the award at CAASE18 in Cleveland, Ohio, in recognition of his continued outstanding technical contribution
► NAFEMS World Congress 2019 | Quebec City, Canada | 17-20 June 2019
  22 Feb, 2018
NAFEMS are delighted to announce that our 17th World Congress will take place in Quebec City, Canada, 17-20 June 2019.This is the 2nd time that the World Congress will take place in Canada, with the 2
► Remembering Dr Richard MacNeal
    7 Feb, 2018
Remembering Dr Richard MacNealCo-founder of MSC Software and MSC Nastran passes away at the age of 94It is with great sadness that we at NAFEMS learned of the recent passing of one of the pioneers of
► NAFEMS International Journal of CFD Case Studies: Call for Contributions
    1 Feb, 2018
NAFEMS International Journal of CFD Case Studies: Call for ContributionsSubmissions are invited for publication in the next edition of the NAFEMS International Journal of CFD Case Studies.The purpose

OpenFOAM ESI-OpenCFD top

► OPenFOAM v1806 released
    2 Jul, 2018
OpenCFD is pleased to announce release of OpenFOAM-v1806. This release extends OpenFOAM-v1712 features across many areas of the code. The new functionality represents development sponsored by OpenCFDs customers, internally funded developments, and integration of features and changes from the OpenFOAM community.


Among other developments it features:
- Directional refinement of the mesh in snappyHexMesh
- New dry-run solver option for set-up check
- Improved field mapping in parallel
- New blended scheme for stabilisation
- New laser melting solver
- New swirl fan velocity boundary condition
- New In-situ processing with ParaView Catalyst
- New solvers documentation
- New fvOption documentation

Among the community contributions:
- Consolidation of moving mesh solvers
- Moving mesh functionality added to interIsoFoam
- New wave-mangrove interaction

... and many other features

The detailed list can be found at: http://openfoam.com/releases/openfoam-v1806/

OpenFOAM-v1806 can be downloaded as source code, precompiled Docker images for Linux, Windows and Mac operating systems from http://openfoam.com/download/installation.php or is available also in the spack HPC package manager via the 'openfoam-com' package.
► Training schedule for 2018
  19 Jan, 2018
Comprehensive Public Training Schedule for 2018 is now available. Please see our Website http://www.openfoam.com/training/schedule.php

Regular classroom Foundation and Advanced trainings:
  • 19-22 Feb - Milan, Italy
  • 16-19 April - Madrid,Spain
  • 14-17 May - Frankfurt, Germany
  • 18-21 Jun - Paris, France

Live virtual trainings (with a live trainer):




OpenFOAM® Training OpenCFD deliver OpenFOAM Foundation and Advanced training courses. Each course is of 2 days duration and is delivered by OpenCFD staff with exceptional experience in OpenFOAM.

VisualCFD is a 1 day course run at European Locations. Training Locations worldwide, we also provide on-site why not contact us for a proposal today.
► OpenFOAM-v1712 released
  19 Jan, 2018
OpenCFD is pleased to announce release of OpenFOAM-v1712. This release extends OpenFOAM-v1706 features across many areas of the code. The new functionality represents development sponsored by OpenCFDs customers, internally funded developments, and integration of features and changes from the OpenFOAM community.

Among other developments it features:
- Update of the Overset mesh
- New Arrhenius viscosity transport model
- New energy transport for non-thermal solvers
- New turbulence decay control
- New blended turbulence viscosity wall function
- New interface to the kaHIP decomposition library
- Improved parallel processing

Among the community contributions:
- New integration of finite area method from the foam-extend project by Hrvoje Jasak
- New avalanche modelling of Matthias Rauter
- New types of VOF waves

... and many other features

The detailed list can be found at: http://openfoam.com/releases/openfoam-v1712/

OpenFOAM-v1712 can be downloaded as source code, precompiled Docker images for Linux, Windows and Mac operating systems from http://openfoam.com/download/installation.php or is available also in the spack HPC package manager via the 'openfoam-com' package.

OpenFOAM Foundation top

► OpenFOAM v6 Released
  10 Jul, 2018
OpenFOAM v6 Released

From the Release Announcement...

The OpenFOAM Foundation is pleased to announce the release of version 6 of the OpenFOAM open source CFD toolbox. Version 6 is a snapshot of the OpenFOAM development version which, through sustainable development, is always-releasable. It provides new functionality and major improvements to existing code, with strict demands on usability, robustness and extensibility.

OpenFOAM 6 includes the following key developments.
  • Conjugate heat transfer (CHT): improved usability, with simplified set up and running.
  • Rotating/sliding geometries: more robust AMI, and support for periodic cases.
  • Particle tracking: optimised computation and improved robustness.
  • Reacting multiphase models: phase change, reactions, drag, breakup, coalescence, etc.
  • Reactions/combustion: faster, full algebraic Jacobian, significant code redesign
  • Other models: water waves and films, turbulence, thermophysics, atmospheric flows
  • General: new boundary conditions, function objects, improved code compilation, etc
  • Further tools for more productive CFD with OpenFOAM.
  • Approximately 750 code commits, 350+ resolved issues
  • ISO/IEC 14882:2011 (C++11): tested for GCC v4.8+, Clang v3.7+, Intel ICC v17.0.4+.
OpenFOAM 6 is packaged for the following platforms.
The OpenFOAM 6 Source Pack can be compiled on suitable Linux platforms.

Credits

OpenFOAM 6 was produced by:
  • Core Team (CFD Direct): Henry Weller (co-founder & lead developer); Chris Greenshields (co-founder), Will Bainbridge
  • Developers/Maintainers: Bruno Santos, Francesco Contino, Mattijs Janssens (co-founder), Juho Peltola, Fabian Schlegel, Ronald Oertel, Timo Niemi
  • Patch Contributors: Tobias Holzmann, Kevin Nordin-Bates, Lorenzo Trevisan, Federico Piscaglia, Björn Pfeiffelmann, Jakub Benda, Nicolas Bourgeois, SeongMo Yeon, Stefan Hildenbrand
Licence

OpenFOAM 6 is distributed under the General Public Licence v3 by the OpenFOAM Foundation.
► OpenFOAM Open Day 2018
  28 Mar, 2018
The OpenFOAM Foundation is pleased to announce the OpenFOAM Open Day 2018.
  • Date: Wednesday 19th September 2018, 10:00 – 16:00 UK time.
  • Free event for the supporters of OpenFOAM who manage and maintain the software, contribute new developments and provide funding.
  • Free live stream worldwide to OpenFOAM users and CFD managers who register using a recognised company email address.
The OpenFOAM Open Day addresses the sustainable development of OpenFOAM, bringing together talks and discussion from contributors, supporters and maintainers of OpenFOAM. It is a free event streamed live worldwide to OpenFOAM users and CFD managers.

Register now for the live stream.

OpenFOAM Other Sources top

► OpenFOAM now available on the HPCBOX HPC cloud platform
    9 Aug, 2018
OpenFOAM is now available on the HPCBOX HPC cloud platform. Versions v5 and v6 of OpenFOAM are pre-installed and integrated with our desktop-centric, workflow oriented HPC cloud platform. OpenFOAM can be used in distributed parallel mode from a rich desktop interface and can be seamlessly run over multiple nodes interconnected with a high speed Infiniband fabric. ParaFOAM can be used with hardware accelerated 3D on NVIDIA graphics cards for post-processing.

This is a Pay-As-You-Go offer, meaning, you will be able to scale-out/scale-in your HPC cluster by adding more nodes and shutting down existing nodes when you are not running the solver. Moreover, the entire cluster, including the Master node can be shutdown when not in use and restarted later for use, it's like having your own personal HPC cluster, readily available for use as needed.

There is an article with a briefing on functionality and availability at https://goo.gl/kvTrZq. More information can also be found at www.drizti.com/hpcbox and www.drizti.com/applications

Feel free to post any queries you might have.

Thanks.
► Training OpenFOAM for Propeller and Turbomachinery: Rostock, 29./30.08.2018
    1 Aug, 2018
Dear CFD Users,

developers who want to use OpenFOAM to calculate propellers and turbomachinery may be interested in our training on this topic.
The next one will take place on 29./30. august 2018 in Rostock, Germany.

For more details on content and registration, please visit this page: http://www.foamacademy.com/events/ev...ry-propellers/

Attachment 64837

We are looking forward to meet you!

Regards, Hannes

Attached Images
File Type: jpg ducted_propeller_scooter.jpg (23.8 KB)
► OpenFoam log file monitor
  25 Jul, 2018
Hi guys,

I uploaded an early version of my log file monitoring tool to my github page https://github.com/greole/foamMon . The tool aims to give an overview of
the progress of long running simulations. Feel free to try it out.


Cheers,
Gregor
► OpenFOAM webinar: A multidimensional parallel numerical solver of ADM1 model for anae
  12 Jul, 2018
Dear all,

I'd like to draw your attention to the Fortissimo working group for OpenFOAM, where a webinar will given by Reza Nouri's presentation entitled "mADM1 - A multidimensional parallel numerical solver of ADM1 model for anaerobic digesters in OpenFOAM framework", on Wednesday, Oct 17th at 14:00 CEST (13:00 BST).

Abstract

Anaerobic digesters (ADs) are closed reactors that produce biogas from waste materials. ADs are highly complex systems, which comprise circa three tens of different chemical species that are advected with the flow, promoted by propellers. The optimisation of these devices aim to maximize the biogas production, and, at the same time, minimize the energy consumption, for instance by minimizing the propellers running time or by establishing the most effective cycle for feeding and digestate renewal. In this complex framework, most of the design activities are in general based on trial-and-error procedures, which do not guarantee optimised performances. The current high demand of alternative energy resources has increased the number of ADs in service and motivate the search of improved design procedures for these devices.

One of the first attempts to model the operation of ADs was made by the ADM1 model [1], a bulk model that comprises 47 variables and 109 coefficients. However, the ADM1 assumes homogeneous conditions that are in general far from the real situation. More recently, Gaden [2] proposed a multidimensional solver, developed in OpenFOAM framework, which was able to cope with the inhomogeneous distribution of the relevant quantities. The main limitation of the solver developed by Gaden [2] was the lack of parallelization, which limits the use of the tools on a regular basis.

The project where this work is comprised is being developed in the framework of one of the Fortissimo 2 European project experiments, and join different entities with complementary skills to develop and experimentally assess a solver appropriate to model the operation of ADs, which is able to take advantage of HPC facilities, aiming to establish and disseminate effective design procedures for these systems.

This work describes the solver implemented in OpenFOAM to model the operation of ADs, and the preliminary verification activities.

Acknowledgements: this work is funded by the Experiment Digester 2.0, developed in the framework of the Fortissimo 2 European project. The authors from IPC/i3N/University of Minho acknowledge the funding by FEDER through the COMPETE 2020 Programme, the National Funds through FCT - Portuguese Foundation for Science and Technology under the project UID/CTM/50025/2013.

References

[1] Batstone, D. J et al. (2002). "Anaerobic Digester Model No.1 (ADM1)", Scientific and Technical Report No.13, IWA Task Group for Mathematical Modelling of Anaerobic Digestion Processes. IWA Publishing, London, United Kingdom.
[2] Gaden, D. (2013) Modelling Anaerobic Digesters in Three Dimensions: Integration of Biochemistry with Computational Fluid Dynamics. PhD Thesis, University of Manitoba,Canada.

Speaker, Reza Nouri, is from Institute for Polymers and Composites/i3N, University of Minho, Campus de Azurém, 4800-058 Guimarães, Portugal.

Access Details:

Please join the talk from your computer, tablet or smartphone.
https://global.gotomeeting.com/join/303815093

You can also dial in using your phone.
United Kingdom +44 (0) 330 221 0086

Access Code: 303-815-093

More phone numbers
United States (Long distance): +1 (224) 501-3217
Australia (Long distance): +61 2 9087 3605
Austria (Long distance): +43 7 2088 1403
Belgium (Long distance): +32 (0) 28 93 7019
Canada (Long distance): +1 (647) 497-9351
Denmark (Long distance): +45 69 91 88 64
Finland (Long distance): +358 (0) 942 41 5780
France (Long distance): +33 (0) 182 880 459
Germany (Long distance): +49 (0) 692 5736 7210
Ireland (Long distance): +353 (0) 14 845 978
Italy (Long distance): +39 0 699 36 98 81
Netherlands (Long distance): +31 (0) 208 080 381
New Zealand (Long distance): +64 4 974 7214
Norway (Long distance): +47 21 03 58 98
Spain (Long distance): +34 955 32 0845
Sweden (Long distance): +46 (0) 853 527 836
Switzerland (Long distance): +41 (0) 435 0167 09

Fortissimo

The Fortissimo Marketplace provides one-stop, pay-per-use, on-demand access to advanced simulation, modelling and data analytics resources including software, hardware and expertise: https://www.fortissimo-project.eu/

Thanks,
Gavin
► MATLAB CFD GUI for OpenFOAM with FEATool Multiphysics 1.8
  14 Jun, 2018
The FEATool Multiphysics MATLAB and Octave FEM Simulation Toolbox version 1.8 is now available. In addition to being a fully integrated FEA multiphysics toolbox, and interfacing with the FEniCS FEM solver and external mesh generators such as DistMesh, GiD, Gmsh, and Triangle, the highlight of the new version is introducing a fully integrated and cross-platform OpenFOAM CFD GUI interface for MATLAB and GNU Octave.

The new OpenFOAM MATLAB CFD interface allows one to conveniently setup both laminar and fully turbulent incompressible Navier-Stokes CFD problems all within an easy to use graphical user interface (GUI). Featuring built-in CAD tools and (STL) CAD file import, automatic mesh generation (with automatic 2D to 3D mesh conversion and extrusion for 2D problems), FEATool to OpenFOAM case file conversion, solver selection and control, as well as solution import with postprocessing and visualization. As with all the FEATool MATLAB GUI functionality, models can also be saved and exported as m-file CLI functions where custom scripting and support for all MATLAB and Octave functions and toolboxes is supported. With the added support for the popular OpenFOAM CFD solver and FEniCS, high-performance multiphysics, multi-simulation, and CFD modeling can now be all be conveniently done within a single software interface.

Please visit the OpenFOAM-FEATool 1.8 MATLAB GUI release announcement for more information.
► OpenFoam and salome training on 2nd July at Pune, India
  21 May, 2018
Dear Sir/Madam,
I am pleased to inform you that, am organizing Five days training on “OpenFoam with Salome” on 2nd to 6th July 2018 at my residence.I have conducted many trainings on OpenFoam earlier.

Purpose of this training program is to create awareness among Civil, Mechanical and Chemical Engineers about open source CFD software and Salome and to give introductory training of OpenFoam with Salome

This training program will contain, 1)Introduction to CFD 2)Introduction to OpenFoam 4)Hand on practice 0)linux commands a)grid generation -blockMesh b)grid generation -snappyHexMesh c)In compressible flow d)Heat transfer e)engineFoam f)Salome for modelling and meshing

Practice session with Salome will be for 2.5 days

For registration contact A)Prof (Dr) Sachin Lotan Borse Mob:- +918149538399(whatsapp only) email:- sachinlb@yahoo.co.uk

Training fee:- Rs 10000. (Fee includes training only)
Registration required by 10th June.Limited seats.
Please bring your laptop with windows 7

OpenFOAM Wiki top

► Installation/Linux/OpenFOAM-6/CentOS SL RHEL
  16 Aug, 2018

CentOS 6.10 (without SCL): removed stray space

← Older revision Revision as of 00:01, 16 August 2018
(2 intermediate revisions by the same user not shown)
Line 293: Line 293:
 
Notes regarding the instructions below:
 
Notes regarding the instructions below:
 
* These instructions will build GCC 4.8 and Python 2.7 from source code, along with using Qt 4.8.
 
* These instructions will build GCC 4.8 and Python 2.7 from source code, along with using Qt 4.8.
  +
** Instructions for building Python 2.7 on CentOS [https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/ were retrieved from here].
 
* The instructions below were tested with CentOS 6.10, but might work with older or newer versions.
 
* The instructions below were tested with CentOS 6.10, but might work with older or newer versions.
   
Line 308: Line 309:
 
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel \
 
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel \
 
libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
 
libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
readline-devel ncurses-devel mpfr-devel gmp-devel
+
readline-devel ncurses-devel mpfr-devel gmp-devel bzip2-devel openssl-devel \
  +
sqlite-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel
   
 
#This one is useful, but not crucial
 
#This one is useful, but not crucial
Line 341: Line 343:
 
wget -P download http://www.paraview.org/files/v5.4/ParaView-v5.4.0.tar.gz
 
wget -P download http://www.paraview.org/files/v5.4/ParaView-v5.4.0.tar.gz
 
wget -P download http://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
 
wget -P download http://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
  +
wget -P download http://python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz
 
</bash>
 
</bash>
 
</li>
 
</li>
Line 351: Line 354:
 
tar -xzf download/ParaView-v5.4.0.tar.gz --transform='s/ParaView-v5.4.0/ParaView-5.4.0/'
 
tar -xzf download/ParaView-v5.4.0.tar.gz --transform='s/ParaView-v5.4.0/ParaView-5.4.0/'
 
tar -xzf download/qt-everywhere-opensource-src-4.8.7.tar.gz
 
tar -xzf download/qt-everywhere-opensource-src-4.8.7.tar.gz
  +
tar -xJf download/Python-2.7.15.tar.xz
 
</bash>
 
</bash>
 
</li>
 
</li>
Line 400: Line 404:
   
 
Note: You probably will see a message similar to this one and it's meant to do so until we've built the custom Gcc version:
 
Note: You probably will see a message similar to this one and it's meant to do so until we've built the custom Gcc version:
<bash>Warning in /home/user/OpenFOAM/OpenFOAM-5.x/etc/config/settings.sh:
+
<bash>Warning in /home/user/OpenFOAM/OpenFOAM-6/etc/config/settings.sh:
     Cannot find /home/user/OpenFOAM/ThirdParty-5.x/platforms/linux64/gcc-4.8.5 installation.
+
     Cannot find /home/user/OpenFOAM/ThirdParty-6/platforms/linux64/gcc-4.8.5 installation.
 
     Please install this compiler version or if you wish to use the system compiler,
 
     Please install this compiler version or if you wish to use the system compiler,
 
     change the 'WM_COMPILER_TYPE' setting to 'system'</bash>
 
     change the 'WM_COMPILER_TYPE' setting to 'system'</bash>
 
</li>
 
</li>
   
<li>Now we'll have to get all of the scripts we'll need to build GCC and binutils (because OpenFOAM-5.x requires at least GCC 4.8 and CentOS only provides GCC 4.4):
+
<li>Now we'll have to get all of the scripts we'll need to build GCC and binutils (because OpenFOAM-6 requires at least GCC 4.8 and CentOS only provides GCC 4.4):
 
<bash>cd $WM_THIRD_PARTY_DIR
 
<bash>cd $WM_THIRD_PARTY_DIR
 
wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getGcc"
 
wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getGcc"
Line 465: Line 469:
 
./Allwmake > log.make 2>&1
 
./Allwmake > log.make 2>&1
 
wmRefresh
 
wmRefresh
  +
</bash>
  +
</li>
  +
  +
<li>Then to build Python 2.7.15, run the following commands:
  +
<bash>cd $WM_THIRD_PARTY_DIR
  +
  +
mkdir -p build/$WM_ARCH$WM_COMPILER/Python-2.7.15
  +
cd build/$WM_ARCH$WM_COMPILER/Python-2.7.15
  +
  +
export PYTHONHOME=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/python-2.7.15
  +
$WM_THIRD_PARTY_DIR/Python-2.7.15/configure --prefix=$PYTHONHOME --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath $PYTHONHOME/lib"
  +
  +
(make && make altinstall) > $WM_THIRD_PARTY_DIR/log.makePython 2>&1
  +
  +
cd $WM_THIRD_PARTY_DIR
  +
</bash>
  +
When it's done, check the contents of the file {{tt|log.makePython}}. If all is OK, then run the following commands to finish up the installation:
  +
<bash>cd $WM_THIRD_PARTY_DIR
  +
  +
echo 'export PYTHONHOME=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/python-2.7.15' >> $WM_PROJECT_DIR/etc/prefs.sh
  +
echo 'export PATH=$PYTHONHOME/bin:$PATH' >> $WM_PROJECT_DIR/etc/prefs.sh
  +
  +
wmRefresh
  +
  +
strip $PYTHONHOME/lib/libpython2.7.so.1.0
  +
  +
wget https://bootstrap.pypa.io/get-pip.py
  +
python2.7 get-pip.py
  +
pip2.7 install virtualenv
  +
pip2.7 install numpy
 
</bash>
 
</bash>
 
</li>
 
</li>
Line 478: Line 512:
   
 
#this will take a while... somewhere between 30 minutes to 2 hours or more
 
#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView -qt-4.8.7 -mpi -python -python-lib /opt/rh/python27/root/usr/lib/libpython2.7.so -python-include /opt/rh/python27/root/usr/include/python2.7 > log.makePV 2>&1
+
./makeParaView -qt-4.8.7 -mpi -python -python-lib $PYTHONHOME/lib/libpython2.7.so -python-include $PYTHONHOME/include/python2.7 > log.makePV 2>&1
 
</bash>
 
</bash>
 
</li>
 
</li>
Line 486: Line 520:
   
 
#this will take a while... somewhere between 30 minutes to 2 hours or more
 
#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView -qt-4.8.7 -mpi -python -python-lib /opt/rh/python27/root/usr/lib64/libpython2.7.so -python-include /opt/rh/python27/root/usr/include/python2.7 > log.makePV 2>&1
+
./makeParaView -qt-4.8.7 -mpi -python -python-lib $PYTHONHOME/lib/libpython2.7.so -python-include $PYTHONHOME/include/python2.7 > log.makePV 2>&1
 
</bash>
 
</bash>
 
</li>
 
</li>
► Installation/Linux/OpenFOAM-5.x/CentOS SL RHEL
  16 Aug, 2018

CentOS 6.9: removed a stray space

← Older revision Revision as of 23:39, 15 August 2018
Line 95: Line 95:
 
<li>Now, we need to download the essential source code packages for these instructions you are following (the links are from the file {{tt|README.org}}):
 
<li>Now, we need to download the essential source code packages for these instructions you are following (the links are from the file {{tt|README.org}}):
 
<bash>wget -P download  https://www.cmake.org/files/v3.9/cmake-3.9.0.tar.gz
 
<bash>wget -P download  https://www.cmake.org/files/v3.9/cmake-3.9.0.tar.gz
wget -P download https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.10/CGAL-4.10.tar.xz
+
wget -P download https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.10/CGAL-4.10.tar.xz
 
wget -P download https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2
 
wget -P download https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2
 
wget -P download https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.bz2
 
wget -P download https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.bz2
► Installation/Linux/OpenFOAM-6/CentOS SL RHEL
  16 Aug, 2018

CentOS 6.10 (without SCL): Retrieved GCC build instructions from the wiki page for OpenFOAM 5.x

Show changes
► Installation/Linux/OpenFOAM-6/CentOS SL RHEL
  14 Aug, 2018

Kicked off this page, although it's all still going to be tested and updated

New page

= Introduction =
This page is dedicated to explaining how to install {{OpenFOAM}} {{version6}} in:
* Community ENTerprise Operating System, aka '''CentOS'''.
* Red Hat Enterprise Linux, aka '''RHEL'''.
* Scientific Linux, aka '''SL'''.

In '''theory''', all of the above follow the same versioning. Therefore, at the time this page was first written, RHEL, CentOS and SL were all at version {{tt|6.10}}.

Both SL and CentOS derive from RHEL, but [http://centfoam.sourceforge.net/wiki/index.php/Main_Page CentFOAM] is what inspired this (and other related instruction pages). Therefore, before even trying to follow the instructions on this page, try first [http://centfoam.sourceforge.net/wiki/index.php/Main_Page CentFOAM].

Last but not least, RHEL uses Fedora as their bleeding edge Linux Distribution, where they test new features. This leads to very close similarities between them, e.g. RHEL 6.3 is very similar to Fedora 14; which means that whatever you can build on Fedora 14, you should also be able to build on RHEL 6.3!

If you do not yet feel comfortable using Linux, then perhaps you better first read the page [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.

__FORCETOC__
__TOC__

= ''Copy-Paste'' steps =

A few notes before you start copy-pasting:

# Lines that start with <tt>#</tt> don't have to be ''copy-pasted''. They are just comments to let you know what's going on.
# One wrong character is enough for breaking this guide, so make sure you can read the characters properly or that the installed language system does not break the copied characters!

== CentOS 6.10 ==

Here you have the following choices:
* You can install from source, by either:
** Following the official instructions from here: [http://openfoam.org/download/source/ OpenFOAM Source Repository]
** Or by following the detailed step-by-step instructions below...


Notes regarding the instructions below:
* The instructions below were tested with CentOS 6.9, but might work with 6.6, 6.7, 6.8 or newer versions.


<span style="font-size:180%">'''WARNING: These instructions are currently being written and under testing!'''</span>

'''Discussion thread where you can ask questions about these steps''': {{Installation/NoThreadAskForum}}

Steps:
<ol>
{{Installation/Linux/SwitchToRoot}}

<li>Install the necessary packages:
<bash>yum groupinstall 'Development Tools'
yum install zlib-devel texinfo gstreamer-plugins-base-devel \
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel \
libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
readline-devel ncurses-devel

#This one is useful, but not crucial
yum upgrade</bash>
</li>

<li>'''Optional''': Python 2.6 that is provided in CentOS 6.x is not enough to use ParaView 5.4.0 with Python support. Therefore, either Python 2.7, 3.3 or newer has to be installed from another repository or it has to be built from source code. In these instructions we will rely on the [https://wiki.centos.org/AdditionalResources/Repositories/SCL Software Collections ( SCL ) Repository], which can be used to install software in a non-intrusive way... which will require its own environment loading mechanism. The steps to install it are as follows:
<ol>
<li>Still as root, install the aforementioned SCL repository:
<bash>yum install centos-release-SCL</bash>
</li>

<li>Then install the Python 2.7 package:
<bash>yum install python27</bash>
</li>

<li>To check if it's installed, run:
<bash>scl --list</bash>
</li>

<li>For future reference, the easiest way to activate the environment on the current command line is to run, '''but do ''not'' do this right now''':
<bash>source /opt/rh/python27/enable</bash>
This command will be indicated to be executed at the right point in the instructions below.
</li>
</ol>
</li>

{{Installation/Linux/ExitRoot}}

<li>Start a new terminal. This is because you'll need a fully refreshed shell.</li>

<li>Download and unpack (here you can copy-paste all in single go):
<bash>#OpenFOAM downloading and installation
cd ~
mkdir OpenFOAM
cd OpenFOAM
git clone https://github.com/OpenFOAM/OpenFOAM-6.git
git clone https://github.com/OpenFOAM/ThirdParty-6.git
</bash>
But we will now have to download a few more of the necessary packages for the {{tt|ThirdParty-6}} folder:
<ol>
<li>First, we need to prepare for the downloads:
<bash>cd ThirdParty-6
mkdir download
</bash>
</li>

<li>Now, we need to download the essential source code packages for these instructions you are following (the links are from the file {{tt|README.org}}):
<bash>wget -P download https://www.cmake.org/files/v3.9/cmake-3.9.0.tar.gz
wget -P download https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.10/CGAL-4.10.tar.xz
wget -P download https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2
wget -P download https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.bz2
wget -P download http://www.paraview.org/files/v5.4/ParaView-v5.4.0.tar.gz
</bash>
</li>

<li>Next, we need to unpack the packages we've downloaded:
<bash>tar -xzf download/cmake-3.9.0.tar.gz
tar -xJf download/CGAL-4.10.tar.xz
tar -xjf download/boost_1_55_0.tar.bz2
tar -xjf download/openmpi-2.1.1.tar.bz2
tar -xzf download/ParaView-v5.4.0.tar.gz --transform='s/ParaView-v5.4.0/ParaView-5.4.0/'
</bash>
</li>

<li>Last but not least, the final command on this sub-list is to go back to the main {{tt|OpenFOAM}} folder:
<bash>cd ..
</bash>
</li>
</ol>
</li>

<li>A few details need to be fixed, before proceeding, which will change the default Boost and CGAL versions:
<bash>sed -i -e 's/\(boost_version=\)boost-system/\1boost_1_55_0/' OpenFOAM-6/etc/config.sh/CGAL
sed -i -e 's/\(cgal_version=\)cgal-system/\1CGAL-4.10/' OpenFOAM-6/etc/config.sh/CGAL
</bash>
</li>

<li>For building OpenFOAM itself, it depends on whether you have installed the i386 or x86_64 architecture of CentOS/SL/RHEL. To check this, run:
<bash>uname -m</bash>
Now, accordingly:
<ul {{NoIndentStyle}}>
<li>For i386:
<bash>source $HOME/OpenFOAM/OpenFOAM-6/etc/bashrc WM_COMPILER_TYPE=ThirdParty WM_COMPILER=Gcc48 WM_ARCH_OPTION=32 WM_MPLIB=OPENMPI FOAMY_HEX_MESH=yes
</bash>
Also, save an ''alias'' in the personal {{tt|.bashrc}} file, simply by running the following command:
<bash>echo "alias of6='source \$HOME/OpenFOAM/OpenFOAM-6/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
</bash>
{{Installation/Linux/AliasNote|OpenFOAM 6|of6}}
</li>

<li>For x86_64, it depends on whether you need 64-bit integer support or not. Depending on whether you need 64-bit integer support or not:
<ul {{NoIndentStyle}}>
<li>For building with the normal 32-bit integer support (maximum 2.147×10<sup>9</sup> cells, faces or points):
<bash>source $HOME/OpenFOAM/OpenFOAM-6/etc/bashrc WM_COMPILER_TYPE=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=OPENMPI FOAMY_HEX_MESH=yes
</bash>
</li>
<li>For building with the normal 64-bit integer support (maximum 9.22×10<sup>18</sup> cells, faces or points):
<bash>source $HOME/OpenFOAM/OpenFOAM-6/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=OPENMPI FOAMY_HEX_MESH=yes
</bash>
</li>
</ul>

Also, save an ''alias'' in the personal {{tt|.bashrc}} file, simply by running the following command:
<bash>echo "alias of6='source \$HOME/OpenFOAM/OpenFOAM-6/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
</bash>
{{Installation/Linux/AliasNote|OpenFOAM 6|of6}}
</li>
</ul>

Note: You probably will see a message similar to this one and it's meant to do so until we've built the custom Gcc version:
<bash>Warning in /home/user/OpenFOAM/OpenFOAM-6/etc/config/settings.sh:
Cannot find /home/user/OpenFOAM/ThirdParty-6/platforms/linux64/gcc-4.8.5 installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'WM_COMPILER_TYPE' setting to 'system'</bash>
</li>

<li>Now we'll have to get all of the scripts we'll need to build GCC and binutils (because OpenFOAM-6 requires at least GCC 4.8 and CentOS only provides GCC 4.4):
<bash>cd $WM_THIRD_PARTY_DIR
wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getGcc"
wget "https://raw.github.com/wyldckat/ThirdParty-2.0.x/binutils/makeBinutils"
wget "https://raw.github.com/wyldckat/ThirdParty-2.0.x/binutils/getBinutils"
chmod +x get* make*
</bash>
</li>

<li>CentOS 6.x comes with CMake 2.6.4, but ParaView 5.4.0 needs a one of the versions from the more recent CMake 3.x series and CGAL also needs CMake. Therefore, we'll need to do a custom build and we have to do it before we build the custom GCC+binutils (reason: [http://www.cfd-online.com/Forums/openfoam-installation/130205-paraview-4-redhat-possible.html#post478025]):
<bash>cd $WM_THIRD_PARTY_DIR
./makeCmake > log.makeCmake 2>&1
wmRefresh
</bash>
<ul {{NoIndentStyle}}>
<li>'''Note:''' If you've already tried building CMake and got this error message:
<bash>note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line</bash>
Then run:
<bash>mv $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_ARCH_OPTION/gcc-4.8.5 $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.5.bak
./makeCmake > log.makeCmake 2>&1
mv $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_ARCH_OPTION/gcc-4.8.5.bak $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.5
wmRefresh
</bash>
</li>
</ul>
</li>

<li>Now let's get and build Gcc 4.8.5 and company:
<bash>./getGcc gcc-4.8.5 gmp-5.1.2 mpfr-3.1.2 mpc-1.0.1
./makeGcc -no-multilib > log.makeGcc 2>&1
wmRefresh</bash>
If it still gives you the same error message from #3, then something went wrong...
</li>

<li>Now let's get and build a custom GNU Binutils:
<bash>./getBinutils
./makeBinutils gcc-4.8.5 > log.makeBinutils 2>&1</bash>
</li>

<li>Now let's build CGAL, because we need to use custom options and we need the shell environment to be updated afterwards, for CGAL to be properly picked up for building OpenFOAM:
<bash># This next command will take a little while...
./makeCGAL > log.makeCGAL 2>&1

#update the shell environment
wmRefresh
</bash>
</li>

<li>CentOS 6.x comes with Qt 4.6.2, but ParaView 5.4.0 needs at least 4.7. Therefore, we'll need to do a custom build of Qt 4.8.6:
<bash>cd $WM_THIRD_PARTY_DIR

#Get the scripts we need
wget https://github.com/wyldckat/scripts4OpenFOAM3rdParty/raw/master/getQt
wget https://github.com/OpenFOAM/ThirdParty-2.4.x/raw/master/makeQt
wget -P etc/tools/ https://github.com/OpenFOAM/ThirdParty-2.4.x/raw/master/etc/tools/QtFunctions

#make them executable
chmod +x getQt makeQt

#define correct download version and download it
sed -i -e 's=4\.6=4.8=' -e 's=4\.8\.4=4.8.6=' -e 's=/\$major/\$tarFile=/$major/$version/$tarFile=' getQt
./getQt

./makeQt qt-4.8.6 > log.makeQt 2>&1</bash></li>

<li>Given that a custom Open-MPI version is being built with these instructions, it's necessary to first build it before ParaView so that Open-MPI can be used by ParaView:
<bash>cd $WM_THIRD_PARTY_DIR
./Allwmake > log.make 2>&1
wmRefresh
</bash>
</li>

<li>For building ParaView 5.4.0 with Python and MPI, it depends on whether you have installed the i686 or x86_64 architecture of CentOS 6.:
<ol>
<li>To check this, run:
<bash>uname -m</bash>
Now, accordingly:
<ul {{NoIndentStyle}}>
<li>For i686:
<bash>cd $WM_THIRD_PARTY_DIR

# Load the Python 2.7 that came with the SCL repository
source /opt/rh/python27/enable

#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView -qt-4.8.6 -mpi -python -python-lib /opt/rh/python27/root/usr/lib/libpython2.7.so -python-include /opt/rh/python27/root/usr/include/python2.7 > log.makePV 2>&1
</bash>
'''Note:''' If the SCL repository is not being used when following these instructions, then run the last line like this:
<bash>./makeParaView -qt-4.8.6 -mpi > log.makePV 2>&1
</bash>
</li>

<li>For x86_64:
<bash>cd $WM_THIRD_PARTY_DIR

# Load the Python 2.7 that came with the SCL repository
source /opt/rh/python27/enable

#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView -qt-4.8.6 -mpi -python -python-lib /opt/rh/python27/root/usr/lib64/libpython2.7.so -python-include /opt/rh/python27/root/usr/include/python2.7 > log.makePV 2>&1
</bash>
'''Note:''' If the SCL repository is not being used when following these instructions, then run the last line like this:
<bash>./makeParaView -qt-4.8.6 -mpi > log.makePV 2>&1
</bash>
</li>
</ul>
</li>

<li>{{Installation/ParaView/BuildProblemsCheckFAQ|makeParaView|log.makePV}}
</li>
<li>Finally, update the shell environment:
<bash>wmRefresh</bash>
</li>
</ol>
</li>

<li>Now let's build OpenFOAM:
<ol>
<li>Go into OpenFOAM's main source folder:
<bash>cd $WM_PROJECT_DIR</bash>
</li>
<li>We need to temporarily populate {{tt|CMAKE_PREFIX_PATH}} with the path to the custom Qt build, so that {{tt|qmake}} is properly found when building OpenFOAM's plug-in libraries for ParaView:
<bash>export CMAKE_PREFIX_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.6/</bash>
</li>
<li>This next command will take a while... somewhere between 30 minutes to 3-6 hours:
<bash>./Allwmake -j 4 > log.make 2>&1</bash>
{{Installation/Linux/NumberOfCores}}
</li>
<li>Run it a second time for getting a summary of the installation:
<bash>./Allwmake -j 4 > log.make 2>&1</bash>
'''Note:''' Technically, the build will stop as soon as the first error is found. Running a second time only makes it easier to sort through between what's already been built and where the crash occurred.
</li>
</ol>
</li>

<li>{{Installation/Linux/CheckIfAllWentWell}}</li>

<li>Now you can go read the User Guide: [http://openfoam.org/docs/user/ official OpenFOAM User Guide]</li>

<li>'''Note''': When you want to update your build, follow the instructions on section [[Installation/Linux/OpenFOAM-6#Steps for updating|Steps for updating]] on the parent page.</li>
</ol>


{{Installation/Linux/AliasReminder|OpenFOAM 6|of6}}


'''Discussion thread where you can ask questions about these steps''': {{Installation/NoThreadAskForum}}

<br>

== CentOS 7.4 (1708) ==

Here you have the following choices:
* You can install from source, by either:
** Following the official instructions from here: [http://openfoam.org/download/source/ OpenFOAM Source Repository]
** Or by following the detailed step-by-step instructions below...


Notes regarding the instructions below:
* The instructions below were tested with CentOS 7.4, but might work with older 7.0-7.3 or with newer 7.x versions.
* There is no support for the 32-bit architectures in CentOS 7, therefore these instructions only address the x86_64 architecture.


<span style="font-size:180%">'''WARNING: These instructions are currently being written and under testing!'''</span>

'''Discussion thread where you can ask questions about these steps''': {{Installation/NoThreadAskForum}}

Steps:
<ol>
{{Installation/Linux/SwitchToRoot}}

<li>Install the necessary packages:
<bash>yum groupinstall 'Development Tools'
yum install zlib-devel libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel \
libpng-devel libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel \
readline-devel ncurses-devel python python-devel cmake qt-devel qt-assistant \
mpfr-devel gmp-devel

#This one is useful, but not crucial
yum upgrade</bash>
</li>

{{Installation/Linux/ExitRoot}}

<li>Start a new terminal. This is because you'll need a fully refreshed shell.</li>

<li>Download and unpack (here you can copy-paste all in single go):
<bash>#OpenFOAM downloading and installation
cd ~
mkdir OpenFOAM
cd OpenFOAM
git clone https://github.com/OpenFOAM/OpenFOAM-6.git
git clone https://github.com/OpenFOAM/ThirdParty-6.git
</bash>
But we will now have to download a few more of the necessary packages for the {{tt|ThirdParty-6}} folder:
<ol>
<li>First, we need to prepare for the downloads:
<bash>cd ThirdParty-6
mkdir download
</bash>
</li>

<li>Now, we need to download the essential source code packages for these instructions you are following (the links are from the file {{tt|README.org}}):
<bash>wget -P download https://www.cmake.org/files/v3.9/cmake-3.9.0.tar.gz
wget -P download https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.10/CGAL-4.10.tar.xz
wget -P download https://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2
wget -P download https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.bz2
wget -P download http://www.paraview.org/files/v5.4/ParaView-v5.4.0.tar.gz
</bash>
</li>

<li>Next, we need to unpack the packages we've downloaded:
<bash>tar -xzf download/cmake-3.9.0.tar.gz
tar -xJf download/CGAL-4.10.tar.xz
tar -xjf download/boost_1_55_0.tar.bz2
tar -xjf download/openmpi-2.1.1.tar.bz2
tar -xzf download/ParaView-v5.4.0.tar.gz --transform='s/ParaView-v5.4.0/ParaView-5.4.0/'
</bash>
</li>

<li>Last but not least, the final command on this sub-list is to go back to the main {{tt|OpenFOAM}} folder:
<bash>cd ..
</bash>
</li>
</ol>
</li>

<li>A few details need to be fixed, before proceeding, which will change the default Boost and CGAL versions:
<bash>sed -i -e 's/\(boost_version=\)boost-system/\1boost_1_55_0/' OpenFOAM-6/etc/config.sh/CGAL
sed -i -e 's/\(cgal_version=\)cgal-system/\1CGAL-4.10/' OpenFOAM-6/etc/config.sh/CGAL
</bash>
</li>

<li>For building OpenFOAM itself, first we need to activate the correct environment settings and it depends on whether you need 64-bit integer support or not. Depending on whether you need 64-bit integer support or not:
<ul {{NoIndentStyle}}>
<li>For building with the normal 32-bit integer support (maximum 2.147×10<sup>9</sup> cells, faces or points):
<bash>source $HOME/OpenFOAM/OpenFOAM-6/etc/bashrc WM_MPLIB=OPENMPI FOAMY_HEX_MESH=yes
</bash>
</li>
<li>For building with the normal 64-bit integer support (maximum 9.22×10<sup>18</sup> cells, faces or points):
<bash>source $HOME/OpenFOAM/OpenFOAM-6/etc/bashrc WM_LABEL_SIZE=64 WM_MPLIB=OPENMPI FOAMY_HEX_MESH=yes
</bash>
</li>
</ul>

Also, save an ''alias'' in the personal {{tt|.bashrc}} file, simply by running the following command:
<bash>echo "alias of6='source \$HOME/OpenFOAM/OpenFOAM-6/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
</bash>
{{Installation/Linux/AliasNote|OpenFOAM 6|of6}}
</li>

<li>CentOS 7.4 comes with CMake 2.8.12.1, but ParaView 5.4.0 needs a one of the versions from the more recent CMake 3.x series and CGAL also needs CMake. Therefore, we'll need to do a custom build by running:
<bash>cd $WM_THIRD_PARTY_DIR
./makeCmake > log.makeCmake 2>&1
wmRefresh
</bash>
</li>

<li>Given that a custom Open-MPI version is being built with these instructions, it's necessary to first build it before ParaView so that Open-MPI can be used by ParaView:
<bash>cd $WM_THIRD_PARTY_DIR
./Allwmake > log.make 2>&1
wmRefresh
</bash>
</li>

<li>For building ParaView 5.4.0 with Python and MPI, do the following steps:
<ol>
<li>Build by running these commands:
<bash>cd $WM_THIRD_PARTY_DIR

#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView -mpi -python -qmake $(which qmake-qt4) > log.makePV 2>&1
</bash>
</li>

<li>{{Installation/ParaView/BuildProblemsCheckFAQ|makeParaView|log.makePV}}
</li>
<li>Finally, update the shell environment:
<bash>wmRefresh</bash>
</li>
</ol>
</li>

<li>Now let's build OpenFOAM:
<ol>
<li>Go into OpenFOAM's main source folder:
<bash>cd $WM_PROJECT_DIR</bash>
</li>
<li>This next command will take a while... somewhere between 30 minutes to 3-6 hours:
<bash>./Allwmake -j 4 > log.make 2>&1</bash>
{{Installation/Linux/NumberOfCores}}
</li>
<li>Run it a second time for getting a summary of the installation:
<bash>./Allwmake -j 4 > log.make 2>&1</bash>
'''Note:''' Technically, the build will stop as soon as the first error is found. Running a second time only makes it easier to sort through between what's already been built and where the crash occurred.
</li>
</ol>
</li>

<li>{{Installation/Linux/CheckIfAllWentWell}}</li>


<li>Now you can go read the User Guide: [http://openfoam.org/docs/user/ official OpenFOAM User Guide]</li>

<li>'''Note''': When you want to update your build, follow the instructions on section [[Installation/Linux/OpenFOAM-6#Steps for updating|Steps for updating]] on the parent page.</li>
</ol>


{{Installation/Linux/AliasReminder|OpenFOAM 6|of6}}


'''Discussion thread where you can ask questions about these steps''': {{Installation/NoThreadAskForum}}

<br>

[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on CentOS]]
► User talk:Chuang
  13 Aug, 2018

Welcome!

New page

'''Welcome to ''OpenFOAMWiki''!'''
We hope you will contribute much and well.
You will probably want to read the [[https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents|help pages]].
Again, welcome and have fun! [[User:Bgschaid|Bgschaid]] ([[User talk:Bgschaid|talk]]) 12:29, 13 August 2018 (CEST)
► User:Chuang
  13 Aug, 2018

User account Chuang was created by Bgschaid


return

Layout Settings:

Entries per feed:
Display dates:
Width of titles:
Width of content: