|
[Sponsors] |
August 20, 2012, 06:38 |
Problem in Running OF!!!! please Help me
|
#1 |
Senior Member
|
hi everybody,
before, I had CAELinux 2011 and it have a OpenFOAM Terminal, I start it and running my models in OF. Now, I install Ubuntu 11.04 and OpenFOAM-2.1.0, the first time it worked correctly, but I closed the Terminal and when I run it again and write blockMesh it says command not found. I don't know how run it?!?!? I'm pretty a new user of Linux. Engineers, can you explain me how can I run the OF with details?!?!?!? Thanks a lot, Mostafa Mahmoudi |
|
August 20, 2012, 08:33 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Mostafa,
Since you asked with details, here you go: Advanced tips for working with the OpenFOAM shell environment But you can simply run: Code:
echo "source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc" >> $HOME/.bashrc Best regards, Bruno
__________________
|
|
August 20, 2012, 11:37 |
|
#3 | |
Senior Member
|
Quote:
the link was so useful. I ran the code you suggest, but after it whenever I open the Terminal it is just an OpenFOAM Terminal!!!!!!! how can I back to the original Terminal? |
||
August 20, 2012, 16:10 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
I just feel like you simply don't learn anything from my blog post
Here's a quick fix: Code:
sed -i -e 's-^\(source '$HOME'.*\)-alias of210="\1"-' $HOME/.bashrc Now, for each new terminal where you want to run OpenFOAM 2.1.0, run once the following command: Code:
of210
__________________
|
|
August 21, 2012, 04:26 |
|
#5 | |
Senior Member
|
Quote:
It works. before I made this thread, I had searched the forum and found your link, I applied what that said but it didn't work. a new problem: when I run the code you presented in the last post, there is no result, just the pointer twinkles and the terminal seems to calculating something. when I press Ctrl+C it stops and I can use OpenFOAM. did I make a mistake in installing OF?!?!?!? Thank you |
||
August 21, 2012, 08:04 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
What do the last lines of the file "$HOME/.bashrc" contain?
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem About Running Fluent In Linux | mitra | FLUENT | 18 | June 20, 2019 02:11 |
Parallel running of 3D multiphase turbulence model (unknown problem!!) | MOHAMMAD67 | OpenFOAM Running, Solving & CFD | 7 | November 23, 2015 10:53 |
running FLUENT on cluster problem | cth_yao | FLUENT | 2 | December 2, 2011 06:05 |
problem with running in parallel | dhruv | OpenFOAM | 3 | November 25, 2011 05:06 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 07:52 |