CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

checkMesh - Foam Fatal IO Error - newbi

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2023, 13:20
Default checkMesh - Foam Fatal IO Error - newbi
  #1
New Member
 
Luis Quezada
Join Date: Nov 2021
Posts: 3
Rep Power: 4
L_Qu3z4da is on a distinguished road
Hi, sorry for bother you. I am newbi
I cannot run checkMesh command. Yesterday I was running it on system folder and when researching I learned that commands must be done on top folder, I tried again but got
Code:
--> FOAM FATAL IO ERROR: (openfoam-2206)
Entry 'format' not found in dictionary ""
I am following Tobias Holzmann smoking pipe tutorial
Attached Images
File Type: jpg STL.jpg (69.1 KB, 8 views)
File Type: jpg file.JPG (12.8 KB, 8 views)
File Type: jpg help.JPG (91.1 KB, 7 views)
File Type: jpg Foam Fatal Error.jpg (57.8 KB, 7 views)
File Type: jpg IO Error.jpg (104.7 KB, 8 views)
L_Qu3z4da is offline   Reply With Quote

Old   May 16, 2023, 17:25
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You should run (almost) all commands from the top level dir, in this example that would be SmokingPipefoam. Although you can run some commands like checkMesh from within the constants folder.



Make sure your controlDict is in SmokingPipefoam/system and is not buried in more subdirectories. Make sure it is a valid controlDict. In this example, it looks like your control dict or another dict is missing the OpenFOAM header if it can even find your controlDict at all. The header is absolutely necessary because foam needs to know that it is reading ascii text and not other coded formats.



Code:
/*--------------------------------*- C++ -*----------------------------------*\
 | =========                 |                                                 |
 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
 |  \\    /   O peration     | Version:  plus                                  |
 |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
 |    \\/     M anipulation  |                                                 |
 \*---------------------------------------------------------------------------*/
 FoamFile
 {
     version #.#;
     format      ascii;
     class       dictionary;
     location    "system";
     object      controlDict;
 }
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Last edited by LuckyTran; May 16, 2023 at 21:09.
LuckyTran is offline   Reply With Quote

Old   May 16, 2023, 18:42
Default There is controlDict
  #3
New Member
 
Luis Quezada
Join Date: Nov 2021
Posts: 3
Rep Power: 4
L_Qu3z4da is on a distinguished road
Quote:
Make sure your controlDict is in SmokingPipefoam/system and is not buried in more subdirectories. Make sure it is a valid controlDict.
There is a controlDict. I copied it from motorbike tutorial. At this point I am kind of desesperate, I dont know C++ and most of the times I cannot interprete what those warnings are telling me I am only sure that I did the same as the videos and I cannot do neither checkMesh nor snappyHexMesh and stupidly enough I need OF for my bachelors thesis tuition and I cannot advance. CAD tutorial model was horrible so I made other with sourfaces in order to follow the tutorial but I cannot simply continue. I really would appreciat it if you give it a look.
https://1drv.ms/u/s!AgN4cFrYS98LkxCo...PY4H8?e=BpOwmn
L_Qu3z4da is offline   Reply With Quote

Old   May 16, 2023, 21:20
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The error is saying this line is missing from one of your dicts

Code:
format      ascii;
L_Qu3z4da likes this.
LuckyTran is offline   Reply With Quote

Reply

Tags
openfaom, pre processing


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
SimpleFoam cannot open include file Marija OpenFOAM Running, Solving & CFD 1 October 28, 2020 11:35
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 23:50


All times are GMT -4. The time now is 00:51.