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

OpenFOAM 1.5 dev

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 25, 2010, 06:44
Default
  #41
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 9
maja is on a distinguished road
Hi! In your log file I saw: flex not found. Did you check you have flex installed?
Regards, Maja
maja is offline   Reply With Quote

Old   February 25, 2010, 06:51
Default
  #42
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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...
rieuk is offline   Reply With Quote

Old   February 25, 2010, 06:57
Default
  #43
New Member
 
Join Date: Nov 2009
Posts: 3
Rep Power: 8
dadros is on a distinguished road
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 View Post
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
dadros is offline   Reply With Quote

Old   February 25, 2010, 07:03
Default
  #44
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,702
Rep Power: 27
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is offline   Reply With Quote

Old   February 25, 2010, 07:05
Default
  #45
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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.
rieuk is offline   Reply With Quote

Old   February 25, 2010, 07:44
Default
  #46
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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
rieuk is offline   Reply With Quote

Old   February 25, 2010, 07:46
Default
  #47
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 617
Rep Power: 21
bigphil will become famous soon enoughbigphil will become famous soon enough
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 is offline   Reply With Quote

Old   February 25, 2010, 09:10
Default
  #48
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 617
Rep Power: 21
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Old   February 25, 2010, 09:17
Default
  #49
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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?
rieuk is offline   Reply With Quote

Old   February 25, 2010, 11:04
Default
  #50
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 617
Rep Power: 21
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Old   February 25, 2010, 11:21
Default
  #51
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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

???
rieuk is offline   Reply With Quote

Old   February 25, 2010, 11:53
Default Help me with my udf plzzzz
  #52
New Member
 
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 8
sri99iitm is on a distinguished road
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 is offline   Reply With Quote

Old   February 25, 2010, 11:54
Default plssss help
  #53
New Member
 
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 8
sri99iitm is on a distinguished road
Folks,Please reply asap
sri99iitm is offline   Reply With Quote

Old   February 25, 2010, 12:01
Default
  #54
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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 is offline   Reply With Quote

Old   February 25, 2010, 12:45
Default
  #55
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
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

???
rieuk is offline   Reply With Quote

Old   February 25, 2010, 13:36
Default
  #56
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 617
Rep Power: 21
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by rieuk View Post
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
bigphil is offline   Reply With Quote

Old   February 25, 2010, 13:38
Default
  #57
New Member
 
srinivas
Join Date: Feb 2010
Posts: 9
Rep Power: 8
sri99iitm is on a distinguished road
Hi
thx for the reply
then the code is correct only right ??
sri99iitm is offline   Reply With Quote

Old   February 25, 2010, 13:41
Default
  #58
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 617
Rep Power: 21
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by sri99iitm View Post
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
bigphil is offline   Reply With Quote

Old   February 26, 2010, 00:10
Default
  #59
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 9
rieuk is on a distinguished road
Quote:
Originally Posted by bigphil View Post
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

???
rieuk is offline   Reply With Quote

Old   February 26, 2010, 05:11
Default
  #60
New Member
 
maja ondracka
Join Date: Apr 2009
Location: Slovenia
Posts: 17
Rep Power: 9
maja is on a distinguished road
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
maja 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
Paraview/Parafoam in OpenFoam 1.5 dev titio OpenFOAM Post-Processing 0 December 9, 2009 13:13
Paraview/Parafoam in OpenFoam 1.5 dev titio OpenFOAM Paraview & paraFoam 0 December 9, 2009 13:12
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 06:28
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
OpenFOAM Version 1.5 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 July 14, 2008 18:22


All times are GMT -4. The time now is 19:54.