|
[Sponsors] |
[OpenFOAM.org] Openfoam 8 Installation Error - 'FOAM FATAL ERROR' |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 20, 2021, 06:28 |
Openfoam 8 Installation Error - 'FOAM FATAL ERROR'
|
#1 |
New Member
Laurence
Join Date: Feb 2021
Posts: 2
Rep Power: 0 |
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. |
|
February 21, 2021, 02:48 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40 |
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. |
|
February 21, 2021, 05:41 |
|
#3 |
New Member
Laurence
Join Date: Feb 2021
Posts: 2
Rep Power: 0 |
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 ? |
|
February 21, 2021, 13:53 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40 |
Quote:
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. |
||
|
|
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 |