CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] foam-extend-3.0 installation

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 2 Post By codder
  • 3 Post By wyldckat
  • 1 Post By sita

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2013, 21:50
Default foam-extend-3.0 installation
  #1
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 12
codder is on a distinguished road
Dear Foamers -

I attempted to install foam-extend-3.0 according to the instructions on:

http://wikki.gridcore.se/foam-extend/download

My approach was to:

(1) Run inside ~/foam
Code:
export PARAVIEW_SYSTEM=1
(2) Then follow http://wikki.gridcore.se/foam-extend/download but without using
Code:
export QT_BIN_DIR=/path/to/qmake
... yet substituting:
Code:
./Allwmake.firstInstall >& log.make
Notes:
I have no other prior foam installations for this user. My .bashrc contains

Code:
source /home/eric/foam/foam-extend-3.0/etc/bashrc
I did not, for example, copy a etc/prefs.sh-EXAMPLE to etc/prefs.sh. Only the Wikki instructions were used.

(3) I then got "paraFoam -builtin" working by updating the script:
Code:
cd $WM_PROJECT_DIR/bin
wget "https://raw.github.com/OpenFOAM/OpenFOAM-2.2.x/master/bin/paraFoam" -O paraFoam
... as per this post.

Thank you so much Wikki and various contributors! Installing the extend code base was never so easy (at least for me) before.
karamiag and wyldckat like this.

Last edited by codder; January 15, 2014 at 18:57. Reason: Removed reference to old name of extend fork.
codder is offline   Reply With Quote

Old   December 26, 2013, 17:54
Default swak4foam
  #2
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 12
codder is on a distinguished road
I believe compiling within ~/foam/foam-extend-3.0 directory breaks compatibility with version checks performed here:

ThirdParty/rpmBuild/BUILD/swak4Foam-0.2.4/Libraries/swak4FoamParsers/include/swak.H

... if you desire swak4Faom, it may be better to maintain ~/OpenFOAM/OpenFoam-1.6-ext and edit within etc/bashrc:

Code:
export WM_PROJECT=foam
export WM_FORK=extend
export WM_PROJECT_VERSION=3.0

<snip>

export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_FORK-$WM_PROJECT_VERSION
... although I have not tried this. As a newbie, I'm not sure what other code performs version checking.
codder is offline   Reply With Quote

Old   December 30, 2013, 17:01
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Eric,

Many thanks for sharing your findings!

On this topic, I've finished setting up the first wiki pages at openfoamwiki.net for installing foam-extend-3.0: http://openfoamwiki.net/index.php/In...oam-extend-3.0

Most of the instructions are pointing to the official installation instructions, but I've done some tests of my own in building on Ubuntu 12.04, 12.10 and 13.10, which are all presently documented at: http://openfoamwiki.net/index.php/In...end-3.0/Ubuntu
Note: these instructions are considerably different from the ones presently located at http://wikki.gridcore.se/foam-extend/download - simply because I relied on the old way for 1.6-ext and because I didn't want to build with CUDA support.

Since foam-extend-3.0 is still rolling out, there are still some details that need fine tuning (which is also why I went with the old build strategy). One of them is the need to wait for the release of swak4Foam 0.3.0, as reported here: http://sourceforge.net/apps/mantisbt...iew.php?id=193

Best regards,
Bruno
AmirBaqa1987, fportela and codder like this.
__________________
wyldckat is offline   Reply With Quote

Old   April 2, 2014, 17:27
Default foam-extend-3.0 on Centos 6.5
  #4
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 48
Rep Power: 12
tladd is on a distinguished road
I have been experimenting with installing foam-extend-3.0 on Centos 6.5

It turns out to be quite straightforward since the installed compiler gcc 4.4.7 is sufficiently up to date. The official instructions for extend-1.6 on Centos 5.5 (foam-extend-3.0/doc/buildInstructions/Centos/5.5) are close to what is needed for foam-extend-3.0.

The listed system packages were all installed on my version of Centos but in addition you need to install binutils-devel:
(as root)
yum install binutils-devel
Otherwise the library file libiberty.a is missing which causes the compilation of openfoam to fail

In addition if you want an automatic installation of swak4foam you should also install mercurial:
yum install mercurial

