CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] Cannot find file "system/blockMeshDict" (https://www.cfd-online.com/Forums/openfoam-meshing/242533-cannot-find-file-system-blockmeshdict.html)

ElPAul0 April 26, 2022 07:43

Cannot find file "system/blockMeshDict"
 
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 9-b456138dc4bc
Exec : blockMesh
Date : Apr 26 2022
Time : 10:18:58
Host : "______"
PID : 48803
I/O : uncollated
Case : /home/______/OpenFOAM/_____-9/run/test1
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

Reading "blockMeshDict"



--> FOAM FATAL ERROR:
Cannot find file "system/blockMeshDict"



Hello every one!
I share with you this error that I encountered for the first time recently
I'm working on a new PC with a fresh openfoam9 installation
I tested openfoam with the pitzDaily test case, and it did just fine.
I created a new test1 directory on the $FOAM_RUN directory, and copy/pasted pitzDaily system directory, and created an empty constant directory.

Then I started writing down a new blockMeshDict file, using a python code that I made that automatically generates the vertices / blocks / boundaries

The blockMeshDict is then saved into the system directory and theoritically it should start meshing when I execute "blockMesh" from /run/test1 but i get the previously mentioned error, as if the file did not exist, while it actually does, without any typing error or stuff like that.

Maybe an encoding problem? The blockMeshDict should be saved in utf8 / ascii / binary format?
Maybe some extension name problem? The blockMeshDict does not have any extension name, so maybe python doesn't know how to encode it

I hope someone will be able to help me :)
Many thanks
Paul


PS: here is the result of tree command, on my test1 directory. blockMeshDict exists and is at the right location as you can see.

.
├── constant
└── system
├── blockMeshDict
├── controlDict
├── fvSchemes
└── fvSolution
2 directories, 4 files

Hr_kules May 12, 2022 08:09

1 Attachment(s)
Hi,


since you mentioned an error with encoding, does your blockMeshdict file have the same type as the standard blockMesh file type?

I noticed that this could lead to problems, when just copying the contant of an openFoam file, but not the file itself.


Maybe this helps :)


All times are GMT -4. The time now is 15:42.