|
[Sponsors] |
[foam-extend.org] Problems compiling foam-extend-4.0 + fsiFoam on Ubuntu+WSL |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#21 | |||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answer: Due to how the foam-extend development group wanted the instructions to look like on the wiki (generic and simple to use), I had to write the custom steps for specific versions on the side pages... in theory it's more "efficient", but in practice it's confusing...
To be 100% certain that everything will work as intended, the following commands must give the respective outputs that I got on my Ubuntu 16.04 installation:
If I don't make a mistake copy-paste-adapting the steps, here is the intended workflow:
Last edited by wyldckat; April 25, 2019 at 11:07. Reason: fixing a few mistakes, see "edit:" entries |
||||||
![]() |
![]() |
![]() |
![]() |
#22 |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
Hi Wyldckat,
Thank you for these detailed instructions. I am trying it now. The first section all gave the output you have. Do you intend your step 4 ("./Allwmake > log.make 2>&1...") to be run one at a time, or together? I don't understand how but I am able to copy/paste code in multiple lines seemingly fine, but this one seems like one at a time. It is currently running "./Allwmake > log.make 2>&1". A possible concern/point of confusion: I use a file browser called Nautilus, and it is showing that the "foam-extend-4.0" folder only contains an "etc" folder, not all the stuff it had before...is this normal? How did ./Allwmake even run if there is no such file there? |
|
![]() |
![]() |
![]() |
![]() |
#23 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answers:
OK, then so far so good... Quote:
Quote:
![]()
Maybe you're seeing something else? You can double-check where you are in each window:
__________________
|
|||
![]() |
![]() |
![]() |
![]() |
#24 |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
I think something is wrong because I cannot open another Ubuntu terminal like I usually can, and my Task Manager shows no process for it. However, I think I am using 100% CPU so when I look at what is using it, it shows several instances of "cc1plus" each using up a portion of the CPU (the number of instances and percentages keep fluctuating).
|
|
![]() |
![]() |
![]() |
![]() |
#25 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
------ edit: I'm getting myself a bit ahead of time here, but I've been made aware on another thread that the optional line for building swak4Foam will not work all that well with Ubuntu 16.04... the solution is now given in post #7 on this thread: Error on foam-extend build/comilation Last edited by wyldckat; April 23, 2019 at 19:23. Reason: see "edit:" |
||
![]() |
![]() |
![]() |
![]() |
#26 |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
Things are finished running and I have attached the log summary. I can't see anything specific that went wrong, but then again I have no idea how to test things.
The tutorial folders are strange in that the ./Allrun files are outside the individual tutorials. What is the proper way to work inside foam-extend? |
|
![]() |
![]() |
![]() |
![]() |
#27 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings JBrake,
It's a holiday in Portugal today, so I'm taking a bit more time to look into this. Funny thing about using "foam-extend-4.0/Allwmake" is that it does not build anything from ThirdParty... so that's sort-of less one headache... because right now you have a mostly-working installation of foam-extend 4.0. What it's missing is the following:
As for the tutorial cases, it would have been useful to know to which cases you were referring to, but the convention is mostly the same for most OpenFOAM versions/forks/variants:
Bruno edit: I've finished testing, here are the commands needed to finish up your build:
Last edited by wyldckat; April 25, 2019 at 11:10. |
|
![]() |
![]() |
![]() |
![]() |
#28 | |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
The process stopped with nothing in the terminal, so I checked log.make3rd and as I expected, it stopped with this:
Quote:
Edit: By stop, I mean it gets stuck. There is no prompt in the terminal, as if it were still running, but it's using no CPU. Last edited by JBrake; April 25, 2019 at 16:51. |
||
![]() |
![]() |
![]() |
![]() |
#29 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
I have some good news about it getting stuck... this isn't a new issue and there is sort-of a fix: https://github.com/Microsoft/WSL/issues/3233
I was able to reproduce the issue with Ubuntu 16.04 on WSL (I was using a VM until now) and the issue is that the RPM database becomes corrupted due to a weird bug under WSL... the fix is to run the following command for repairing the RPM database: Code:
rpm --rebuilddb --dbpath $HOME/foam/foam-extend-4.0/ThirdParty/rpmBuild/rpmDB So, the steps needed for building the ThirdParty packages and wrap up foam-extend with success, should be as follows:
|
|
![]() |
![]() |
![]() |
![]() |
#30 |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
I think things finished with no errors, but I won't have time to test it today. Here is my log.make_summary from the second run.
Thank you so much for all the help and detailed instructions. I have a feeling working with foam-extend itself will present plenty of challenges and that I will be back on the forum in the near future. |
|
![]() |
![]() |
![]() |
![]() |
#31 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Finally, it seems to have built properly without problems, since the summary seems all OK.
It's missing ParaView, but after so much trouble to get to this point and given that you're working with WSL, you might as well use ParaView on Windows natively or use another OpenFOAM installation to give you ParaView from within WSL... |
|
![]() |
![]() |
![]() |
![]() |
#32 |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
Thanks again wyldckat!
The main reason I am needing foam-extend in the first place is to try fsiFoam. After installing I get the same bug that other users using fe4.0 have, and there is a thread about how to fix it here: https://www.cfd-online.com/Forums/op...tutorials.html Should I just trust this kind of thread and follow it in hopes that things work? Why haven't the installation instructions simply been updated and/or fixed to incorporate the necessary changes? |
|
![]() |
![]() |
![]() |
![]() |
#33 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answer:
Quote:
Quoting myself from a recent post: Quote:
By the way, there is a new sub-forum for these FSI toolkits and FSI simulations here: https://www.cfd-online.com/Forums/op...e-interaction/ |
|||
![]() |
![]() |
![]() |
![]() |
#34 | |
Member
Justine
Join Date: Nov 2018
Posts: 30
Rep Power: 7 ![]() |
Quote:
I noticed that typing "paraFoam" works as before when I used OpenFoam (not extend), but it has reverted to some older version of paraview? How do I update paraview and make sure I'm using that version with my new foam-extend environment, or do I have to use this older verion (4.4)? |
||
![]() |
![]() |
![]() |
![]() |
#35 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
You can easily activate a shell environment per terminal by following the instructions given here: https://openfoamwiki.net/index.php/I...nFOAM_versions I actually didn't expect for ParaView 4.4 to have built successfully with foam-extend, so I was going to give the same exact solution if it hadn't been built. Last edited by wyldckat; April 30, 2019 at 19:59. Reason: removed excess line breaks |
||
![]() |
![]() |
![]() |
![]() |
#36 |
New Member
Tom
Join Date: Nov 2018
Posts: 23
Rep Power: 7 ![]() |
Hi Wyldkat,
Do you know if there is a similar fix (editing the rpmbuild files, etc...) for Ubunutu 18.04? I have tried the solution for 16.04, and like expected, it did not work on 18.04. I did download 16.04 and try this fix on that version, and it works! Thank you very much! Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#37 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
__________________
|
||
![]() |
![]() |
![]() |
![]() |
#38 | |
New Member
Tom
Join Date: Nov 2018
Posts: 23
Rep Power: 7 ![]() |
Quote:
It crossed my mind that it might be worth trying to completely wipe FE4 and try again from scratch, but at this point I have work that I can't risk losing in my working (ish) version of Foam-Extend. Is there a way to get a clean install while maintaining the data and custom solvers I have in my current version? |
||
![]() |
![]() |
![]() |
![]() |
#39 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
But I'll have to take a look into this myself. WSL is a pain in the neck with these limitations... although it should be possible to compile foam-extend directly on Windows, so that's another way to do it cleanly. |
||
![]() |
![]() |
![]() |
![]() |
#40 |
New Member
Kushagra
Join Date: Aug 2019
Posts: 3
Rep Power: 7 ![]() |
Hi all,
Thanks to Wyldckat for the helpful answers. I followed the steps given on this forum, but facing errors in the final build using ./Allwmake runs. My .gz files is attached. Also, du -sh packages/ showed me 39 MB. Can someone please guide me on where I got it wrong? |
|
![]() |
![]() |
![]() |
Tags |
foam-extend 4.0, fsifoam |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 11:12 |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 04:20 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 04:04 |
[Other] cgnsToFoam problems with "QUAD_4" cells | lentschi | OpenFOAM Meshing & Mesh Conversion | 1 | March 9, 2011 04:49 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |