|
[Sponsors] |
[foam-extend.org] OpenFOAM-1.6-ext Compilation Error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 6, 2011, 08:09 |
OpenFOAM-1.6-ext Compilation Error
|
#1 |
New Member
Join Date: Mar 2011
Posts: 9
Rep Power: 15 |
Dear all,
I've just installed OpenFOAM-1.6-ext on Ubuntu Maverick in order to test GGI for a case. I've modified the .bashrc file like: #. /opt/openfoam171/etc/bashrc . /usr/lib/OpenFOAM-1.6-ext/etc/bashrc The SimpleFOAM solver is working, since the binary is available. Trying to compile the MRFSimpleFoam solver, I got the following error: SOURCE=MRFSimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MRFSimpleFoam.o MRFSimpleFoam.C:34: fatal error: fvCFD.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/MRFSimpleFoam.o] Error 1 Does anybody have an idea what the problem is? Why fvCFD.H cannot be found? Something to do with environmental variables? Thanks in advance. Taner |
|
May 6, 2011, 09:22 |
|
#2 |
New Member
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Hi Taner,
You should also install the: openfoam-1.6-ext-dev package, which contains the source files. |
|
May 6, 2011, 10:21 |
|
#3 |
New Member
Join Date: Mar 2011
Posts: 9
Rep Power: 15 |
Hi lrunber,
perfect! Installing openfoam-1.6-ext-dev solved the problem. Thanks a lot. Taner |
|
May 6, 2011, 10:37 |
|
#4 |
New Member
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
happy to have been able to help
|
|
April 2, 2012, 12:36 |
|
#5 |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello,
I am having the same error, but I am using Fedora 15. and I installed a fedora package from the OpenFoam site, so am I missing some libraries or something? my exact error is : "C:33:19: fatal error: fvCFD.H: No such file or directory" Thanks for your help, Nadine |
|
April 3, 2012, 06:01 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Nadine,
I'm sorry to say that your post isn't making much sense Because:
Best regards, Bruno
__________________
|
|
April 3, 2012, 10:28 |
|
#7 |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello Bruno,
Thank you for answering me in such a short time. I think I installed Openfoam correctly, so my problem isn't an installation problem. I was trying some features of Openfoam, so I create a new simple solver, and according to the instructions I have to compile it in order to use it, and that's how I got this error saying that fvCFD.H doesn't exsist while it does!!! and my solver can't be compiled! for informations: my solver call this finite volume libary. Thanks again for your help Best regards, Nadine |
|
April 3, 2012, 21:04 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Nadine,
Without you describing what specific steps you are taking to create said new solver... I'm going to suggest that you follow this tutorial instead: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam If you still have problems with this one, then it would also be useful to know if your Fedora 15 installation has been done with i686 or x86_64: Code:
uname -m Bruno
__________________
|
|
April 4, 2012, 09:51 |
|
#9 |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello Bruno,
I am really grateful for your continuous help! Actually what I call a new solver was really similar to the example that you sent me but with other instructions. So by following the Wiki instructions I didn't get any error, than I tried their way for adding my solver and it worked! Now I am not getting any error any more, but I tried to find what was missing in the first method but I didn't succeed Anyway to answer your question I installed OpenFoam-2.1.0 for 64 bits! Thanks again for your Help! Best regards, Nadine |
|
March 7, 2018, 22:48 |
|
#10 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16 |
||
March 17, 2018, 17:03 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
error compiling modified applications | yvyan | OpenFOAM Programming & Development | 21 | March 1, 2016 04:53 |
Mesquite - Adaptive mesh refinement / coarsening? | philippose | OpenFOAM Running, Solving & CFD | 94 | January 27, 2016 09:40 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |