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

Problem with installing OpenFOAM 2.0.X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2016, 11:03
Lightbulb Problem with installing OpenFOAM 2.0.X
  #1
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 13
mohsen.boojari is on a distinguished road
hi everyone
can any one translate this command for me? i want to know what does exactly this command do ! I have a problem with this and i want to know whether i can do it manually or not . thank you all !

sed -i s/"cmake-2.8.3"/"cmake-2.8.5"/g $WM_THIRD_PARTY_DIR/makeCmake

sed -i s/"cmake-2.8.4"/"cmake-2.8.5"/g $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/config/myParaview.sh

and here is My terminal error :
sed: can't read /makeCmake: No such file or directory
mohsen.boojari is offline   Reply With Quote

Old   February 3, 2016, 11:17
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Answering your question: command replaces all occurrences of "cmake-2.8.3" to "cmake-2.8.4". (https://duckduckgo.com/?q=what+is+sed%3F, first link, then section Usage: https://en.wikipedia.org/wiki/Sed#Substitution_command).

And since the error is

Code:
sed: can't read /makeCmake: No such file or directory
It means $WM_THIRD_PARTY_DIR environment variable expands into empty string, i.e. it is not defined. So, I guess, you have forgotten to set up environment variables with "source /path/to/your/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc".
alexeym is offline   Reply With Quote

Old   February 3, 2016, 11:27
Default
  #3
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 13
mohsen.boojari is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

Answering your question: command replaces all occurrences of "cmake-2.8.3" to "cmake-2.8.4". (https://duckduckgo.com/?q=what+is+sed%3F, first link, then section Usage: https://en.wikipedia.org/wiki/Sed#Substitution_command).

And since the error is

Code:
sed: can't read /makeCmake: No such file or directory
It means $WM_THIRD_PARTY_DIR environment variable expands into empty string, i.e. it is not defined. So, I guess, you have forgotten to set up environment variables with "source /path/to/your/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc".
Hi,
first of all thanks for your quick and useful reply.

about environment variables i use these commands, are they wrong?

echo "alias OF20x='source \$HOME/OpenFOAM/OpenFOAM-2.0.x/etc/myBashrc'" >> $HOME/.bashrc

cp $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/myBashrc

sed -i s/"paraview.sh"/"myParaview.sh"/g $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/myBashrc

cp $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/config/paraview.sh $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/config/myParaview.sh
mohsen.boojari is offline   Reply With Quote

Old   February 3, 2016, 11:41
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Surely it is fun to use duckduckgo.com, yet you can use your preferred search engine (especially before posting questions):

https://duckduckgo.com/?q=how+to+set...or+openfoam%3F

1st link: http://www.openfoam.org/download/source.php (section Setting Environment Variables, instead of 3.0.1 you can put 2.0.x)

5th link: https://openfoamwiki.net/index.php/I...ment_Variables
alexeym is offline   Reply With Quote

Reply

Tags
openfoam 2.0.x, paraview, sed


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
[OpenFOAM.com] Problem installing OpenFoam 1.5 on Ubuntu 12.04???? tareqkh OpenFOAM Installation 5 July 19, 2015 15:10
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 13:24
Problem on installing Openfoam on 64bit sgi station gregjunqua OpenFOAM Installation 4 October 12, 2011 16:28
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 04:36


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