|
[Sponsors] |
[OpenFOAM] Impossible to read the file "foam.inp" using paraview |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 7 ![]() |
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; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
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?
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Sep 2018
Location: France
Posts: 62
Rep Power: 7 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
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. |
||
![]() |
![]() |
![]() |
Tags |
chemistryreader, openfoam 5.0, openfoam 5.x, paraview, sprayfoam |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 03:50 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 17:18 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |