CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation OF1.5-dev (https://www.cfd-online.com/Forums/openfoam-installation/63866-installation-of1-5-dev.html)

ngj April 24, 2009 04:38

And I can add to Jaswi's comment:

In the OpenFOAM-1.5-dev folder, there is a file Allwmake. Execute this instead of the one in src, as this will compile everything you need, including ThirdParty stuff and applications/utilities.

Best regards,

Niels

ziooscuro April 24, 2009 05:35

I've a problem too
 
Hi,
I'm also in trouble with the installation of OpenFOAM 1.5-dev on my Pc (there is the 1.5 already installed on the server).
I installed everything and IcoFoam works properly, but if i try to execute the foamInstallationTest i receive the following message:
Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: scramjet.td.mw.tum.de
OS: Linux version 2.6.25.20-0.1-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /nfs/home/bruno/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /nfs/home/bruno/OpenFOAM/bruno-1.5-dev yes no
$WM_THIRD_PARTY_DIR /nfs/home/bruno/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/bruno/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 ...runo/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 ...AM/bruno-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 :
Minimum required: 4.2.0

gcc
WARNING: Conflicting installations:
OpenFOAM settings : /usr/bin/gcc
current path :
CRITICAL ERROR

gzip 1.3.12 /usr/bin/gzip
tar 1.19 /bin/tar
icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
...scramjet.td.mw.tum.de 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.

-------------------------------------------------------------------------------

I try to change the path of the compiler (before it was pointing to a server directory), but it doesn't still work.
Thanks in advance
Danilo

jaswi April 24, 2009 06:04

My dear friend

These types of errors are most basic and most often asked for.

My Advice for installation (NOTE : not compilation):

1) always check your .bashrc (in your home ) for which folder you are sourcing from.

2) Once you switch versions in the .bashrc, please save and exit all shells. Each shell has its own environment and changes in one's ENV does not applies to another.

Read some basic stuff how the environment is set, it will help you to be more productive.

Kind Regards
Jaswi

ttdtud April 24, 2009 10:06

Quote:

Originally Posted by jaswi (Post 214019)
Hi

My friend the steps you are following are for installation but what you are doing is compilation. As far as I remember , the compilation requires that all the statements in the script Allwmake are executed. Compilation of the Third Party software preceeds the ompilation of the /src directory.

No the instruction for installation are not false. Please compile the third party stuff and try again , it shall work.

Kind Regards
Jaswi

Dear Jaswinder,
because i have SuSe11.0(32bit) and QT 4.4.0. I have downloaded ThirdParty.General.gtgz and ThirdParty.linuxGcc.gtgz from OpenFOAM website. Before ThirdParty to be compiled what else should I do?
1. Add line ". $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" in ~/.bashrc.
2. add line " export WM_32=on" in "~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc"
3. comment out the line
MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).”
4. compile ThirdParty
5. compile OF-1.5-dev

Are the steps right?

I am waiting for your answer and advices online.
Thanks a lot for your patience.

jaswi April 26, 2009 08:44

Quote:

because i have SuSe11.0(32bit) and QT 4.4.0. I have downloaded ThirdParty.General.gtgz and ThirdParty.linuxGcc.gtgz from OpenFOAM website. Before ThirdParty to be compiled what else should I do?
1. Add line ". $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" in ~/.bashrc.
2. add line " export WM_32=on" in "~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc"
3. comment out the line
MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).”
4. compile ThirdParty
5. compile OF-1.5-dev

Are the steps right?
My dear friend

Please do not mix non-compatible packages. You will only make the problem difficult. First of all tell me exactly what do you want to do.

INSTALL - If you want to install the OpenFOAM - It takes only 5 minutes to do it, provided you follow the steps

COMPILE - If you want to compile , then it will be couple of hours of time provided you have all the other libraries available. The method is very simple if you follow the advice and above all distinguish between three main components of the OpenFOAM pacakge. They are :

-- Third Party Source and Binaries
-- OpenFOAM Src , which is then compiled into libraries
-- OpenFOAM Applications i.e. the Solvers and Utilities

I request you to read the README completely from top to bottom. It clearly says what will work with which version of Qt . Any deviation is bound to fail and waste your time .

The OpenSOURCE software contains these README files to convey important infomation but poeple take them in the same sense as README or Licence files for the commerical software. We are just used to scrolling down to end and click YES. Will not work in this case my friend. You have to carefull read the README file and then follow the instructions . Those instructions are correct and they have been tested atleast a hundred times by other people.

