CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM 1.5 dev (https://www.cfd-online.com/Forums/openfoam/72365-openfoam-1-5-dev.html)

maja February 25, 2010 05:44

Hi! In your log file I saw: flex not found. Did you check you have flex installed?
Regards, Maja

rieuk February 25, 2010 05:51

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...

dadros February 25, 2010 05:57

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:

Originally Posted by norman1981 (Post 245060)
Ok, I see..
I suggest you these steps starting from a clean install (delete all the no 1.6 ThirdParty folders you have and the OpenFOAM-1.5-dev folder) trying to isolate the problem:
0- Check you have installed in your distro these packages:
binutils gcc flex bison bisonc++ build-essential
and the packages relative to mpi
1- Comment all the 1.6## reference in your .bashrc file
2- Add to the .bashrc file these lines:
---
. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
export PATH=$PATH\:$HOME/OpenFOAM/OpenFOAM-1.5-dev/wmake
---
3- type:
cd $HOME/OpenFOAM
wget http://mesh.dl.sourceforge.net/sourc...y.General.gtgz
wget http://mesh.dl.sourceforge.net/sourc....linuxGcc.gtgz
svn co https://openfoam-extend.svn.sourcefo...enFOAM-1.5-dev
tar xzf ThirdParty.General.gtgz
tar xzf ThirdParty.linuxGcc.gtgz
source ~/.bashrc
foam
./Allwmake >&log

Regards
Norman


ngj February 25, 2010 06:03

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

rieuk February 25, 2010 06:05

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?

rieuk February 25, 2010 06:44

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

bigphil February 25, 2010 06:46

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

bigphil February 25, 2010 08:10

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

rieuk February 25, 2010 08: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?

bigphil February 25, 2010 10:04

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

rieuk February 25, 2010 10:21

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

???

sri99iitm February 25, 2010 10:53

Help me with my udf plzzzz
 
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

sri99iitm February 25, 2010 10:54

plssss help
 
Folks,Please reply asap

rieuk February 25, 2010 11:01

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?

rieuk February 25, 2010 11:45

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

???

bigphil February 25, 2010 12:36

Quote:

Originally Posted by rieuk (Post 247457)
CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
make[2]: /bin/c++: Command not found

It seems the 'c++' command is not installed,
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

sri99iitm February 25, 2010 12:38

Hi
thx for the reply
then the code is correct only right ??

bigphil February 25, 2010 12:41

Quote:

Originally Posted by sri99iitm (Post 247473)
Hi
thx for the reply
then the code is correct only right ??

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

rieuk February 25, 2010 23:10

Quote:

Originally Posted by bigphil (Post 247472)
It seems the 'c++' command is not installed,
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

Well I think c++ is included in g++. The problem was it was looking for c++ in /bin rather than /usr/bin. So I made a copy and put it in /bin/. However new problems arise ...looks like with Qt, here's a sample:

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

???

maja February 26, 2010 04:11

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


All times are GMT -4. The time now is 07:06.