CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] OpenFoam blockMesh error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2014, 22:15
Default OpenFoam blockMesh error
  #1
New Member
 
BOUNOU Clovis
Join Date: Aug 2014
Posts: 3
Rep Power: 12
cfd_clovis is on a distinguished road
Hello to all the member of Frum,

I am a new user of CFD code OpenFoam
I installed the 2.3.0 CFD code OpenFoam there some time but it does not work well. Because for the tutorial cavity when I run the "blockMesh" command on the terminal
in the $ FOAM_RUN / tutorials / incompressible / icoFoam / cavity directory,
I get the following errors in the terminal:
///////////////////////////////////////////////////////
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/elvy/OpenFOAM/elvy-2.3.0/run/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

//////////////////////////

* Following this message as you know the mesh is created.


NB: the result of the command "cat log.foamInstallationTest" on the terminal is:

Executing /home/elvy/OpenFOAM/OpenFOAM-2.3.0/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: elvy
OS: Linux version 3.13.0-24-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/elvy/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/elvy/OpenFOAM/elvy-2.3.0 yes no
$WM_THIRD_PARTY_DIR /home/elvy/OpenFOAM/ThirdParty-2.3.0 yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/elvy/OpenFOAM/OpenFOAM-2.3.0 yes yes yes

$FOAM_APPBIN ...-2.3.0/platforms/linux64GccDPOpt/bin yes yes yes
$FOAM_SITE_APPBIN .../2.3.0/platforms/linux64GccDPOpt/bin no no
$FOAM_USER_APPBIN ...-2.3.0/platforms/linux64GccDPOpt/bin no no
$WM_DIR /home/elvy/OpenFOAM/OpenFOAM-2.3.0/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...-2.3.0/platforms/linux64GccDPOpt/lib yes yes yes
$FOAM_SITE_LIBBIN .../2.3.0/platforms/linux64GccDPOpt/lib no no
$FOAM_USER_LIBBIN ...-2.3.0/platforms/linux64GccDPOpt/lib no no
$MPI_ARCH_PATH /usr/lib/openmpi yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
flex 2.5.35 /usr/bin/flex
gcc 4.8.2 /usr/bin/gcc
gzip 1.6 /bin/gzip
tar 1.27.1 /bin/tar
icoFoam 2.3.0 ...M/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.

Done

Please I need your help to solve the problem I do not know the origin.
cfd_clovis is offline   Reply With Quote

Old   August 25, 2014, 04:28
Default
  #2
New Member
 
Join Date: Jul 2014
Posts: 22
Rep Power: 12
jokerito is on a distinguished road
Hello and welcome to the forum,

It seems like your installation for OpenFoam is correct. You have also tipped 'of230' in the terminal before you started?

And I could help you more if you upload a *.log - file
Code:
 blockMesh > blockMesh.log 2>&1
From which folder are you running your program?
jokerito is offline   Reply With Quote

Old   August 25, 2014, 04:40
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

it seems you're trying to run blockMesh in cavity/constant/polyMesh folder while you should run it in just cavity folder.
alexeym is offline   Reply With Quote

Old   August 30, 2014, 08:29
Default
  #4
New Member
 
BOUNOU Clovis
Join Date: Aug 2014
Posts: 3
Rep Power: 12
cfd_clovis is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

it seems you're trying to run blockMesh in cavity/constant/polyMesh folder while you should run it in just cavity folder.
Hi alexeym.
thank you for your help.
you're right I was poorly executed the commamde "blockMesh"
the prblome is resolved.
thanks
cfd_clovis is offline   Reply With Quote

Old   August 30, 2014, 08:31
Default
  #5
New Member
 
BOUNOU Clovis
Join Date: Aug 2014
Posts: 3
Rep Power: 12
cfd_clovis is on a distinguished road
Quote:
Originally Posted by jokerito View Post
Hello and welcome to the forum,

It seems like your installation for OpenFoam is correct. You have also tipped 'of230' in the terminal before you started?

And I could help you more if you upload a *.log - file
Code:
 blockMesh > blockMesh.log 2>&1
From which folder are you running your program?
Hi jokerito.
the problem is solved.

i execcted "blockMesh command " in case directory

thanks you
cfd_clovis is offline   Reply With Quote

Old   October 16, 2015, 08:58
Default
  #6
New Member
 
Marcell Szabo-Meszaros
Join Date: Oct 2015
Posts: 9
Rep Power: 11
Samwise is on a distinguished road
Hey,

I'm a barely new user too.

Quote:
Originally Posted by alexeym View Post
Hi,

it seems you're trying to run blockMesh in cavity/constant/polyMesh folder while you should run it in just cavity folder.
Could you tell me, please how can I run only in the cavity folder?

(if I run the blockMesh commend in the case directory -cavity-, I get the same error msg)

Thanks
Samwise is offline   Reply With Quote

Old   June 21, 2018, 08:46
Default blockMesh error
  #7
New Member
 
pelin ilker
Join Date: Jun 2018
Posts: 2
Rep Power: 0
pelinilker is on a distinguished road
Hello all,
I am new at Openfoam and I have question about blockMesh. When I run blockMesh command on the cavity file, the system gives me this error:

FOAM FATAL ERROR:
cannot find file "/opt/openfoam5/tutorials/incompressible/icoFoam/cavity/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 505.

FOAM exiting



Do you know how can I solve this problem?
Thanks,
P.
pelinilker is offline   Reply With Quote

Old   June 21, 2018, 09:05
Default
  #8
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
You need a controlDict file in your system dictionary:

"FOAM FATAL ERROR:
cannot find file "/opt/openfoam5/tutorials/incompressible/icoFoam/cavity/system/controlDict"

If you are totally new to OF, you should go through this user guide:
https://cfd.direct/openfoam/user-guide/
After this a lot of stuff will be clear.
simrego is offline   Reply With Quote

Reply

Tags
blockmesh, blockmeshdict, mesher

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 07:25
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 07:45
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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