Finally I would once again ask, what is the real goal. Install or Compile . Decide on it and we can take on from there. You will be able to do it yourself with very little guidance from the forum and laugh at it once done.

Kind Regards
Jaswi

P.S: I am not sure removing the error message is the right way to solve this problem. May be somebody have tried that before and it worked , but I will not adviuce anybody to do that.

ngj April 26, 2009 11:07

Hi Jaswi and Hy

First of all, Hy, you should just follow Jaswi's recommendations step by step, as it will definitely work. I followed his excellent guide the first time I needed to compile dev-version, and it went smoothly.

Secondly, elsewhere on this forum, people has actually reported successful compilation of paraFoam using another version of QT than the one specified by opencfd. However, if it is not to much of a pain, you might consider to get the correct version, as opencfd must have had some good reasons for being that specific.

It can be downloaded here:

http://www.qtsoftware.com/

if the version is not in your repository. It is straight forward to compile, however as with OpenFOAM it does also take quite some time.

Best regards,

Niels

ttdtud April 27, 2009 06:30

Dear Jaswinder and Niels,
first of all i want to thank you both gratefully.
Actually i want to compile OF-1.5.x or OF-1.5-dev. On weekend i have tried to compile OF-1.5.x. It seems everything is OK.
After running the "foamInstallTest" i have the following:
Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: ttdws92
OS: Linux version 2.6.25.20-0.1-pae
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/hongyi/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/hongyi/OpenFOAM/hongyi-1.5.x yes no
$WM_THIRD_PARTY_DIR /home/hongyi/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/hongyi/OpenFOAM/OpenFOAM-1.5.x yes yes yes

$FOAM_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes no
$WM_DIR ...hongyi/OpenFOAM/OpenFOAM-1.5.x/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 ...OAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...nFOAM/hongyi-1.5.x/lib/linuxGccDPOpt yes yes no
$MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.19 /bin/tar
icoFoam 1.5.x .../OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_ttdws92 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.

Critical systems ok.

I think it is OK? right?

But now i have another problem about paraFoam.
I have tried to run a case in tutorial. e.g. cavity under icoFoam.
blockMesh
icoFoam
paraFoam

everything is ok, however, after i gave the paraFoam, i can see the GUI of paraFoam, but i cannot see anything about simulation, either mesh or results.

Any ideas?

Hongyi

ngj April 27, 2009 07:29

Hi Hongyi

Yes, it does seem to have compiled successfully. With respect to paraFoam, two possible explanations comes to mind:

1. Make sure, that the PV3FoamReader is compiled succesfully.
Quote from README:
" The PV3FoamReader module is an OpenFOAM utility that can be compiled in the
usual manner as follows:
+ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
+ ./Allwclean
+ ./Allwmake"

2. Did you reinstall QT to get the correct version, or did you compile it using to "incorrect" version? If bullet 1 does not help, you might need to get the correct version.

Good luck,

Niels

ttdtud April 27, 2009 08:28

Quote:

Originally Posted by ngj (Post 214310)
Hi Hongyi

Yes, it does seem to have compiled successfully. With respect to paraFoam, two possible explanations comes to mind:

1. Make sure, that the PV3FoamReader is compiled succesfully.
Quote from README:
" The PV3FoamReader module is an OpenFOAM utility that can be compiled in the
usual manner as follows:
+ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
+ ./Allwclean
+ ./Allwmake"

2. Did you reinstall QT to get the correct version, or did you compile it using to "incorrect" version? If bullet 1 does not help, you might need to get the correct version.

Good luck,

Niels

Hi Niels,
i have recompiled PV3FoamReader and there was no problem.
But actually i have the wrong QT(4.4.0), and i have commented out the 94th. line in "ThirdParty/ParaView3.3-cvs/CMakeLists.txt" which introduced in other thread. It doesnot work.
It seems i have to reinstall correct QT.
Dear Niels, can you tell me how i can uninstall the QT 4.4.0 and reinstall QT 4.3.5? And where can i download the QT4.3.5? Forgive my stupid questions.

Hongyi

chapman April 27, 2009 08:32

Hi Hongyi,

since you are using SUSE you may use YaST to uninstall Qt.

Qt-4.3.4/4.3.5
Please have a look at these two pages:

1.) http://www.linuxfromscratch.org/blfs...ble/x/qt4.html
2.) http://doc.trolltech.com/4.3/install-x11.html

ttdtud April 27, 2009 09:55

Quote:

Originally Posted by chapman (Post 214323)
Hi Hongyi,

since you are using SUSE you may use YaST to uninstall Qt.

Qt-4.3.4/4.3.5
Please have a look at these two pages:

