CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > enGrid

Error importing OpenFoam case in engrid

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2014, 06:41
Question Error importing OpenFoam case in engrid
  #1
New Member
 
Marco
Join Date: Mar 2014
Posts: 4
Rep Power: 4
geronimo_750 is on a distinguished road
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
geronimo_750 is offline   Reply With Quote

Old   July 1, 2014, 14:59
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   July 2, 2014, 05:53
Default
  #3
New Member
 
Marco
Join Date: Mar 2014
Posts: 4
Rep Power: 4
geronimo_750 is on a distinguished road
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
geronimo_750 is offline   Reply With Quote

Old   July 6, 2014, 07:32
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   January 29, 2015, 14:07
Default Having the same problem with older OpenFOAM
  #5
Member
 
einat
Join Date: Jul 2012
Posts: 31
Rep Power: 6
einatlev is on a distinguished road
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!
einatlev is offline   Reply With Quote

Old   January 29, 2015, 16:45
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   January 29, 2015, 16:52
Default Thanks! That seems to have worked for what I tried.
  #7
Member
 
einat
Join Date: Jul 2012
Posts: 31
Rep Power: 6
einatlev is on a distinguished road
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?
einatlev is offline   Reply With Quote

Old   January 29, 2015, 17:57
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I need more specific details, in order to be able to reproduce the same error.
wyldckat is offline   Reply With Quote

Reply

Tags
engrid, import, openfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Same SimpleFOAM Case converges with openFOAM 2.1 but diverges with openFOAM 2.0.1 alsdia OpenFOAM Running, Solving & CFD 3 October 22, 2012 11:25
Installing OpenFOAM 2.1 and enGrid aerospain OpenFOAM Installation 7 April 1, 2012 05:19
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


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