CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

foamCalc: Fatal io error calculating divergence of velocity field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2014, 10:20
Default foamCalc: Fatal io error calculating divergence of velocity field
  #1
New Member
 
Join Date: Sep 2013
Posts: 8
Rep Power: 12
rendagar is on a distinguished road
Hi,

I have an error I don't understand when I try and calculate the divergence of a velocity field. I'm using openFoam 2.2.2 and am using the planeWall2D case fond here:

http://openfoamwiki.net/index.php/Ge..._-_planeWall2D

I'm trying to calculate the divergence of the velocity field using foamCalc. The command I use is
Code:
> foamCalc div U -region bottomAir
When I add
Code:
div(U)   Gauss linear
or
Code:
div(U)   Gauss cubic
to ./planeWall2D/system/bottomAir/fvSchemes I'm able to calculate a new field. Haven't checked if it is correct but at least it looks reasonable (almost the entire field is close to 0). However when I try and use a different method like upwind or some of the others I get the following error.

Code:
Time = 50000
     Reading U
     Calculating divU
--> FOAM warning :
--> FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: ....../planeWall2D/system/bottomAir/fvSchemes.divSchemes.div(U) at line 39
I'm guessing this would happen if the code is looking for additional input parameters. However as far as O know upwind does not require additional parameters that would cause this but perhaps I'm mistaking. Does anyone have any idea why I'm getting the error on some of the discretization schemes and not on other.

Regards,

P.S. I copied the code an output by hand so there might be some typos in there. They are not the cause of the error I see, but caused by my poor typing skills.
rendagar is offline   Reply With Quote

Reply

Tags
divergence, foamcalc


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
Editing chtMultiRegionFoam to not solve velocity field tH3f0rC3 OpenFOAM 18 January 24, 2020 16:39
[OpenFOAM] velocity Scalar field for paraview contour Jens123 ParaView 0 November 16, 2013 07:15
velocity of massless particles and velocity of flow field in same coordinate payam_IUST FLUENT 0 October 18, 2009 23:24
Divergence in Velocity Field vidyaraja FLUENT 0 May 6, 2009 08:35
Pressure from velocity field Svante Hellzén Main CFD Forum 5 November 30, 1999 18:20


All times are GMT -4. The time now is 20:50.