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

OpenFOAM-1.6-ext Compilation Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 6, 2011, 08:09
Default OpenFOAM-1.6-ext Compilation Error
  #1
New Member
 
Join Date: Mar 2011
Posts: 9
Rep Power: 5
taner is on a distinguished road
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
taner is offline   Reply With Quote

Old   May 6, 2011, 09:22
Default
  #2
New Member
 
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 6
lrunber is on a distinguished road
Hi Taner,
You should also install the:
openfoam-1.6-ext-dev
package, which contains the source files.
lrunber is offline   Reply With Quote

Old   May 6, 2011, 10:21
Default
  #3
New Member
 
Join Date: Mar 2011
Posts: 9
Rep Power: 5
taner is on a distinguished road
Hi lrunber,

perfect! Installing openfoam-1.6-ext-dev solved the problem.

Thanks a lot.

Taner
taner is offline   Reply With Quote

Old   May 6, 2011, 10:37
Default
  #4
New Member
 
lazio
Join Date: Apr 2010
Posts: 22
Rep Power: 6
lrunber is on a distinguished road
happy to have been able to help
lrunber is offline   Reply With Quote

Old   April 2, 2012, 12:36
Default
  #5
New Member
 
nadine moussa
Join Date: Mar 2012
Posts: 24
Rep Power: 4
nadine is on a distinguished road
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
nadine is offline   Reply With Quote

Old   April 3, 2012, 06:01
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Nadine,

I'm sorry to say that your post isn't making much sense Because:
  1. You've posted on a thread for 1.6-ext, which is a variant of OpenFOAM, i.e., it is not the official version.
  2. You're talking about installing a "fedora package", which should imply that you don't need to compiled anything: http://www.openfoam.org/download/fedora.php
  3. The error you're getting implies that you are trying to compile OpenFOAM on Fedora!
  4. How exactly did you get that error?
My guess is that you are following the wrong instructions... you're probably looking for either one of these instructions:
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 3, 2012, 10:28
Default
  #7
New Member
 
nadine moussa
Join Date: Mar 2012
Posts: 24
Rep Power: 4
nadine is on a distinguished road
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
nadine is offline   Reply With Quote

Old   April 3, 2012, 21:04
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 4, 2012, 09:51
Default
  #9
New Member
 
nadine moussa
Join Date: Mar 2012
Posts: 24
Rep Power: 4
nadine is on a distinguished road
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
nadine is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 20:22.