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

Can't use some OpenFOAM facilities

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 3, 2012, 20:46
Default Can't use some OpenFOAM facilities
  #1
New Member
 
Ken
Join Date: Mar 2012
Posts: 10
Rep Power: 5
Mister_K is on a distinguished road
I asked my engineering supervisor about why some of the in-built 'Foam's (like icoFoam) just don't seem to work when I try to execute them in my ubuntu 11.10 32 bit on Oracle VM VirtualBox.

We discussed a few topics, and came up with the problem being that I am not the owner of the ubuntu OS, yet I only made 1 account, which says its an administrator, which results in me having to 'sudo -s' to log in to the root account, which apparently isn't the best thing to do.

There doesn't seem to be any ownership or admin privileges I can set during the ubuntu installation, how can I remedy this 'non-owner' situation?
Mister_K is offline   Reply With Quote

Old   May 4, 2012, 03:53
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Ken,

That is somewhat of a vague description of the problem. Once OpenFOAM is installed, you shouldn't need to run things as root. That would only happen if you messed up the installation.

So, a few questions:
  1. What instructions did you follow to install OpenFOAM and on which Ubuntu version?
  2. Where exactly are you trying to use icoFoam?
  3. Are you following the instructions from the OpenFOAM User Guide on how to run the tutorials?
And a friendly warning: do not share directly the folders where you run your cases from inside the VM, with the real machine. In other words, use the VM's virtual hard-drive and copy to the folder shared with the real machine, only after the case has completed execution! The explanation is shown here in the forum somewhere... search for "virtualbox" here on the forum.


Best regards,
Bruno
wyldckat is online now   Reply With Quote

Old   May 4, 2012, 05:50
Default
  #3
New Member
 
Ken
Join Date: Mar 2012
Posts: 10
Rep Power: 5
Mister_K is on a distinguished road
Thank you for your reply Bruno,

My supervisor has also warned me about using 'sudo -s' as I shouldn't ever have to touch that command if I was the owner of the OS.

1) I followed all of the instructions stated in the official 'Ubuntu Deb Pack Installation' on openfoam.org [http://www.openfoam.org/download/ubuntu.php]

I installed official Ubuntu version 11.10 'oneiric' .iso file in 32 bit onto VirtualBox version 4.1.14r77440

'selected Install Ubuntu'

'unchecked download updates while installing & install this third-party software [was connected to internet, had the free space]'

'selected erase disk and install Ubuntu'

'the entire disk will be used: Ubuntu /dev/sda (ext 4) 8.6GB [SCSI3 (0,0,0) (sda) - 8.6GB ATA VBOX HARDDISK]'

After Ubuntu successfully installed, I did not proceed to download/install any updates, and I installed OpenFOAM as mentioned above, and just changed the wallpaper.

2) 'icoFoam' was not the specific subroutine, I believe it was one of the 'MRF' Foam example files, however I believe the source of my problems is because 'I am not the owner, I cannot edit these files'

3) I have successfully finished tutorials 1 and 3, the dam break and lid driven cavity flow, but have not ventured into the tutorials in the manual, but I have downloaded it and browsed it.

I have also yet to share a folder from my win7 x64 home prem. with VirtualBox, but I will get to doing it
Mister_K is offline   Reply With Quote

Old   May 5, 2012, 07:01
Default
  #4
Senior Member
 
Hisham's Avatar
 
Hisham El Safti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 247
Blog Entries: 10
Rep Power: 8
Hisham is on a distinguished road
Hi Mister_K

I think it would be better if you give exactly which command you give and what is the error produced (copy and paste from terminal). Otherwise, no one will really be able to help.

Regards
Hisham
Hisham is offline   Reply With Quote

Old   May 5, 2012, 08:35
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

Hisham is right: without error messages, you're only making us try to guess what the problem is.

Nonetheless, my diagnosis is this:
  1. If you ran the tutorials, then everything should be working well.
  2. If you are indeed having permission restrictions it's either because:
    1. You're trying to run a command directly in "/opt/openfoam210", which you should not do.
    2. Or you copied the tutorials folder using "sudo", but then tried to run things in the copy version as normal user.
  3. Or you are simply not interpreting properly the error message shown to you. For example, if it says this:
    Code:
    --> FOAM FATAL IO ERROR:
    cannot find file
    
    file: /home/user/OpenFOAM/system/controlDict at line 0.
    
        From function regIOobject::readStream()
        in file db/regIOobject/regIOobjectRead.C at line 73.
    
    FOAM exiting
    Then it's because you aren't running the command in the correct folder! In this example, it says "cannot find file" and specifies which file isn't being found!
Best regards,
Bruno
wyldckat is online now   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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 23:39.