CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   enGrid (https://www.cfd-online.com/Forums/engrid/)
-   -   Error importing OpenFoam case in engrid (https://www.cfd-online.com/Forums/engrid/138251-error-importing-openfoam-case-engrid.html)

geronimo_750 July 1, 2014 06:41

Error importing OpenFoam case in engrid
 
Hi All,

I am trying to import any openFoam case into engrid but I always get the same error:

foamreader.cpp error line 194.

the output I get on the terminal is:

void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "" under id 59
m_LogFileName = /tmp/enGrid_20140701112401830/enGrid_output.txt
311410 nodes
311408 faces
622816 triangles
619576


Openfoam and engrid are installed on Ubuntu 14.04.

Not sure if anybody else had the same problem (I could not find it on the forum) but any type of help is more than welcome.

Regards,

Marco

wyldckat July 1, 2014 14:59

Greetings Marco and welcome to the forum!

There are a few reasons why enGrid might not be able to load the mesh from an OpenFOAM case. The ones I can remember are:
  1. The original files may be too big, possibly greater than 2 GB.
  2. I'm not sure if enGrid can import any kind of surface mesh from OpenFOAM.
  3. The original mesh files might be using a new terminology that enGrid isn't familiar with yet.
Therefore, a few questions about your case:
  1. With what software was the mesh originally generated? If it was with OpenFOAM, with which exact version?
  2. How much RAM does your machine have?
  3. How big are the mesh files? Look into the folder "constant/polyMesh".
  4. What are the specs of your case's mesh? In other words, what does checkMesh give you?
  5. Are you able to reproduce the same error with a tutorial case from OpenFOAM?
Best regards,
Bruno

geronimo_750 July 2, 2014 05:53

Hi Bruno,

Thanks a lot for your welcome. Answering to your questions:

I tried to import both my mesh (a plot3D converted to OpenFoam format which is readable with parafoam) and some random mesh from different tutorials but I get always the same error.
I am using OpenFoam 2.3.0 on Ubuntu 10.04 and My computer has 32GB of Ram so I am on the safe side here! ;-)

Any suggestion?

Cheers,

Marco

wyldckat July 6, 2014 07:32

Hi Marco,

OK, took me a while to figure this one out, but it's somewhat simple. The problem is that as OpenFOAM keeps evolving, new features appear which are not yet supported by older software, such as enGrid. In this case, there is a new entry named "inGroups" for each boundary in the file "constant/polyMesh/boundary", which leads to this problem.

The workaround is to execute the following command in the case folder:
Code:

sed -i -e '/inGroups/d' constant/polyMesh/boundary
Then you can import the case with enGrid.

Best regards,
Bruno

einatlev January 29, 2015 13:07

Having the same problem with older OpenFOAM
 
Hello!
I am running OpenFOAM 2.2.0 on CentOS. engrid is giving me the same error message: file:foam reader.cpp, line 194.
console output is:
4746 nodes
4744 faces
9488 triangles
9176
1 , 50 , 100
2 , 100 , 200
3 , 162 , 324
4 , 208 , 416

This happened also when trying to import the tutorial cases from OF's home directory.

Thanks!

wyldckat January 29, 2015 15:45

Greetings einatlev,

Edit the file "constant/polyMesh/boundary" in your case and lines similar to this one:
Code:

inGroups        1(empty);
Then enGrid 1.4 will be able to load it!

Best regards,
Bruno

einatlev January 29, 2015 15:52

Thanks! That seems to have worked for what I tried.
 
However, at some point I also got another error message, reporting a bug at foam reader.cpp line 62.
Any clue what that's about?

wyldckat January 29, 2015 16:57

I need more specific details, in order to be able to reproduce the same error.


All times are GMT -4. The time now is 06:36.