|
[Sponsors] |
[foam-extend.org] NEW: Installation guide for foam-extend 4.1 on OpenFoamWiki |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2019, 10:03 |
NEW: Installation guide for foam-extend 4.1 on OpenFoamWiki
|
#1 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Hi All,
Since the requirements for foam-extend 4.1 have changed, I have put a new set of instructions on the openfoamwiki. They have been tested by me (and a colleague and students who are not Linux experts) and should work out-of-the-box. But let me know, if they don't. Ubuntu version 18.04 LTS and 19.10 is complete. CentOS 7 coming up. Have fun. Torsten |
|
December 4, 2019, 17:02 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
I was about to give a like your thread..
..until realising that I have already liked it. Thanks for your contribution. I really like foam-extend.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 8, 2019, 09:53 |
If is it possible to make an instruction of installation on Windows 7 Platform?
|
#3 |
New Member
Zhiyong GU
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
Thank you for your contribution! Recently, I have suffered tortures from compiling the source codes of foam extend on Windows 7 using MinGW, though I followed the instruction in documents of the codes strictly even the version of the dependences. I haven't compiled the scotch in ThirdParty successfull yet so I don't know how many errors I would face during compiling of the main codes. I really expect that an expert can help me
|
|
December 18, 2019, 13:48 |
Centos 7 instructions would be awesome!
|
#4 |
New Member
Anthony
Join Date: Nov 2019
Location: Missoula, MT
Posts: 3
Rep Power: 6 |
Thank you for posting Ubuntu instructions on the foam wiki. I would love an explanation of how to get things installed on Centos 7 when you have the time. I am currently working on a wing-flapping simulation which some fairly large deformations (90 deg pitching about the x-axis, 30ish about the y and z) and the motion solvers built into Openfoam 7 don't seem to be able to handle that degree of morphing. I am hoping that laplaceFaceDecomposition can do the trick!
Regards, Anthony |
|
December 19, 2019, 05:16 |
|
#5 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Hi Anthony,
Thanks for the nudge. Instructions for CentOS are online now. I only have CentOS on the cluster and that is using the Open-HPC environment, but had a quick test in an old VMware image and it seems to work. Let me know if it does for you. There may be an issue compiling swak4foam (the last step in the process), so if you get an error referring to BISON and "maintenancescript", let me know. Best T |
|
December 19, 2019, 13:29 |
Centos 7 is working, I think
|
#6 |
New Member
Anthony
Join Date: Nov 2019
Location: Missoula, MT
Posts: 3
Rep Power: 6 |
Thank you for getting on that so quickly!
I got a weird response when trying to install the first two dependencies (see code below). But strangely enough, things seem to be compiling after typing Code:
./Allwmake.firstInstall Code:
[al113405@cfd Desktop]$ sudo yum -y groupinstall Development\ Tools [sudo] password for al113405: Sorry, try again. [sudo] password for al113405: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.shastacoe.net * centos-sclo-rh: mirrors.cat.pdx.edu * centos-sclo-sclo: repo1.sea.innoscale.net * epel: d2lzkl7pfhq30w.cloudfront.net * extras: mirrors.xmission.com * updates: mirror.web-ster.com Maybe run: yum groups mark install (see man yum) No packages in any requested group available to install or update [al113405@cfd Desktop]$ sudo yum -y install wmake Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.shastacoe.net * centos-sclo-rh: mirrors.cat.pdx.edu * centos-sclo-sclo: repo1.sea.innoscale.net * epel: d2lzkl7pfhq30w.cloudfront.net * extras: centos.sonn.com * updates: mirror.web-ster.com No package wmake available. Error: Nothing to do [al113405@cfd Desktop]$ |
|
December 19, 2019, 16:16 |
Centos 7 working
|
#7 |
New Member
Anthony
Join Date: Nov 2019
Location: Missoula, MT
Posts: 3
Rep Power: 6 |
Everything seems to work! I don't know if swak4foam ended up installing. I forgot to log the Allmake.
Strangely enough, it seems that laplaceFaceDecomposition is gone from foam-extend. I'll have to do some searching to see if I can find it. Thank you, Anthony |
|
December 28, 2019, 16:20 |
|
#8 | |
New Member
Jeff
Join Date: Sep 2018
Location: UNLV
Posts: 4
Rep Power: 8 |
Quote:
Apologies if there is a better thread into which to ask this question. I haven’t found a related solution (or install symptoms) in other threads. Thank you, Jeff |
||
January 21, 2020, 06:10 |
|
#9 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Torsten,
Thanks a lot for updating the Wiki for foam-extend-4.1! I just used your instructions to install foam-extend-4.1 from source, under Ubuntu-18.04 LTS (clean install). I was surprised to notice that apparently Ubuntu-18.04 LTS comes without OpenMPI; I had to install libopenmpi-dev and openmpi-bin manually. The Allwmake script is still running, so I'm not sure yet whether my install will be successful, but at least I wanted to let you know that perhaps you should add libopenmpi-dev and openmpi-bin to the list of packages to install. Cheers, Sita |
|
January 21, 2020, 06:38 |
|
#10 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Hi Sita,
most FOAM installation ship their own MPI to avoid incompatibilities with the system wide installation of openMPI. You can force the installation to use a system MPI, but if you followed the instructions, it will compile a local version of openMPI which will be installed in the foam directory and FOAM will ignore the systemwide installation. That said, if you need openMPI for other things, then the system-installation and the FOAM installation should be happy to cohabit on the same system (i have a system MPI, but use the FOAM openMPI for convenience and to not have to troubleshoot students' systems). |
|
January 21, 2020, 06:44 |
|
#11 | |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
No, the problems would only be the make system asking you to go and run the maintanancescript (to install local versions of Bison and LUA). Your problems seem to start quite a lot earlier (on line 49).
Quote:
|
||
January 21, 2020, 08:05 |
|
#12 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Torsten,
Ah, right, I must have missed something in the instructions then; my install somehow uses the system MPI. By the way, the build finished successfully. I got a few errors (metisDecomp, MGridGenGAMGAgglomerate, mgMeshLevel, dbnsFoam, dbnsTurbFoam, compressible), but as long as I don't touch any of these, everything works fine so far, so thanks again for those instructions! Sita P.S. Something goes wrong with the ParaView install too. According to the log file, the system installed QT was used, but QT_BIN_DIR is not set, so the installation of ParaView was skipped altogether. My foam-extend (git clone) doesn't have a prefs.sh, only prefs.sh-EXAMPLE and prefs.sh.mingw, am I supposed to create this manually, using the example? Quote:
Last edited by sita; January 21, 2020 at 10:02. |
||
January 22, 2020, 06:12 |
|
#13 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Nearly there now, just can't seem to get paraFoam to work completely. With the Third Party ParaView, I kept getting errors (latest one: "gcc: error: ARGS: no such file or directory", like also reported in this thread - without solutions unfortunately). So I decided to install ParaView separately, and go with this system install instead.Now at least ParaView works, but upon entering paraFoam, I got this warning:
Code:
Cannot use ParaView reader module library (PVFoamReader) The PV_PLUGIN_PATH environment value is not set Continuing with builtin reader: paraFoam -vtk Created temporary 'cavity.foam' Code:
Cannot use ParaView reader module library (PVFoamReader) - not built? Consider building the reader module cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders ./Allwclean ./Allwmake Continuing with builtin reader: paraFoam -vtk Created temporary 'cavity.foam' The built-in vtk reader works alright, it just gives some warnings every time, but still, I'd like to have everything working as it should. Does anyone have any tips on how best to fix this? Many thanks, Sita P.S. In the end I did create a prefs.sh file manually, using the example file. This got me rid of the errors I mentioned earlier, but clearly it didn't fix quite everyting |
|
January 29, 2020, 09:28 |
|
#14 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi all,
I'm having a terribly hard time getting ParaView installed properly under foam-extend-4.1. As I explained in my previous post, with the system installed ParaView the PVFoamReader won't work. If I try to build the ThirdParty version of ParaView, I get a CMake error about not being able to find some Qt5 files. However, in my prefs.sh I explicitly specify Code:
export WM_THIRD_PARTY_USE_QT_486=1 Many thanks, Sita |
|
January 29, 2020, 10:52 |
|
#15 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
||
January 29, 2020, 10:55 |
Paraview problems
|
#16 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Not sure what causes the paraview problems - I cannot reproduce them on my system (following instructions based on a bare-metal installation). I have paraview 5.7 installed from the tar-ball download on all my systems which works fine with the built-in reader.
It should work out of the box (fe41 creates a $CASENAME.foam file when paraFoam is called, and then starts paraview $CASENAME.foam). If it doesnt, you could try: a) Either create a file $CASENAME.foam b) or use the --native-reader option of paraFoam |
|
January 29, 2020, 12:50 |
|
#17 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Torsten,
Thanks, I'll give that a try. Cheers, Sita |
|
February 1, 2020, 05:12 |
|
#18 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
For those who (unfortunately) runs WSL, the easiest (ok not the easiest, but this way you skip paraview that brigs along a lot of useless stuff under wsl) way to install foam-extend-4.1 is the following:
1. Download .deb package in $HOME and create a temp working directory (like mkdir ~/fe41) 2. Unpack the package with Code:
sudo dpkg-deb -R foam-extend-4.1_blablalba.deb ~/fe41/ Code:
sudo mv ~/fe41/foam /opt/ sudo chown -r $USER /opt/foam sudo rm -rf ~/fe41 Code:
sudo apt install build-essentials m4 bison flex libopenmpi-dev Should run under clean ubuntu 18.04, if it doesn't just fix any missing dep. Custom solver compilation works as expected and all the tutorials ran fine. If you have any issue try to ask but it should go flawlessly. Obviously forget about paraFoam, as usual postprocessing is made with standard paraview. bye |
|
February 2, 2020, 12:43 |
|
#19 | |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Quote:
The debian package does not have the bugfix that allows to use the GAMG solver for the pressure equation in parallel runs. |
||
February 3, 2020, 08:40 |
|
#20 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Torsten,
In the end I decided to delete everything and start from scratch (Ubuntu 18-04). Unfortunately I'm running into the exact same errors again (foam-extend can't find OpenMPI, paraFoam not working, etc.). So, when you wrote Quote:
If you have any ideas as to what I'm doing wrong, please let me know. Thanks, Sita EDIT: just to be sure, I set export QT_THIRD_PARTY=1. In that case, the QT ThirdParty scripts are supposed to take care of setting QT_DIR and QT_BIN_DIR, but still I got the message: QT_BIN_DIR not set ..... Proceed without compiling ParaView? What's happening here? |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation Guide for OpenFOAM-1.6-ext on Mac OS X Mountain Lion | BernhardGrieser | OpenFOAM Installation | 4 | October 26, 2013 15:39 |
OpenFOAM installation in SL 6.3 (guide req) | som87 | OpenFOAM Installation | 2 | September 27, 2012 17:21 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
can you please share STAR CD installation guide | Bhavani | Siemens | 1 | November 30, 2005 11:17 |
Fluent 5.5. What the differences with fluent 5.3?? | confused | FLUENT | 2 | July 29, 2001 21:58 |