1.) http://www.linuxfromscratch.org/blfs...ble/x/qt4.html
2.) http://doc.trolltech.com/4.3/install-x11.html

Hi Chapman,
Because the SuSe 11.0 absolutely needs QT4.4.x. So I think that uninstall QT4.4.0 is not an easy job. Have you tried or has anybody already done it?

Hongyi

chapman April 27, 2009 10:02

Well, I am not quite sure whether SUSE >>absolutely<< needs Qt-4.4.x. Maybe you just have to try...

I have done the same on Ubuntu 8.10 and it worked perfectly.

grtabor April 27, 2009 10:03

Quote:

Originally Posted by ttdtud (Post 214338)
Hi Chapman,
Because the SuSe 11.0 absolutely needs QT4.4.x. So I think that uninstall QT4.4.0 is not an easy job. Have you tried or has anybody already done it?

Hongyi

KDE is based on the Qt toolkit; Gnome isn't. I _think_ that means that if you choose not to install KDE in the first place you can probably get away without needing to install the supplied version of Qt (reality check here please?) I've just upgraded to a new machine with SuSE11.1 on it; I made a decision to use Gnome rather than KDE; and installation of paraview was a lot easier that way.

Gavin

henrik April 27, 2009 10:54

Dear All,

I am running OF on Suse 11.1 with KDE 3 for a while now. It compiles pretty much out of the box - including paraview 3.4.0 (using qt 4.4.4).

Good luck.

Henrik

ttdtud April 27, 2009 11:28

Quote:

Originally Posted by henrik (Post 214356)
Dear All,

I am running OF on Suse 11.1 with KDE 3 for a while now. It compiles pretty much out of the box - including paraview 3.4.0 (using qt 4.4.4).

Good luck.

Henrik

Dear Henrik,
Did you recompile the PV3FoamReader according the introduction in openFoam website?
if yes how can you avoid compilation error? (paraView 3.3 needs QT4.3.x)
if no what extra have you done?

Hongyi

henrik April 27, 2009 11:51

Hongyi,

Yes, PV3.3 insists for having qt4.3, but it can be convinced to compile with a qt4.4

See here

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

Just comment out the line where it stops and all will be fine.

Alternatively, you can compile Paraview 3.4. There, I think, qt 4.4 is just flagged as a warning, but you need to change the settings in etc/apps/paraview3/bashrc to pick it up correctly.

Henrik

ttdtud April 28, 2009 02:43

Quote:

Originally Posted by henrik (Post 214364)
Hongyi,

Yes, PV3.3 insists for having qt4.3, but it can be convinced to compile with a qt4.4

See here

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

Just comment out the line where it stops and all will be fine.

Alternatively, you can compile Paraview 3.4. There, I think, qt 4.4 is just flagged as a warning, but you need to change the settings in etc/apps/paraview3/bashrc to pick it up correctly.

Henrik

Hi Henrik,
advice by alberto "comment out the line ....." doesnot help me.
I can run a case, i can open paraFoam, but after that i cannot see anathing. The button "apply" has been always grey whatever i have tried.
Any ideas?

Where can i get Paraview 3.4? Is its compilation difficult?

Hongyi

henrik April 28, 2009 03:52

2 Attachment(s)
Hongyi,

the source for PV3.4 is available from it's website

http://www.paraview.org/paraview/res.../software.html

PV 3.4 is as difficult to compile as PV3.3. But, you must adapt (at least) these two files:
bash-users obviously need to adapt bashrc accordingly.

Currently I cannot link your error description to anything I have seen and I doubt it is related to the PV version. A screendump using ImageMagick's "import" might help.

Please make sure that you compiled PV3 AND the reader. Did they both compile without errors?

ttdtud April 28, 2009 04:54

Hi Henrik,
I think that i have compiled the paraview and its reader. I have tried several times and every time without errors.
About one point i am not sure is that according Alberto's advices :
1. buildParaView3.3-cvs
2. compile PV3FoamReader
3 . compile OF-1.5.x

In my case i can only do so:
1. compile ThirdParty
2. compile OF-1.5.x
3. delete ThirdParty/
ParaView3.3-cvs/platforms, run "buildParaView3.3-cvs"
4. recompile PV3Reader

After compilation i run "FoamInstallationTest", it seems everything is OK.
However, i can not see anything in ParaFoam.

Hongyi


henrik April 28, 2009 05:02

Hongyi,

that's all fine, but you could avoid 4 if you swap 2 and 3.

Does paraview cooperate with your graphics? Start paraview on it's own and load some example or a STL-geometry.

Henrik


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