Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04
Hello,
I tried to install foam-extend-4.0 on openSUSE Leap 42.2. I get this: Quote:
1) https://openfoamwiki.net/index.php/I...om_source_code 2) https://openfoamwiki.net/index.php/I...d-4.0/openSUSE Somehow it seems something is wrong about this instructions. I'm pretty sure about it. Let's see the problem by stating the installation instructions on a single thread:
|
[foam-extend-4.0] Problems installing on openSUSE
Hello,
I have a log file after my first attempt to install foam-extend-4.0. What command should I type in order to compile&install the files those gave something like ' ...Error 1' or '....Error 2'. ? Sincerely |
Dear ordinary,
first of all you have to check out the errors you get and get rid of them. After that you have to run the Allwmake command again or you go to the particular folder / sources and compile it yourself. However, sometimes some unimportant libraries fail which is not worth to get rid of. What you can do in addition: Code:
src Code:
src Good luck. |
Thank you very much Tobias. I think the steps those you have said are missing in the Wiki page. They should be added into Wiki page which considers the installation progresses always perfect and without any errors.
Quote:
Quote:
Thank you very much for your help. Best regards |
Dear Ordinary,
every time you open a new terminal you have to load the OpenFOAM environment by sourcing the bashrc or cshrc file (depending on the system/shell you are using). If you are using bash you have to source the following file: Code:
source $HOME/foam/foam-extend-4.0/etc/bashrc Code:
fe40 After that you are able to compile FOAM and use FOAM. To ensure that everything is fine, you can check out: Code:
echo $WM_PROJECT_DIR Code:
shorty@~: fe40 The error you get is hopefully (I would say) just the mistake of forgetting to load the environment of FOAM. PS: If the variable $WM_PROJECT_DIR is zero, you probably did not load the environment ;) |
Thank you again. I forget to type fe40 (on other laptop I just source it and it automatically works--- source $HOME/foam/foam-extend-3.2/etc/bashrc ---)
As you said that part is ok: Quote:
Emre |
1 Attachment(s)
Hello again,
I'm sorry for disturbing you again but I have errors after ./Allwmake. It is attached to this post . All I know:
Emre |
1 Attachment(s)
Here is the results of ./Allwmake:
Attachment 54686 |
I think other people are more experienced in Suse - never did it there so I cannot help you directly. However, the scotchDecomposition failure is not a big deal - just ignore that if you are not interested in scotchDecomposition. The problem you have is:
Code:
/home/emre/foam/foam-extend-4.0/lib/linux64GccDPOpt/libfoam.so: undefined reference to `lam_mpi_sum' |
Thanks, I'll keep this thread posted whether I'll succeed or not.
|
Quote:
Stick this in your .bashrc Code:
export PATH=${PATH}:/usr/lib64/mpi/gcc/openmpi/bin/ They you obviously have to source your bashrc and load your fe40 environment again. Code:
source ~/.bashrc Code:
sudo zypper in lam-devel |
I failed and tried to install Ubuntu. I think it's better because there is much better support, especially you can install OpenFOAM easily.
First I installed (I think it's compiled, not source code which needs to be compiled) OpenFOAM v4.1. Then I installed foam-extend-4.0. I don't know how but foam-extend installtion was perfect. Even not a single error. I think there are two options for that: 1) Maybe installing OpenFOAM-v.41 comes with necessary files those always give errors during installation. 2) Maybe Ubuntu 16.04 LTS is perfect for foam-extend-4.0. Thanks |
Greetings to all!
@ordinary: Sorry for taking so long to look into this, but last weekend I managed to start looking into this and I've finally managed to re-test the installation instructions. The problem was that Open-MPI was not found, even if it was installed. I have updated the wiki pages recently for all foam-extend versions, regarding openSUSE, where the one for foam-extend 4.0 is this one: https://openfoamwiki.net/index.php/I...#openSUSE_42.1 The update is regarding the need to use the following command before sourcing foam-extend's shell environment: Code:
source /etc/profile.d/mpi-selector.sh Code:
source /etc/profile.d/mpi-selector.sh Code:
foam Bruno |
Hello again,
I'm sorry to disturb the silence but I'm trying to install foam-extend-4.0 desperately. I thank you all for the help you provided. I have decided to use Ubuntu 16.04 as Tobias uses and started to install by following two links as usual: 1) https://openfoamwiki.net/index.php/I...oam-extend-4.0 2) https://openfoamwiki.net/index.php/I...end-4.0/Ubuntu I checked log file by Ctrl+F : 'Error'. Only found 1 Error. But there were also some lines had drawn my attention: This goes on and on. Code:
Making dependency list for source file db/IOstreams/Pstreams/PstreamReduceOps.C Code:
Making dependency list for source file ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C Apart from that, here is my only Error that I encountered: Code:
PluginFunctions/isStateFunctionPlugin.C:46:42: fatal error: FaFieldValueExpressionDriver.H: No such file or directory Code:
acer@acer-laptop:~/foam/foam-extend-4.0/bin$ ./foamInstallationTest Code:
/home/acer/foam/foam-extend-4.0/ThirdParty Code:
/home/acer/foam/foam-extend-4.0 Code:
Checking basic system... Compressed log file is 674 kb. I can't upload due to max storage: Quote:
And normal log file: https://www.dropbox.com/s/wtrsg4c2wqn4xl1/log.emre?dl=0 Any help is appreciated. Regards. Emre |
Greetings Emre,
You can safely ignore the warning messages that state "could not open file". This is due to how foam-extend and OpenFOAM's wmake build system works. The error message for "isStateFunctionPlugin" can be safely ignored, because this refers to a specific plug-in in swak4Foam that is not commonly used. Therefore, foam-extend 4.0 should be working just fine in your installation. Best regards, Bruno |
Muito obrigado Bruno,
I'm delighted to recieve a reply by you. Best regards. Emre |
Time.H not found when compiling waves2Foam in FE 4.0
Hello,
I hope this thread still might be read by someone who can help! I am writing this here because i think this is rather a foam-extend-4.0 issue than a waves2Foam issue. I am trying to compile waves2Foam in foam-extend-4.0 which should work according to the manual. Right before the end I get this error stating that Time.H could not be found, which is true as it does not exist in the sources. I only can find foamTime.H. Error: Quote:
Thank you! Pascal. -- |
Hi Pascal,
I never used waves2Foam but your solution should be right. In addition, I do not use the extend version. Everything deviates to much - don't like it. If there is no Time.H file in your foam extend dictionary: Code:
cd $WM_PROJECT_DIR In the Foundation version, the Time.H file is located in ./OpenFOAM/db/Time/Time.H |
Hi Tobias,
thank you for your reply! I understand your reservations about the extend version - anyway, I had to go for it this time. In the ESI (I suppose this is what one calls the foundation version?) and the extended version the Time.H resp. the foamTime.H file is indeed located under src/OpenFOAM/db/Time resp. ./src/foam/db/Time/, so the basic directory structure is kept the same. Don't really understand why the renaming of Time.h was necessary (or was "foamTime.H" first?). Anyway, thank you for your confirmation of my solution! Best regards, Pascal. |
2 Attachment(s)
I am trying to simulate mi case using fe40 and swak4Foam and I get this error:
--> FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type groovyBC) on patch inlet of field U in file "/home/mapache/Documentos/aneurisma/coarse/0/U" You are probably trying to solve for a field with a generic boundary condition. those are my U and controlDict files Somebody can help me please. |
All times are GMT -4. The time now is 20:01. |