wyldckat / cgnsToFromFoam

Port of cgnsToFoam from TurbMachinery SIG to OpenFOAM 5.x and newer
Other
13 stars 6 forks source link

Error with Allrun command in the turbomachinery tutorial #4

Open Adewum opened 5 years ago

Adewum commented 5 years ago

Hello Bruno,

I got the cgnsToFromFoam on github, following the README.md, I was able to install and compile all necessary packages and libraries. But when I tried running "./Allrun", I got some warning and error messages I could not understand. On the terminal; Create time

--> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 1 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "BAR_2" found in zone 0, section 2 has no OpenFOAM equivalence - skipping --> FOAM Warning : Cell type "NODE" found in zone 0, section 3 has no OpenFOAM equivalence - skipping Output of mesh and boundary conditions Running simpleFoam... Done.

And on the log file; ` --> FOAM FATAL IO ERROR: problem while reading header for object turbulenceProperties

file: /home/p7311/cgnsToFromFoam/tutorials/cgnsConverters/test1/case/constant/turbulenceProperties at line 1.

From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 526.

FOAM exiting`

What could be wrong, Am I to completely remove the header? or what may I do to get going on running the tutorial? I use Ubuntu 18.04.2 LTS.

Thanks

wyldckat commented 5 years ago

As far as I can see, these warnings:

--> FOAM Warning : Cell type "QUAD_4" found in zone 0, section 1 has no OpenFOAM equivalence - skipping
--> FOAM Warning : Cell type "BAR_2" found in zone 0, section 2 has no OpenFOAM equivalence - skipping
--> FOAM Warning : Cell type "NODE" found in zone 0, section 3 has no OpenFOAM equivalence - skipping

are just warnings. From their descriptions, my guess is that:

  1. QUAD_4 refers to additional meshed patches or at least one extra face.
  2. BAR_2 likely refers to an edge, which isn't necessary, since the converted mesh already has everything needed.
  3. NODE refers to a vertex, which is already assembled in the converted mesh.

The problem could be if baffles were being defined with QUAD_2... but if that's the case, that is way beyond my experience with this toolkit. I only handled the adaptation to build with modern OpenFOAM versions.

wyldckat commented 5 years ago

Sorry, I forgot to comment about the other error: I did not update the test cases to run with the modern OpenFOAM cases, which would explain why you have gotten that error. The closest versions of OpenFOAM were likely 1.6.x and 1.7.x when the original toolkit was last updated, therefore these test cases are still several years outdated.