CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Problem in Running OF!!!! please Help me

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   August 20, 2012, 06:38
Default Problem in Running OF!!!! please Help me
  #1
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 263
Rep Power: 5
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
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
adambarfi is offline   Reply With Quote

Old   August 20, 2012, 08:33
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
Then start a new terminal and you're ready to use OpenFOAM.

Best regards,
Bruno
adambarfi likes this.
wyldckat is offline   Reply With Quote

Old   August 20, 2012, 11:37
Default
  #3
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 263
Rep Power: 5
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by wyldckat View Post
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
Then start a new terminal and you're ready to use OpenFOAM.

Best regards,
Bruno
Thank you Bruno,
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?
adambarfi is offline   Reply With Quote

Old   August 20, 2012, 16:10
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
Then start a new terminal.

Now, for each new terminal where you want to run OpenFOAM 2.1.0, run once the following command:
Code:
of210
adambarfi likes this.
wyldckat is offline   Reply With Quote

Old   August 21, 2012, 04:26
Default
  #5
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 263
Rep Power: 5
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Quote:
Originally Posted by wyldckat View Post
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
Then start a new terminal.

Now, for each new terminal where you want to run OpenFOAM 2.1.0, run once the following command:
Code:
of210
thanks so much Bruno,
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
adambarfi is offline   Reply With Quote

Old   August 21, 2012, 08:04
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
What do the last lines of the file "$HOME/.bashrc" contain?
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
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
Parallel running of 3D multiphase turbulence model (unknown problem!!) MOHAMMAD67 OpenFOAM Running, Solving & CFD 5 November 11, 2011 00:12
Problem About Running Fluent In Linux mitra FLUENT 11 March 2, 2011 06:26
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


All times are GMT -4. The time now is 19:48.