CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Polymesh missing data...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 1, 2011, 02:46
Default Polymesh missing data...
  #1
New Member
 
NC
Join Date: Aug 2011
Posts: 1
Rep Power: 0
nicko is on a distinguished road
Hey All,
I am a noob. I have installed the latest version of OpenFOAM as per these instructions:
http://www.openfoam.com/resources/windows.php
So I am running through Virtual Box.
My problem is that when I run the tutorials I am always getting the error that I am missing an integer or '(' in the mesh points file. I took a look at the file and the nPoints is missing from the top. So I took a look and nFaces is also missing from the faces file.
Here is the error:

FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 18 an error

file: /home/nick/OpenFOAM/nick-2.0.1/run/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/points at line 18.

From function operator>>(Istream&, List<T>&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude/ListIO.C at line 149.

FOAM exiting


I am hoping that this is something simple that I overlooked. Your comments are appreciated.
Regards,
Nick
Attached Files
File Type: txt points.txt (14.7 KB, 21 views)
nicko is offline   Reply With Quote

Old   September 1, 2011, 18:08
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Greetings Nick and welcome to the forum!

Mmm... this is very odd. Run blockMesh once more and try running icoFoam again.

My deduction is this: the file you posted seems to have been corrupted somehow by some other application or possibly hardware malfunction; but if it were a hardware problem, you would have noticed it by now, since a lot more stuff would be crashing more often.

Therefore, it seems that there is some software that is damaging the proper operation-ability of OpenFOAM. This is why I'm asking you to run those two applications once more on that case, in order to try and replicate the situation.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 7, 2012, 14:18
Default polymesh missing data
  #3
New Member
 
Miguel A Jimenez
Join Date: Feb 2012
Posts: 4
Rep Power: 14
miguelon is on a distinguished road
Dear all,

I must admit I'm quite a noob and have found the same problem as Nicko.

My configuration is the same as him: OpenFOAM running on both Ubuntu 11.10 and on SuSE 11.4 linux, hosted in Windows (XP and 7) native machines through VirtualBox.

What I get when running the cavity tutorial is that the file cavity/polyMesh/points file gets corrupted in line 18, where the lines:

882
(
(0 0 0)
(0.005 0 0)
(0.01 0 0)
(0.015 0 0)
(0.02 0 0)
(0.025 0 0)
(0.03 0 0)
(0.035 0 0)
(0.04 0 0)
(0.045 0 0)
(0.05 0 0)
(0.055 0 0)
(0.06 0 0)
(0.065 0 0)
(0.07 0 0)
(0.075 0 0)
(0.08 0 0)
(0.085 0 0)
(0.09 0 0)

are substituted by a series of ^@ characters.

I may go back to the Windows machine and get the right text in order to rebuild the original file, but then it's the faces file the one that gets corrupted again and so on...

My question is that this looks rather related to special character or text codification between Windows and linux through VirtualBox, since the same error appeared under different platforms and linux flavours, doesn't it?

Don't know if this has already been diagnosed and fixed, but Nicko's one has been the only report matching my (short) experience I have found over the Internet.

Thanks to you all in advance.

Best regards,

miguelon
miguelon is offline   Reply With Quote

Old   February 7, 2012, 15:46
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Greetings Miguelon and welcome to the forum!

A few weeks ago it was discovered that there was a weird bug with VirtualBox 4.1.8, which did not occur with 4.1.6. This was reported on OpenFOAM's bug tracker and the solution posted on the comment #932: http://www.openfoam.com/mantisbt/view.php?id=384#c932

Other than this, I haven't been able to trigger this specific bug, where blockMesh is unable to properly save data.

If you can, please also state which language settings you are using on Ubuntu and openSUSE, as well as the amount of RAM allocated to the virtual machines. This way I (or anyone else) can try and recreate the same working environment, in order to try and figure out what really is going on wrong.

By the way, are you running the case inside a shared folder? You know, one of those shared folders between virtual and real machine.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 7, 2012, 16:48
Default
  #5
New Member
 
Miguel A Jimenez
Join Date: Feb 2012
Posts: 4
Rep Power: 14
miguelon is on a distinguished road
Thanks, Bruno, for your fast and useful advice.

Concerning my environment(s), I have installed Ubuntu and SuSE in English language (the default option) and have allocated 2048 kB of RAM to the VM.

And I must answer yes to your last question, I run the test cases in a shared folder.

I'll try the suggested solution and let you know.

Thanks again,

miguelon
miguelon is offline   Reply With Quote

Old   February 8, 2012, 19:03
Default
  #6
New Member
 
Miguel A Jimenez
Join Date: Feb 2012
Posts: 4
Rep Power: 14
miguelon is on a distinguished road
Hi there,

I have uninstalled everything, downgraded to VirtualBox 4.1.6, followed the installation instructions from the start and... I got the same error !!!

However, if I had the caution of copying the tutorials tree on a non-shared folder and running OpenFOAM therein, it worked OK.

Therefore it must be a matter of the way read/write permissions are managed between the host and the guest machine in shared folders.

Thanks for the hint, Bruno.

Kind regards,

miguelon
miguelon is offline   Reply With Quote

Old   February 8, 2012, 19:07
Default
  #7
New Member
 
Miguel A Jimenez
Join Date: Feb 2012
Posts: 4
Rep Power: 14
miguelon is on a distinguished road
Sorry, I have just realised on my previous posts that I had allocated 2048 MB of RAM to the VM, obviously not 2048 kB.

Apologies

miguelon
miguelon is offline   Reply With Quote

Reply


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
data missing when Sampling in openfoam mcjicpm2 OpenFOAM Post-Processing 2 May 26, 2014 05:06
Missing Data Rich1979 FLUENT 0 May 18, 2010 04:21
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
[Netgen] Polymesh cells file missing fabrizio OpenFOAM Meshing & Mesh Conversion 15 October 30, 2008 10:07
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 08:33.