|
[Sponsors] |
February 3, 2016, 12:03 |
Problem with installing OpenFOAM 2.0.X
|
#1 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
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 |
|
February 3, 2016, 12:17 |
|
#2 |
Senior Member
|
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 |
|
February 3, 2016, 12:27 |
|
#3 | |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Quote:
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 |
||
February 3, 2016, 12:41 |
|
#4 |
Senior Member
|
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 |
|
Tags |
openfoam 2.0.x, paraview, sed |
|
|
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 12:08 |
[OpenFOAM.com] Problem installing OpenFoam 1.5 on Ubuntu 12.04???? | tareqkh | OpenFOAM Installation | 5 | July 19, 2015 16:10 |
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) | chrisb2244 | OpenFOAM Installation | 2 | August 21, 2013 14:24 |
Problem on installing Openfoam on 64bit sgi station | gregjunqua | OpenFOAM Installation | 4 | October 12, 2011 17: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 05:36 |