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

attempt to read beyond EOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2016, 13:53
Default attempt to read beyond EOF
  #1
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Dear Fellows

I have a rectangular -shaped grid which its bottom should be a wall with discontinuous distribution of one of scalars. In other words, for defining Ue (scalar) on the bottom wall of my grid I want to use a discontinuous distribution as follows:

At the bottom wall I have: y=0
Code:
-3<x<-2      Ue=0

-2<x<-0.5     Ue=1
-0.5<x<0.5     Ue=0
0.5<x<2       Ue=-1
2<x<3        Ue=0
I have attached the picture of the grid. I tried to use the following boundary condition to read the distribution from file:



Code:
downWall       
    {
    type            uniformFixedValue;
          uniformValue    csvFile;
          csvFileCoeffs
        {
                fileName         "$FOAM_CASE/myDataFile"
                outOfBounds      clamp;
                hasHeaderLine    true;
                refColumn        0;
                componentColumns 1; // vector example
        }
    }
I am using OF 2.1.x and the point is that I have looked at $FOAM_CASE /constant/polyMesh boundary file and my downwall has 95 faces:

Code:
downWall
    {
        type            wall;
        nFaces          95;
        startFace       3780;
    }
So I defined 95 rows in one colum as attached, however I am facing this error during execution:
Code:
Reading field Electric Potential Ue



--> FOAM FATAL IO ERROR: 
attempt to read beyond EOF

file: /home/babak/interFoamEHD_EHDMR_Cases_Public/Cases/validation_v2/planarElectrostaticProblem/0/Ue::boundaryField::downWall::csvFileCoeffs::componentColumns at line 39.

    From function ITstream::read(token&)
    in file db/IOstreams/Tstreams/ITstream.C at line 83.

FOAM exiting
Can Anybody hint me how is the correct way to read this boundary for downwall from a .CSV type file?
Attached Images
File Type: jpg grid.jpg (67.5 KB, 3 views)
Attached Files
File Type: gz MyDataFile.csv.tar.gz (135 Bytes, 0 views)
babakflame 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
[Gmsh] No cells read from file ".msh" hwsv07 OpenFOAM Meshing & Mesh Conversion 5 August 13, 2018 15:42
Problem running in parralel Val OpenFOAM Running, Solving & CFD 1 June 12, 2014 02:47
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 09:46
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51


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