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

Openfoam v1906 on arm64 ubuntu eoan, wont run in any directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2020, 20:00
Question [Solved] Openfoam v1906 on arm64 ubuntu eoan, wont run in any directory
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
Hello foamers,

I am running into an error regarding running any foam command (blockMesh, simpleFoam, icoFoam, etc.)

I am using ubuntu eoan 19.10 on arm64 running inside a container. The previous install of ubuntu Bionic running an old openfoam 4.0 ran fine, but with eoan their repo upgraded to v1906.

The error I get is this:

Code:
blockMesh
--> FOAM FATAL ERROR :
    Could not find mandatory etc entry (mode=ugo)
    'controlDict'
I checked bashrc and it looks to be pointed to the right installation location which for me is /usr/share/openfoam which seems to only have an etc directory.

--------------------------------------------------------------------------------------

Issue was solved by building from source. I build the newer v1912 and got it to work. My experiences here:

Quote:
Great news, I was able to compile and install OpenFOAM-v1912 arm64 directly inside my Ubuntu 19.10 install inside a Proot Container running on an Android Phone.

So what I did differently this time was:

-First made sure give termux (my terminal to launch the container) wakelock such that android doesn't kill the session
-Downloading the latest tar file named OpenFOAM-v1912200314.tar.gz (kept the original Thirdparty-v1912.tar.gz as it was unchanged)
-Untar into my new directory located in /opt/OpenFOAM
- [Optional: I hear its not needed as this is automated] I did go into the etc/bashrc and un-commented the build directory pointing to openfoam in opt and commented the build directory pointing to openfoam in $Home
- sourced etc/bashrc in terminal (my terminal was already in the OpenFOAM-v1912 directory)
- Did foamSystemCheck command and noticed that for me that openfoam cannot figure out which shell I am using (I am using bash), and this is due to permissions with proot containers (it shouldn't be an issue)
- ran ./Allwmake -j4 -l (I chose 4 because anything higher would cause resource issues with my soc)
- It build correctly and I was able to run foamInstallationTest and even commands such as blockMesh/simpleFoam/etc.
-Finally i edited in my bashrc in my home directory with this line:
Code:
alias of1912='source /opt/OpenFOAM/OpenFOAM-v1912/etc/bashrc';
And voila I was done, now whenever i launch terminal, i just type in of1912 and i can use openfoam.

I created a run directory and then copied over a few tutorials to test.
elbow, pitzDaily, airFOIL2D, simpleCar, rotarDisk all ran using both manual commands and there Allrun scripts.

ParaFoam worked out of the box with my Paraview 5.8.0 (installed from Ubuntu Repo using apt-get)

I was able to visualize this all on a phone:
https://imgur.com/Ph62I0z

The only issue I have is that motorBike didn't run correctly with Allrun, it ran to quickly and when I tried to open results, paraview didn't have the data for p,U,nu,etc. I even ran it manually using blockMesh > snappyHexMesh (it took around 800 seconds to run) > SimpleFoam, and it still couldnt find the proper results in paraview. I chalk this down to openmpi support for my device.

However largely everything else works

Last edited by EternalSeekerX; May 18, 2020 at 03:40.
EternalSeekerX is offline   Reply With Quote

Old   September 11, 2020, 14:06
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
Late follow up. The standard openfoam package on Ubuntu needs some additional love and care to be more universally useful. I would strongly suggest using the openfoam.com packages directly:
https://develop.openfoam.com/Develop...ompiled/debian
As explained in wiki, there are a number subpackage which should liet everyone find their preferred setup.
The packages will also suggest loading the openfoam-selector, which provides a convenient means of specifying your preferred openfoam version.
The packages also include an openfoam shell session, to quickly use OpenFOAM applications directly.
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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 11:52
[OpenFOAM.org] OpenFOAM 2.3.x on Mac OS X 10.10.1 Installation Errors Petru OpenFOAM Installation 15 December 29, 2015 12:51
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Working directory via command line Luiz CFX 4 March 6, 2011 20:02


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