CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread 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: 322
Rep Power: 15
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 322
Rep Power: 15
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 322
Rep Power: 15
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
What do the last lines of the file "$HOME/.bashrc" contain?
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


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


All times are GMT -4. The time now is 21:16.