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

[OpenFOAM.org] FOAM v-11 Fatal error using blockMesh, Ubuntu 22.04

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By Gallienus

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2023, 10:09
Question FOAM v-11 Fatal error using blockMesh, Ubuntu 22.04
  #1
New Member
 
John
Join Date: Nov 2013
Location: USA
Posts: 22
Rep Power: 13
Gallienus is on a distinguished road
Hi,
I'm using a new installation of OpenFOAM (Foundation) version 11 on Ubuntu 22.04: the latest release.
Got the following error trying to run blockMesh for a copy of tutorial 2.1: Backwards-Facing Step.

john@Caligula:~/OpenFOAM/john-11/run/back_step_tut/pitzDailySteady/system$ blockMesh
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 11-d5b4d966c3c5
Exec : blockMesh
Date : Nov 06 2023
Time : 15:09:09
Host : "Caligula"
PID : 75870
I/O : uncollated
Case : /home/john/OpenFOAM/john-11/run/back_step_tut/pitzDailySteady/system
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR:
cannot find file "/home/john/OpenFOAM/john-11/run/back_step_tut/pitzDailySteady/system/system/controlDict"

From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 539.

FOAM exiting


As you can see the blockMeshDict file is where it should be with okay permissions.
Here is my directory listing and path:
~/OpenFOAM/john-11/run/back_step_tut/pitzDailySteady

total 24
drwxr-xr-x 2 john john 4096 Oct 14 18:12 ./
drwxr-xr-x 5 john john 4096 Oct 16 09:11 ../
-rw-r--rw- 1 john john 2642 Oct 14 18:12 blockMeshDict
-rw-rw-rw- 1 john john 1353 Oct 14 18:12 controlDict
-rw-r--rw- 1 john john 1367 Oct 14 18:12 fvSchemes
-rw-r--rw- 1 john john 1563 Oct 14 18:12 fvSolution

I should have adequate permissions for executing blockMesh. Is it a compiler error? I did not compile my OF from source but installed a pre-compiled version which seemed to install sucessfully.

Any help would be appreciated.

Last edited by Gallienus; November 7, 2023 at 10:12. Reason: clarification
Gallienus is offline   Reply With Quote

Old   November 7, 2023, 10:13
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Quote:
Originally Posted by Gallienus View Post
Case : /home/john/OpenFOAM/john-11/run/back_step_tut/pitzDailySteady/system
You tried to run blockMesh from the system directory. You have to be at the root of your case to run commands.

Cheers,
Yann
Gallienus likes this.
Yann is offline   Reply With Quote

Old   November 7, 2023, 10:24
Default
  #3
New Member
 
John
Join Date: Nov 2013
Location: USA
Posts: 22
Rep Power: 13
Gallienus is on a distinguished road
Wow it worked!
Thanks very much Yann.
Yann likes this.
Gallienus is offline   Reply With Quote

Reply

Tags
blockmesh, fatal error, tutorial 21, ubuntu


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
[OpenFOAM] Take derivative of mean velocity in paraFoam hiuluom ParaView 13 April 26, 2016 07:44
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 04:56.