CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   checkMesh - Foam Fatal IO Error - newbi (https://www.cfd-online.com/Forums/main/249925-checkmesh-foam-fatal-io-error-newbi.html)

L_Qu3z4da May 16, 2023 12:20

checkMesh - Foam Fatal IO Error - newbi
 
5 Attachment(s)
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

LuckyTran May 16, 2023 16:25

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;
 }
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


L_Qu3z4da May 16, 2023 17:42

There is controlDict
 
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

LuckyTran May 16, 2023 20:20

The error is saying this line is missing from one of your dicts

Code:

format      ascii;


All times are GMT -4. The time now is 08:31.