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

[OpenFOAM.org] Running OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2015, 06:53
Default Running OpenFOAM
  #1
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hi guys,

Finally I managed to install OpenFOAM 2.3.0 following this guide:
http://matveichev.blogspot.fr/2014/0...m-on-os-x.html

However there are still a few questions left:
1) When I have started ParaView via typing "paraFoam" in the terminal, the cursor jumps to the next line, but the
Code:
usersmbp:~ mbp$
line is missing. Does this mean I cannot use the terminal while running ParaView? When I close ParaView the missing line reappears in terminal.

2) How do I start OpenFOAM after rebooting my MacBook Pro? Somehow the OpenFOAM folder is empty after rebooting. When I double-click on OpenFOAM.sparsebundle, a OpenFOAM ?disk image? appears on the desktop. It contains the folders which are normally in the OpenFOAM folder. But the cavity example still doesn't work.

3) How do I upgrade from OpenFOAM 2.3.0 to 2.3.1 for example?

Thanks a lot for your help,

Kate
KateEisenhower is offline   Reply With Quote

Old   March 7, 2015, 08:14
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

1. You can not use terminal if paraview is running in foreground (well, terminal will echo everything you type but will not execute the commands). If you would like to use terminal after you started paraFoam use "paraFoam &" command. Ampersand will send paraview in background so you can continue to use terminal.

2. You have to use this command to mount disk image:

Code:
hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle
And then set up environment with

Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc
In fact it is described in Post-configuration part of the post.

3. You do not upgrade 2.3.0 to 2.3.1. Either you install 2.3.1 along with 2.3.0, or you remove 2.3.0 and install 2.3.1. Patch for 2.3.1 can be found in this repository. In the wiki you will find updated guide for installation.
alexeym is offline   Reply With Quote

Old   March 10, 2015, 14:42
Default
  #3
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Thanks a lot for your help!
Quote:
Originally Posted by alexeym View Post
2. You have to use this command to mount disk image:

Code:
hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle
And then set up environment with

Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc
In fact it is described in Post-configuration part of the post.
This works perfectly. Thank you! I think you mean the following code:
Code:
alias of2NM='hdiutil attach -quiet -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle; sleep 1; source $HOME/OpenFOAM/OpenFOAM-2.N.M/etc/bashrc'
This didn't work for me. Is there any way to mount the disk image and set up the environment automatically after rebooting?
KateEisenhower is offline   Reply With Quote

Old   March 10, 2015, 14:56
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by KateEisenhower View Post
I think you mean the following code:
Code:
alias of2NM='hdiutil attach -quiet -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle; sleep 1; source $HOME/OpenFOAM/OpenFOAM-2.N.M/etc/bashrc'
This didn't work for me. Is there any way to mount the disk image and set up the environment automatically after rebooting?
This piece of code never worked for me also.

The way I set up the environment is described in https://github.com/mrklein/openfoam-...two-approaches.
alexeym is offline   Reply With Quote

Reply


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
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
[Other] Basic questions about OpenFOAM cluster running and installing Fauster OpenFOAM Installation 0 May 25, 2018 16:00
OpenFOAM parallel on VM? pimpleDyMFoam propeller tutorial has been running for hours. MBttR OpenFOAM Running, Solving & CFD 0 June 13, 2016 11:58
Difficulty running an inviscid compressible nozzle flow using OpenFOAM rbozinoski OpenFOAM Running, Solving & CFD 11 December 29, 2015 08:19
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38


All times are GMT -4. The time now is 11:00.