CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Impossible to read the file "foam.inp" using paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2018, 12:07
Default Impossible to read the file "foam.inp" using paraview
  #1
Member
 
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 8
john myce is on a distinguished road
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?
john myce is offline   Reply With Quote

Old   November 3, 2018, 21:49
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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?
__________________
wyldckat is offline   Reply With Quote

Old   November 8, 2018, 11:26
Default
  #3
Member
 
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 8
john myce is on a distinguished road
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 .

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
john myce is offline   Reply With Quote

Old   November 8, 2018, 20:04
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by john myce View Post
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.
john myce likes this.
wyldckat is offline   Reply With Quote

Reply

Tags
chemistryreader, openfoam 5.0, openfoam 5.x, paraview, sprayfoam


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
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:56.