|
[Sponsors] |
February 25, 2010, 06:44 |
|
#41 |
New Member
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 17 |
Hi! In your log file I saw: flex not found. Did you check you have flex installed?
Regards, Maja |
|
February 25, 2010, 06:51 |
|
#42 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Hmm no I didn't have it, is it absolutely vital for compiling? If so, thanks! So I had to install binutils-dev and the g++ compiler...is there anything else that I need? MPI?? Btw, running on Ubuntu 9.04...can't someone put up a binary release of the dev version?
Thanks for the replies... |
|
February 25, 2010, 06:57 |
|
#43 | |
New Member
Join Date: Nov 2009
Posts: 3
Rep Power: 17 |
See the post of Norman...
packages relative to mpi, I had to install befored it worked are: mpfr-(dev) and gmp, maybe you need some more? Quote:
|
||
February 25, 2010, 07:03 |
|
#44 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi
It seems that the compile log you posted came from the application part of the source. I would recommend to you to out-comment the compilation of the application part in Allwmake and focus on the src part as a first step. One of the error-messages states that you do not have meshTools, which is one of the OF-libs. When the src compiles successfully then you can move on to the applications. Good luck, Niels |
|
February 25, 2010, 07:05 |
|
#45 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Thanks, Niels and dadros. Niels, what is a test to see whether the src has compiled properly?
In /OpenFOAM-1.5-dev/wmake/src where allwmake runs make command (line 8 of the allwmake script) the output is "Nothing to be done for 'all' " is this right? Last edited by rieuk; February 25, 2010 at 07:30. |
|
February 25, 2010, 07:44 |
|
#46 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Ok everything compiled this time, thanks everyone.
However I have one critical error in my foamInstallationTest: WARNING: Conflicting installations: OpenFOAM settings : /home/pavan/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/gcc current path : /usr/bin/gcc CRITICAL ERROR OF-1.6 source command is commented out in ~/.bashrc file. What more do I need to do? Also, how does one compile paraview in OF-1.5-dev? Cheers |
|
February 25, 2010, 07:46 |
|
#47 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
EDIT: I only saw the latest reply after posting my reply,
so you can ignore it if your OpenFOAM is fine. Hi, If you 'cd $FOAM_SRC' and then once there './Allwmake', that will start compiling the src directory. You can post here any errors you get. Philip |
|
February 25, 2010, 09:10 |
|
#48 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
The compiler used by OpenFOAM is set in '$WM_PROJECT_DIR/etc/settings.sh' at about line 110, you can set OpenFOAM to use the system compiler or the OpenFOAM compiler.
That could get rid of that error, but personally if everything compiles OK and your solvers and utilities work then I would not worry about it. With regards to paraview, you can download the binary version from the paraview website. You can then use the foamToVTK command to convert your cases to VTK file which can be opened in paraview. If you want to compile paraFOAM, there are plenty of explanations either on the wiki or on the forum. If you have a specific compilation error with paraFOAM then you can post it. Hope that helps a bit, Philip |
|
February 25, 2010, 09:17 |
|
#49 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Thanks, Phil.
This is the error when I try to build ParaView: pavan@pavan-laptop:~/OpenFOAM/ThirdParty$ buildParaView3.3-cvs /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/bin/buildParaView3.3-cvs: 59: initialiseVariables: not found /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/bin/buildParaView3.3-cvs: 65: buildParaView: not found cd: 66: can't cd to /home/pavan/OpenFOAM/ThirdParty/ParaView-3.3-cvs/platforms/linuxGcc The folder it is trying to cd to has an extra hyphen in it whereas the real one does not. I'm thinking this buildParaView3.3-cvs script is outdated. I have OF-1.6 installed and paraview works find when I source the OF-1.6 files. Is there a way to copy the OF-1.6 paraview installation to the OF-1.5-dev one? |
|
February 25, 2010, 11:04 |
|
#50 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi,
I usually use foamToVTK and paraview so I have not got much experience with paraFoam compilation. Maybe someone else here can help, either way I think there are quite a few threads on compiling paraFoam, you might find a same problem with the solution in one of them. Philip |
|
February 25, 2010, 11:21 |
|
#51 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Well, I changed the directory name to "ParaView-3.3-cvs" so it could find what it was looking for. I still get "initialiseVariables: not found" and "buildParaView: not found" but the installation goes ahead.
However when I run paraFoam I get: paraview: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory ??? |
|
February 25, 2010, 11:53 |
Help me with my udf plzzzz
|
#52 |
New Member
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 16 |
dude can any 1 pls help me with my udf .
Im running simulation with a cylinder ,sphere inside it for Non Newtonian fluid. I recently started working with fluent ,hope u could lead ur helping hand Dimensions of cylinder L=20cms D=4cms d(sphere)=2cms Parabolic Velocity equation be V=Vmax(1-r/R)^(n+1/n) my code: #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real y,r,R; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); r = pow(x,2)+pow(y,2); // Vmax=4.1,R=o.o4// F_PROFILE(f, thread, position) = Vmax *pow(1-r/R,(n+1)/n); } end_f_loop(f, thread) } Please tell the changes i have to make ,thank u |
|
February 25, 2010, 11:54 |
plssss help
|
#53 |
New Member
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 16 |
Folks,Please reply asap
|
|
February 25, 2010, 12:01 |
|
#54 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Mate, the first change you have to make is to start posting on the Fluent board.
Back on topic ... paraFoam in OF-1.5-dev : anyone got this working? |
|
February 25, 2010, 12:45 |
|
#55 |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Hey, all just want to say that paraFoam now works and launches paraView. HOWEVER paraView can not find a suitable reader for the file -- PV3FoamReader was not compiled. I'm not able to compile it and here's the error message:
+ cmake ../.. -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works Warning: CMake is forcing CMAKE_CXX_COMPILER to "/bin/c++" to match that imported from VTK. This is required because C++ projects must use the same compiler. If this message appears for more than one imported project, you have conflicting C++ compilers and will have to re-build one of those projects. Was set to /usr/bin/c++ -- Loading ParaView CMake commands -- Loading ParaView CMake commands - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Found Qt-Version 4.5.0 -- Configuring done -- Generating done -- Build files have been written to: /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt + [ linux = darwinPpc -o linux = darwinIntel ] + make [ 9%] Generating qrc_PV3FoamReader.cxx [ 18%] Generating moc_PV3FoamReaderPluginImplementation.cxx Scanning dependencies of target PV3FoamReader [ 27%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o make[2]: /bin/c++: Command not found make[2]: *** [CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o] Error 127 make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2 make: *** [all] Error 2 ??? |
|
February 25, 2010, 13:36 |
|
#56 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Quote:
I think you have to install the g++ package (maybe it's called gcc-c++ or something like that), and that should fix that error. Philip |
||
February 25, 2010, 13:38 |
|
#57 |
New Member
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 16 |
Hi
thx for the reply then the code is correct only right ?? |
|
February 25, 2010, 13:41 |
|
#58 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
srinivas,
I believe you are posting in the wrong forum, this is an OpenFOAM installation forum not a fluent programming forum. You can find the right forum here: http://www.cfd-online.com/Forums/fluent/ Philip |
|
February 26, 2010, 00:10 |
|
#59 | |
Senior Member
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 17 |
Quote:
from /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/moc_PV3FoamReaderPluginImplementation.cxx:10: /usr/include/qt4/QtCore/qstring.h:65: error: expected initializer before ‘<’ token /usr/include/qt4/QtCore/qstring.h:175: error: ‘va_list’ has not been declared /usr/include/qt4/QtCore/qstring.h:478: error: expected unqualified-id before ‘&’ token /usr/include/qt4/QtCore/qstring.h:478: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/qt4/QtCore/qstring.h:479: error: ‘string’ in namespace ‘std’ does not name a type /usr/include/qt4/QtCore/qstring.h:485: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/qt4/QtCore/qstring.h:485: error: ISO C++ forbids declaration of ‘QStdWString’ with no type /usr/include/qt4/QtCore/qstring.h:486: error: ‘QStdWString’ does not name a type /usr/include/qt4/QtCore/qstring.h:1026: error: ‘string’ in namespace ‘std’ does not name a type /usr/include/qt4/QtCore/qstring.h:1029: error: expected unqualified-id before ‘&’ token /usr/include/qt4/QtCore/qstring.h:1029: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/qt4/QtCore/qstring.h: In static member function ‘static QString QString::fromStdString()’: /usr/include/qt4/QtCore/qstring.h:1030: error: ‘s’ was not declared in this scope /usr/include/qt4/QtCore/qstring.h: At global scope: /usr/include/qt4/QtCore/qstring.h:1033: error: ‘QStdWString’ does not name a type /usr/include/qt4/QtCore/qstring.h:1047: error: expected ‘,’ or ‘...’ before ‘&’ token /usr/include/qt4/QtCore/qstring.h:1047: error: ISO C++ forbids declaration of ‘QStdWString’ with no type /usr/include/qt4/QtCore/qstring.h: In static member function ‘static QString QString::fromStdWString(int)’: /usr/include/qt4/QtCore/qstring.h:1048: error: ‘s’ was not declared in this scope In file included from /usr/include/qt4/QtCore/qobject.h:50, from /usr/include/qt4/QtCore/QObjectList:1, from /home/pavan/OpenFOAM/ThirdParty/ParaView-3.3-cvs/Qt/Core/pqPlugin.h:36, from /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/PV3FoamReaderPluginImplementation.h:38, from /home/pavan/OpenFOAM/OpenFOAM-1.5-dev/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linuxGccDPOpt/moc_PV3FoamReaderPluginImplementation.cxx:10: /usr/include/qt4/QtCore/qlist.h: At global scope: /usr/include/qt4/QtCore/qlist.h:155: error: ‘ptrdiff_t’ does not name a type /usr/include/qt4/QtCore/qlist.h:202: error: ‘ptrdiff_t’ does not name a type /usr/include/qt4/QtCore/qlist.h:281: error: ‘ptrdiff_t’ does not name a type /usr/include/qt4/QtCore/qlist.h:315: error: expected unqualified-id before ‘<’ token /usr/include/qt4/QtCore/qlist.h:315: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/qt4/QtCore/qlist.h:317: error: ISO C++ forbids declaration of ‘list’ with no type /usr/include/qt4/QtCore/qlist.h:317: error: invalid use of ‘::’ /usr/include/qt4/QtCore/qlist.h:317: error: expected ‘;’ before ‘<’ token /usr/include/qt4/QtCore/qlist.h:321: error: expected `;' before ‘private’ /usr/include/qt4/QtCore/qlist.h: In static member function ‘static QList<T> QList<T>::fromStdList()’: /usr/include/qt4/QtCore/qlist.h:316: error: ‘list’ was not declared in this scope /usr/include/qt4/QtCore/qlist.h:316: error: ‘back_inserter’ is not a member of ‘std’ make[2]: *** [CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o] Error 1 make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2 make: *** [all] Error 2 ??? |
||
February 26, 2010, 05:11 |
|
#60 |
New Member
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 17 |
Hi again!
My OpenFoam 1.5-dev runs perfectly. But paraFoam does not! It says: paraview: symbol lookup error: /usr/lib/libmpi_cxx.so.0: undefined symbol: ompi_registered_datareps I found another thread and saw you had the same problem about half a year ago . But I didn't get the right solution there. I ran foamInstallatioTest. Here is my log file. Here it is: Executing /home/maja/OpenFOAM/OpenFOAM-1.5-dev/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: maja-laptop OS: Linux version 2.6.31-19-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/maja/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/maja/OpenFOAM/maja-1.5-dev yes no $WM_THIRD_PARTY_DIR /home/maja/OpenFOAM/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/maja/OpenFOAM/OpenFOAM-1.5-dev yes yes yes $FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes $FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no $WM_DIR ...maja/OpenFOAM/OpenFOAM-1.5-dev/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes $FOAM_USER_LIBBIN ...OAM/maja-1.5-dev/lib/linux64GccDPOpt yes yes no $MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of OpenFOAM Supplied version: 4.3.1 User version : ../src/configure 4.4.1 Minimum required: 4.2.0 gcc ...figure WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.12 /bin/gzip tar 1.22 /bin/tar icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_maja-laptop Successful yes Pinging_localHost Successful yes Test_rsh: Unsuccessful_connection_refused* yes Test_ssh: Successful yes (*) Only one of rsh or ssh is required by the OpenFOAM enviroment. ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. I think the problem is similar to yours. Some problem with gcc, or maybe not? Missing libraries? I checked mpi and similar stuff. I spent so much time already... Thanks for any help!!! Maja |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:13 |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:12 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 07:28 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
OpenFOAM Version 1.5 Released | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 14, 2008 19:22 |