CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Completly Confused (http://www.cfd-online.com/Forums/openfoam/71574-completly-confused.html)

Ahmed January 8, 2010 01:57

Completly Confused
 
1- I downloaded OpenFOAM-1.6.x on my Debian 5 (lenny) partition and ran Allwmake, after about 3 hours, I have the programme running in perfect conditions, including paraFoam and paraview (I have just finnished the cavity tutorial), during the compilation, there were warnnings about type cast etc.... but no error messages (I have a log of all output messages during compilation, the only call to the system is a call to flex and lex).
2- I did the same on my OpenSUSE 11.2 partition and there is a ton of error messages and the compilation terminates in less than 4 minutes.
3- The developers of OpenFOAM tell us that the OpenFOAM is (was) developed on an OpenSUSE (Ubuntu) platform.

Readers of the forum will tell me that the libraries and dependencies on the Debian partition are those needed by the programme and I do agree with that and can buy this answer.

Is there a way of knowing what exactly is needed in order to compile OpenFOAM on any Linux distro

Am I dreaming?

Appreciate your time reading my post.

................................. Open Source For ever ............................................

tss January 8, 2010 03:50

Please take a look at FreeFOAM.

FG_HSRM January 8, 2010 04:56

Hi Ahmed
Maybe this thread can help you.
http://www.cfd-online.com/Forums/ope...tallation.html
I switched back to OpenSuse 11.1. I had some serious problems with 11.2.

Regards

Ahmed January 8, 2010 05:02

http://freefoam.sourceforge.net/index.html

Yes, I came across that programme time ago, but still there is no release of the project (there are rc)
Thanks for the information.It would be a good strike when released, my best wishes to those behind the project.

For you tss: I have the first edition of the book, programmes are on a 3.5 inch magnetic disk, simply said, I cannot read them my self, I guess I will take the disk to the local store and see if they can transfer them to a modern CD. You see, I am a bit old, and few weeks from now, I will be declared officially, a retiree. I hope to enjoy my retirement with freeFOAM or OpenFOAM or whatever. fishing is not an option for me, the river Mohawk is completely frozen and will keep so till April.
Good Luck to all

tss January 8, 2010 05:13

I helped the FreeFOAM developer to maintain the Mac OS X and FreeBSD port of the project and have been using it for months. According to my experience it is quite matured for Unix (like) operating systems. All you need is a mpi implementation and other libs will be fetched and compiled automatically (of course you can also ask cmake to use system libraries). If you encounter any problems in Linux distros (I don't use Linux), you can file a bug report, and I think miwi (the author) will reply quickly.

Well... The bad news is... I am still very young, and instead of fishing, I have to learn all the complex stuffs in fluid mechanics: (

Ahmed January 8, 2010 05:20

Quote:

Originally Posted by FG_HSRM (Post 241861)
Hi Ahmed
Maybe this thread can help you.
http://www.cfd-online.com/Forums/ope...tallation.html
I switched back to OpenSuse 11.1. I had some serious problems with 11.2.

Regards

Friedrich
Thanks a lot for your reply, Yes I read that thread many times, I also read Alberto blog http://albertopassalacqua.com/?p=532 . and so, openSUSE 11.1 has the correct dependencies but 11.2 is a bloody version, may be I will try that. Any way thanks again

Ahmed January 10, 2010 06:52

Quote:

Originally Posted by Ahmed (Post 241866)
Friedrich
Thanks a lot for your reply, Yes I read that thread many times, I also read Alberto blog http://albertopassalacqua.com/?p=532 . and so, openSUSE 11.1 has the correct dependencies but 11.2 is a bloody version, may be I will try that. Any way thanks again

Friedrich
I installed on my old 11.1 32 bits partition, error messages none

My question: were you using OpenSUSE11.2 64 bits installation?
This is what I believe, checking the forum for problems installing/running on OpenSUSE, all of them refer to 64 bits installations,
I think the problem lies in the 64 bits ThirdParty files not the distribution, there is no big difference between 11.1 and 11.2

alberto January 10, 2010 18:11

Quote:

Originally Posted by Ahmed (Post 242017)
Friedrich
I installed on my old 11.1 32 bits partition, error messages none

My question: were you using OpenSUSE11.2 64 bits installation?
This is what I believe, checking the forum for problems installing/running on OpenSUSE, all of them refer to 64 bits installations,
I think the problem lies in the 64 bits ThirdParty files not the distribution, there is no big difference between 11.1 and 11.2

I've been using openSUSE 11.2 (64 bit) without any problem since it has been released, with both the gcc provided in ThirdParty, and with the system compiler.

The only "difficulty" is that the 64 bit third party does not contain cmake, but this is clearly evident since the beginning.

If you want to use the ThirdParty compiler, simply get cmake from the 32-bit third party package. As an alternative, if you want to use the system compiler , you might want to try this procedure I wrote:

http://albertopassalacqua.com/?p=532

which in summary is:

- Install OpenFOAM
- Delete ThirdParty gcc compiler (or rename it)
- Install C/C++ development pattern in YaST
- Install openSUSE cmake
- Install openSUSE libqt4-devel (for paraview)
- Build using the system compiler

The rest is standard procedure.

Good luck.

Ahmed January 11, 2010 03:27

Hi Alberto
Yes, I read your blog (see two post before), but as a true Italian as you are, you like self marketing (no offence), I noticed the absence of cmake, thought that Allwmake will take care of that, but it did not, then I tried your blog, and got the same result, you see, my idea is that Allwmake need to be rewritten (give it some kind of AI so it can solve this kind of problems).
The binary files provided on the web portal of the developers are good to start with OpenFOAM, but you arrive at a point where you need to be able to modify and compile the programme on your own Linux distro without these nagging problems, that is not dream land, but it is much easier than starting a new fork
I wish you success with your blog and I think you can add there all the documentation you wanted without any references to the developers, do not include their logo and other legal stuff, just a plain talk. I really believe that OpenFOAM users need such a blog,
Thanks for your reply and Good luck

To make my point clear, I wish you could have a look at this web site
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2008/
scroll down to the schedule listing, and check what they have there for free download


.................................................. ................................ Open Source For Ever .................................................. ............................................

FG_HSRM January 11, 2010 08:34

Quote:

Originally Posted by Ahmed (Post 242017)
Friedrich
I installed on my old 11.1 32 bits partition, error messages none

My question: were you using OpenSUSE11.2 64 bits installation?
This is what I believe, checking the forum for problems installing/running on OpenSUSE, all of them refer to 64 bits installations,
I think the problem lies in the 64 bits ThirdParty files not the distribution, there is no big difference between 11.1 and 11.2

Ahmed
I were using the 64-bit version and I agree with you about the problem. I'm quite sure that I will switch to 11.2 one day. It's a quite good version. Actually, I haven't got the time to handle the problems and (maybe) the experience.

alberto January 11, 2010 16:40

Quote:

Originally Posted by Ahmed (Post 242091)
Hi Alberto
Yes, I read your blog (see two post before), but as a true Italian as you are, you like self marketing (no offence), I noticed the absence of cmake, thought that Allwmake will take care of that, but it did not, then I tried your blog, and got the same result, you see, my idea is that Allwmake need to be rewritten (give it some kind of AI so it can solve this kind of problems).

Well, sorry if I annoyed you by re-posting the link. The procedure on my blog has been recently modified slightly according to the comment of a user who found a deficiency in it. Anyway, if you exactly follow it, it works, since I systematically used it on three different machines, and I had positive feedback from quite some other users. If you get errors, we can discuss them and try to fix them, however.

To do that you must post your error messages, or it is not possible to diagnose the problem.

Quote:

The binary files provided on the web portal of the developers are good to start with OpenFOAM, but you arrive at a point where you need to be able to modify and compile the programme on your own Linux distro without these nagging problems, that is not dream land, but it is much easier than starting a new fork
Actually compiling OpenFOAM itself is quite easy already: it requires a few minutes to unpack it, in addition to the compile time, if you use a fairly recent distribution.
I use openSUSE, Red Hat Enterprise 5 and I used ubuntu in the past. Generally, after some minor problems with dependencies, recompiling OpenFOAM is straightforward. Most of the time, the difficulties are due to a wrong configuration of the system (missing packages, sourcing config script, ...).
Having a working paraFoam reader is another story, and the reader on the OF wiki comes handy :D

What a fork has to do with this thread is not really clear. Maybe we should stay on topic?

Quote:

I wish you success with your blog and I think you can add there all the documentation you wanted without any references to the developers, do not include their logo and other legal stuff, just a plain talk.
My blog post contains both the trademark recognition, and the disclaimer, as required by OpenCFD(r) trademark policy. Furthermore, the same disclaimar is in the "About" section of the website.

Best,

alberto January 11, 2010 16:46

Quote:

Originally Posted by FG_HSRM (Post 242152)
Ahmed
I were using the 64-bit version and I agree with you about the problem. I'm quite sure that I will switch to 11.2 one day. It's a quite good version. Actually, I haven't got the time to handle the problems and (maybe) the experience.

Could you report the error messages? In particular, at what point in the compile phase you see errors?

P.S. I'm working on a live distribution based on opensuse 11.2 with some CFD tools. Are you interested in trying it? If so, do you prefer GNOME or KDE 4?

Thanks

FG_HSRM January 12, 2010 03:50

Quote:

Originally Posted by alberto (Post 242216)
Could you report the error messages? In particular, at what point in the compile phase you see errors?

P.S. I'm working on a live distribution based on opensuse 11.2 with some CFD tools. Are you interested in trying it? If so, do you prefer GNOME or KDE 4?

Thanks

Hi Alberto,

the main problem was the paraFoam command.
Yes, I could use foamToVTK and paraview commands, but I didn't like it and the postprocessing wasn't as good as the straight way.

I'm definitely interested in a well working live distribution. That's maybe a good way to fast setup some unused computer to do some work.
I've just played a bit around with CAELinux.
I would prefer KDE 4.

Regards

Ahmed January 12, 2010 04:42

Hello Alberto
No way, compiling on 64 bits OpenSUSE is not possible, I copied the cmake folder from the 32 bits third party files, tried again, but failed, here I post the top part of the error log, till the same old error message of g++: no input files appear


make: Nothing to be done for `all'.
+ '[' -n gcc ']'
+ export CC=gcc
+ CC=gcc
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ '[' -n '-m64 -fPIC' ']'
+ export 'CFLAGS=-m64 -fPIC'
+ CFLAGS='-m64 -fPIC'
+ '[' -n '-m64 -fPIC' ']'
+ export 'CXXFLAGS=-m64 -fPIC'
+ CXXFLAGS='-m64 -fPIC'
+ '[' -n -m64 ']'
+ export LDFLAGS=-m64
+ LDFLAGS=-m64
+ cd malloc
+ ./Allwmake
+ wmake libso hoard
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libhoard.so' is up to date.
+ wmake libo fbsdmalloc
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libfbsdmalloc.o' is up to date.
+ case "$WM_MPLIB" in
+ '[' -r /home/ahmed/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linux64GccDPOpt/lib/libmpi.so ']'
+ echo 'have OPENMPI shared library'
have OPENMPI shared library
+ cd scotch_5.1
+ wmake libso src/libscotch
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libscotch.so' is up to date.
+ cd metis-5.0pre2
+ wmake libso GKlib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libGKlib.so' is up to date.
+ wmake libso libmetis
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libmetis.so' is up to date.
+ '[' OPENMPI = MPI -o -d /home/ahmed/OpenFOAM/ThirdParty-1.6.x/openmpi-1.3.3/platforms/linux64GccDPOpt ']'
+ cd ParMetis-3.1
+ WM_OPTIONS=linux64GccDPOptOPENMPI
+ wmake libso METISLib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/openmpi-1.3.3/libmetis-parmetis.so' is up to date.
+ wmake libso ParMETISLib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/openmpi-1.3.3/libparmetis.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/IMlib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libIMlib.so' is up to date.
+ wmake libso ParMGridGen-1.0/MGridGen/Lib
'/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libMGridGen.so' is up to date.
+ wmakePrintBuild -check
version changed from previous build
+ /bin/rm -f 'OpenFOAM/Make/linux64GccDPOpt/global.?'
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
g++: no input files
make: *** [libNULL.so] Error 1
+ case "$WM_MPLIB" in
+ set +x

Note: ignore spurious warnings about missing mpicxx.h headers

I used the supplied gcc and again tried with the system gcc and it gives the same errors

May be, the flex is not the right one for OpenFOAM 1.6.x on 64 bits OpenSUSE 11.2, I really do not know, but I feel it, these Third Party filles have something off.

I will wait to see your OpenSUSE ( 64 bits ) live distro

Good luck to all

...................................... Open Source For Ever ........................................

alberto January 12, 2010 08:15

Quote:

Originally Posted by FG_HSRM (Post 242263)
Hi Alberto,

the main problem was the paraFoam command.
Yes, I could use foamToVTK and paraview commands, but I didn't like it and the postprocessing wasn't as good as the straight way.

Yes, paraFoam does not work for me either, but pvFoam from the OpenFOAM Wiki works OK and allows data to be postprocessed on the fly, as paraFoam. That's why I suggested to use it ;-)

Quote:

I'm definitely interested in a well working live distribution. That's maybe a good way to fast setup some unused computer to do some work.
I've just played a bit around with CAELinux.
I would prefer KDE 4.
OK, I'll give you the link to download it soon. You will need a quite big USB key (8-9 GB, since I would like to provide a fully working openSUSE, but I can reduce the size removing apps, if necessary) if you want a permanent live, where you can save your data, or a DVD if you simply want an installable live.
The distribution is based on openSUSE 11.2, and will include engrid, maxima, grace, cmake, gcc 4.4.1, OF 1.6.x (available for the user). The list of software is temporary, since first I would like to have a well working system. :D

Best,

FG_HSRM January 12, 2010 09:12

Quote:

Originally Posted by alberto (Post 242300)
OK, I'll give you the link to download it soon....
... and will include engrid, maxima, grace, cmake, gcc 4.4.1, OF 1.6.x (available for the user). The list of software is temporary, since first I would like to have a well working system. :D

That sounds all very good to me.
Looking forward to here from you.

Best

alberto January 12, 2010 15:35

Hello,

at the moment I have only the "USB image" available, which requires a quite big pen-drive (8GB), and it includes a full openSUSE 11.2 desktop, with compilers, OF 1.6.x, engrid, netgen, xmgrace, wxMaxima and some other tool.

If you want to give it a try, you can download it from here

http://susestudio.com/download/c470b...0.0.oem.tar.gz

The compressed image is 1.8GB, the extracted one 7.2GB, so you need at least ~ 8GB of free space on your hard drive to proceed.
Once you downloaded the image:
  • Check the MD5 sum or SHA1
    • MD5: c470bc23e3b9920ee91aa31a6564e435
    • SHA1: e7c6b7ecdb4347d2937c44c2f581952f8be4500c
  • Extract the tar.gz with
    • tar xzf CFD_Live__KDE.x86_64-1.0.0.oem.tar.gz
    • Use dd following these instructions (Please, be careful! Using dd in the wrong way can cause loss of data) http://en.opensuse.org/SUSE_Studio_D..._from_Linux.29
    • Alternatively to dd, on openSUSE you can install kiwi-tools-imagewriter follow this: http://en.opensuse.org/How_to_use_do...or_Harddisk.29
    • At this point you should have a bootable USB key. Notice that the image will automatically expand to use the space available on the USB disk, and it will also create a swap partition of 512MB. The system should be automatically configured during the first boot, which is a bit slow for this reason, so please be patient :-) The configuration is done only once, and the changes you make to the distribution after the first boot are saved.
    • The system is configured with two users:
      • root, whose password is rootPassword
      • geeko, whose password is geekoPassword
I still need some work on the DVD ISO image.

P.S. Unfortunately the image is hosted on SUSE Studio for 7 days from today, then I might have to rebuild it (just a click, not the whole work ;-)). I plan to put it somewhere else, but I still have to find a place.

Of course, this release is to take "as is", since it is still under development. Constructive feedback is welcome!

Best,

FG_HSRM January 18, 2010 05:26

Hello Alberto,

I've used your live-version for a couple of days. All in all worked very well.
I was just missing salome and the dd-command doesn't produce a working stick.
I approve the use of the kiwi-tools-imagewriter.
I didn't find a way to change the display resolution, too.

I definitely can recommend your version.

Regards

alberto January 18, 2010 13:44

Quote:

Originally Posted by FG_HSRM (Post 242902)
Hello Alberto,

I've used your live-version for a couple of days. All in all worked very well.
I was just missing salome and the dd-command doesn't produce a working stick.
I approve the use of the kiwi-tools-imagewriter.
I didn't find a way to change the display resolution, too.

I definitely can recommend your version.

Regards

Many thanks for your feedback! :-)

- Salomé is work in progress due to some packaging problem on the 64 bit version and to their not exactly recent dependencies, but thanks to the help of one openSUSE packager (Andrea Florio), it will work. If needed, I can temporarily include Salomé-Meca.

- About dd, I'll try it and check. I used the kiwi-image-writer myself ;-)

- About the resolution: did it detect it wrong? What video card do you have? If you need nVidia accelerated drivers, you can easily install them following this

http://en.opensuse.org/NVIDIA_drivers

To change the resolution, there should be a tool in

Menu (SuSE logo) -> Configure Desktop -> General -> Computer administration -> Display

If this does not work, there is a SuSE tool you have to run as root, called "SaX2". However it should not be necessary with the new X server.

I hope this helps, and of course any other feedback is welcome!

Best,

FG_HSRM January 19, 2010 04:42

Quote:

Originally Posted by alberto (Post 242966)
Many thanks for your feedback! :-)

- About the resolution: did it detect it wrong? What video card do you have? If you need nVidia accelerated drivers, you can easily install them following this

The Problem was the missing nVidia driver.

Thanks a lot.

Best


All times are GMT -4. The time now is 05:32.