CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Impossible to read the file "foam.inp" using paraview (https://www.cfd-online.com/Forums/paraview/210074-impossible-read-file-foam-inp-using-paraview.html)

john myce October 25, 2018 11:07

Impossible to read the file "foam.inp" using paraview
 
Dear all foamers,

I face a problem using the command "paraFoam". I worked with OpenFoam5, the sprayFoam solver and with the foamChemistryReader. Thus I have two files for the chemistry and the reaction file which are "foam.inp" and "foam.dat".

When I finished to run the simulation and run paraview I have got an error about the foam.inp file:

Code:

I/O    : uncollated
--> FOAM Warning :
    From function bool Foam::IOobject::readHeader(Foam::Istream&)
    in file db/IOobject/IOobjectReadHeader.C at line 88
    Reading "/home/guillaume/OpenFOAM/guillaume-5.0/run/sprayFoam/N2/test/PR/Initialmass/constant/foam.inp" at line 1
    First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  5.x                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      IOobject;
    location    "constant";
    object      foam.inp;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Can anyone please help me?

wyldckat November 3, 2018 20:49

Quick answer: Technically it's just a warning and not an error. I've checked just now with OpenFOAM 5.x and the tutorial case "combustion/chemFoam/gri" and I get similar warning messages on the command line, but ParaView opened the field data from folder "0" without problems.

Given that the file you've gotten the warning for is from the folder "constant", there should be no problem here.

However, was there any specific problem in the data loaded in ParaView? Or did it not load any data at all?

john myce November 8, 2018 10:26

Hi Bruno,

Thanks for the answer, after checking, I agree with you it is just a warning message.

Now I can load data using this chemistry solver although there is the warning message.

The problem ,I had encountered, was that I used the liquid nitrogen and for the condition I had setup, there was not any particles injected into the domain so that is why I did not have some data loaded in paraview my bad :D.

I think I will open a new thread to talk about this problem but I was wondering, have you already use the liquid nitrogen in OpenFOAM or do you know someone which has already work with in OpenFoam?

Cheers,
John

wyldckat November 8, 2018 19:04

Quote:

Originally Posted by john myce (Post 714616)
have you already use the liquid nitrogen in OpenFOAM or do you know someone which has already work with in OpenFoam?

Quick answers: No and no.

Suggestion: Do simple tests with the cases, as if you were doing small laboratory experiments, e.g. do small variations of temperature, to see if the properties of the fluid are correct within those ranges. Don't assume that everything works out of the box.


All times are GMT -4. The time now is 09:03.