Finally you need to make it install qt-4.8.5 by setting QT_THIRD_PARTY=1. My prefs.sh file (in foam-extend-3.0/etc) was:
#--------------------------------------------
export FOAM_VERBOSE=1 # Verbose for install

compilerInstall=System # Use System compiler

WM_MPLIB=OPENMPI # Use Third Party MPI

export QT_THIRD_PARTY=1 # Use Third Party QT

If you use the SYSTEMOPENMPI then you need to source the module environment as with the official OpenFOAM release:
module load openmpi-x86_64

Then just
./Allwmake.firstInstall > wmake.log 2>&1

At first I tried to use the third-party gcc (because I had not realized I needed binutils-devel) but this caused problems. I had a number of issues with the system compilers but I will file bug reports on these as soon as I get my sourceforge registration. But I could not get any of the versions of gcc to compile. I had to link other wmake rules in some cases and so I was not sure if this was correct (also the spec files for 4.6 do not match the AllMake.stage1), but even after this I would get errors because the system compiler could not find the gmp etc. libraries. I fixed this with LD_LIBRARY_PATH but there was a further problem at which point I gave up and went back to make the system compiler work.

Finally I could not get the doxygen to compile correctly - the first error is
18850 Preprocessing /global/usr/apps/FOAM/foam-extend-3.0/applica/global/usr/apps/FOAM/foam-extend-3.0/applications/solvers/multiphase/interPhaseChangeFoam/phaseChangeTwoPhaseMixtures/Merkle/Merkle.H:120: Warning: reached end of file while inside a verbatim block!
18851 The command that should end the block seems to be missing!
18852
18853 tions/solvers/multiphase/interPhaseChangeFoam/alphaEqn.H...

I think the error message fragmented the output line because I merged both streams into 1 file.
tladd is offline   Reply With Quote

Old   May 8, 2014, 05:30
Default
  #5
Member
 
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 12
bieshuxuhe is on a distinguished road
hi,
I did as Eric Bryant(foam-extend-3.0 installation) told us .
but i get
Code:
sxh@sxh-VirtualBox:~/foam/sxh-3.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam -builtin
created temporary 'cavity.foam'
/home/sxh/foam/foam-extend-3.0/bin/paraFoam: 267: /home/sxh/foam/foam-extend-3.0/bin/paraFoam: paraview: not found
sxh@sxh-VirtualBox:~/foam/sxh-3.0/run/tutorials/incompressible/icoFoam/cavity$
could you help me ? what is wrong?

thanks

-----------------------

I am so sorry !
I have solve this problem by :
Code:
sudo apt-get install paraview
sorry again

Last edited by wyldckat; May 8, 2014 at 14:55. Reason: merged two posts, since they were posted a few minutes apart
bieshuxuhe is offline   Reply With Quote

Old   May 9, 2014, 00:35
Default follow this link instead
  #6
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 12
codder is on a distinguished road
This thread is out-dated. It referred to installation before this wiki page was created:

http://openfoamwiki.net/index.php/In...oam-extend-3.0

Best, E
codder is offline   Reply With Quote

Old   May 19, 2014, 11:35
Default foam-extend-3.0 on Centos 6.5
  #7
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 48
Rep Power: 12
tladd is on a distinguished road
Eric

The wiki page is for Fedora 19. It is not necessarily the same in RHEL/CentOS 6, which is based on Fedora 12.

Tony
tladd is offline   Reply With Quote

Old   May 7, 2019, 08:47
Default
  #8
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi all,


Sorry, I know that this thread is rather old, but I thought I'd add to it anyway: I just installed foam-extend-3.1 on Scientific Linux 7.3 using these instructions: https://idurun.com/2015/01/24/instal...1-on-centos-7/


I found those really useful, and as I didn't see this link on the OpenFOAM Wiki, I thought I'd post it here, perhaps it could be added.


Cheers,
Sita
wyldckat likes this.
sita is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sig Density Based Solver installation with FOAM Extend 3.2 qjh888 OpenFOAM Bugs 0 September 21, 2016 08:16
[foam-extend.org] Foam extend (>3.0) on Windows using cygwin. Saideep OpenFOAM Installation 0 May 30, 2016 10:40
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 07:25.