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

Install OpenFOAM-2.1.1 on Fedora 17

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 11, 2012, 06:52
Default
  #21
Member
 
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 5
dark lancer is on a distinguished road
Quote:
[hadi@hadi ~]$ cd OpenFOAM
[hadi@hadi OpenFOAM]$ module load openmpi-i386
[hadi@hadi OpenFOAM]$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=7 WM_MPLIB=SYSTEMOPENMPI
[hadi@hadi OpenFOAM]$ module load openmpi-i386
[hadi@hadi OpenFOAM]$ echo "module load openmpi-i386" >> $HOME/.bashrc
[hadi@hadi OpenFOAM]$ echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc
[hadi@hadi OpenFOAM]$ cd OpenFOAM-2.1.1
[hadi@hadi OpenFOAM-2.1.1]$ ./Allwmake > make.log 2>&1
[hadi@hadi OpenFOAM-2.1.1]$ ./Allwmake > make.log 2>&1
[hadi@hadi OpenFOAM-2.1.1]$
successfuly run the ''./Allwmake > make.log 2>&1''
now what should I do for editing the make.log?
dark lancer is offline   Reply With Quote

Old   August 11, 2012, 08:57
Default
  #22
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Hadi,

I guess the easiest is to run the commands as explained in the official instructions - start reading from the section "Getting Started": http://www.openfoam.org/download/source.php#x6-37000

A quick test is to run:
Code:
icoFoam -help
If there is no error, then you're ready to go.

Oh, as for ParaView, simply follow the instructions starting from section "Compiling Paraview 3.12.0 and the PV3FoamReader Module": http://www.openfoam.org/download/source.php#x6-35000

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   August 11, 2012, 10:06
Default
  #23
Member
 
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 5
dark lancer is on a distinguished road
I'm so stupid, so I really do apologize to you for tacking your time.

when I run this order I see this error:
Quote:
[hadi@hadi OpenFOAM-2.1.1]$ cd $WM_THIRD_PARTY_DIR
[hadi@hadi ThirdParty-2.1.1]$ ./makeParaView
*** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH
I pack the ''make.log'' but I do not understand Where do I attach?
dark lancer is offline   Reply With Quote

Old   August 11, 2012, 10:51
Default
  #24
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Hadi,

I didn't test this myself before... anyway, as root run:
Code:
yum install cmake
As normal user, makeParaView has to be executed like this:
Code:
./makeParaView -qmake $(which qmake-qt4)
Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   August 11, 2012, 11:32
Default
  #25
Member
 
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 5
dark lancer is on a distinguished road
hi Bruno

Quote:
[hadi@hadi PV3Readers]$ wmSET
[hadi@hadi PV3Readers]$ ./Allwclean
+ wclean libso vtkPV3Readers
wclean vtkPV3Readers
+ PV3blockMeshReader/Allwclean
+ rm -f '/home/hadi/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libPV3blockMeshReader*'
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
wclean vtkPV3blockMesh
+ PV3FoamReader/Allwclean
+ rm -f '/home/hadi/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libPV3FoamReader*'
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam
Quote:
[hadi@hadi PV3Readers]$ ./Allwmake 2>&1 | tee log_Allwmake
+ '[' -d /home/hadi/OpenFOAM/ThirdParty-2.1.1/platforms/linuxGcc/paraview-3.12.0 -a -r /home/hadi/OpenFOAM/ThirdParty-2.1.1/platforms/linuxGcc/paraview-3.12.0 ']'
when I run the cavity example in this order I see this error
Quote:
[hadi@hadi cavity]$ paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

[hadi@hadi cavity]$
dark lancer is offline   Reply With Quote

Old   August 11, 2012, 11:48
Default
  #26
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Hadi,

edit: I forgot to mention: start a new terminal and do these steps in this new terminal.

I'm testing this as well and found out that ParaView won't build properly without some more help. Run these commands:
Code:
cd $WM_THIRD_PARTY_DIR
sed -i -e 's/ClearAndSelect = Clear | Select/ClearAndSelect = static_cast<int>(Clear) | static_cast<int>(Select)/' ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h
./makeParaView -qmake $(which qmake-qt4) -no-config
If there is not error message at the end, run:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers 
wmSET $FOAM_SETTINGS
./Allwclean 
./Allwmake
Best regards,
Bruno

PS: created wiki page where this is now documented: http://openfoamwiki.net/index.php/In...M-2.1.1/Fedora
dark lancer likes this.
__________________
___
I'll be at OFW11 in Portugal

Last edited by wyldckat; August 11, 2012 at 12:04. Reason: see "edit:" and "PS:"
wyldckat is offline   Reply With Quote

Old   August 11, 2012, 12:35
Default
  #27
Member
 
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 5
dark lancer is on a distinguished road
I thank you very much and hope that one day I can repay the favor you.
I wish the best for you.
thanks and thanks very much
dark lancer is offline   Reply With Quote

Old   August 11, 2012, 12:55
Default
  #28
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
You're welcome! Have fun using OpenFOAM
And don't forget: details are reaaaally important when it comes to using OpenFOAM
__________________
___
I'll be at OFW11 in Portugal
wyldckat 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
OpenFoam 1.7.1 on Fedora 12 Help... Alphax OpenFOAM Installation 7 November 2, 2012 15:33
OpenFOAM 2.0.1-foamInstallationTest Failed on Fedora 15 x64 Winston Wu OpenFOAM 5 August 16, 2011 07:24
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 00:48
Problem installing OpenFOAM on Fedora 10 ptb OpenFOAM Installation 8 March 29, 2011 14:46
How to install the OpenFoam in the cluster. Please help me! flying OpenFOAM Installation 6 November 27, 2009 04:00


All times are GMT -4. The time now is 22:33.