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

[OpenFOAM.org] Openfoam 8 Installation Error - 'FOAM FATAL ERROR'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2021, 06:28
Default Openfoam 8 Installation Error - 'FOAM FATAL ERROR'
  #1
New Member
 
Laurence
Join Date: Feb 2021
Posts: 2
Rep Power: 0
LS1554 is on a distinguished road
Hi, apologies for my ignorance this is the first time I am attempting to use openfoam. I am using virtualbox to run ubuntu client and have followed instructions on openfoam website to install openfoam 8.
I had no error with the install directly, after performing updates/upgrades it suggests everything is installed correctly.
I then edit my bashrc file by adding a new line:

"source /opt/openfoam8/etc/bashrc"

Save this and try to run the next command:

"simpleFoam -help"

and receive the following error:

--> FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

I have tried to run tutorial cases also and receive the same error when I attempt to use blockMesh function.

I can open the opt/openfoam8/bashrc file and notice it is read-only.
I made a seperate run directory in documents directory and this made no difference.

Using Ubuntu 20.10 if that helps.
LS1554 is offline   Reply With Quote

Old   February 21, 2021, 02:48
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Out of curiosity, why run in a virtualbox (and why openfoam.org instead of openfoam.com)?
The error about etc/controlDict indicates that the environment variable WM_PROJECT_DIR is either not set or set incorrectly. Perhaps the path mapping with virtualbox is messing things up.
olesen is offline   Reply With Quote

Old   February 21, 2021, 05:41
Default
  #3
New Member
 
Laurence
Join Date: Feb 2021
Posts: 2
Rep Power: 0
LS1554 is on a distinguished road
Hi, thanks for the reply.

The PC I intend to use is for everyday use, so I have a windows 10 host. It seemed the simplest way was to use virtualbox.

I did not realise the software was different from .org/.com. I will follow instructions on openfoam.com and see if I get a different outcome.

Could you tell me where the $WM_PROJECT_DIR should be pointing? To the \opt\openfoam8 ?
LS1554 is offline   Reply With Quote

Old   February 21, 2021, 13:53
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by LS1554 View Post
Hi, thanks for the reply.

The PC I intend to use is for everyday use, so I have a windows 10 host. It seemed the simplest way was to use virtualbox.

I did not realise the software was different from .org/.com. I will follow instructions on openfoam.com and see if I get a different outcome.

Could you tell me where the $WM_PROJECT_DIR should be pointing? To the \opt\openfoam8 ?
If you have a Windows 10 host you have the choice of three different deployment methods for the openfoam.com version: a docker container, a mingw cross-compiled windows version and an Ubuntu version installed via WSL2.
I can't tell you which one is best for you - this will depend on what you want to do with it. If you are a Windows-only kind of person, then maybe the mingw version. I personally would probably go for the WSL solution with Ubuntu and then install the Ubuntu packages directly there. However this heavily biased since I don't actually have Windows anywhere and this solution would just be me trying to make a windows machine not look like one.

For your last question, yes the WM_PROJECT_DIR should point to the root of the OpenFOAM installation like you thought, but this isn't Windows - the path separators are '/' and not backslashes.
olesen 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
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 06:25
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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