View Issue Details

IDProjectCategoryView StatusLast Update
0001838OpenFOAMBugpublic2015-08-25 22:29
Reporteruser1224Assigned Tohenry  
PriorityhighSeveritycrashReproducibilityhave not tried
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0001838: foamToVTK fatal error
DescriptionI am currently simulating a single spherical particle in laminar liquid flow in a channel using DPMFoam. After the simulation stopped I used the command foamToVTK and I got the following error:
--> FOAM FATAL IO ERROR:
size 500 is not equal to the given value of 5000

file: /home/hp/OpenFoam/Foam_run/parallelplates/0.001/U from line 18 to line 544.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/Field.C at line 292.
FOAM exiting

On opening the U and U.air files and I found that U.air is populated with 5000 entries and U has been populated with 500 entries (both of vector lists). What must be the reason for this? Please help.
TagsFatal Error, foamToVTK

Activities

user1224

2015-08-25 22:14

 

attachments.zip (5,102 bytes)

henry

2015-08-25 22:14

manager   ~0005296

It is not clear why you have a field file U in your time directories, maybe you generated them using some other application; DPMFoam does not read or write U. If you delete these erroneous files foamToVTK should run without problem.

user1224

2015-08-25 22:23

  ~0005297

Hi Henry, Thanks for your reply.
I am currently deleting the time files and running the solver again.
Could you please also have a look at the attachments, especially for the boundary conditions? I have deviated there from the tutorial file "Goldschmidt". In that I have not mentioned $internalField boundary condition anywhere. Can it cause some problem?

henry

2015-08-25 22:25

manager   ~0005298

When you run the Goldschmidt tutorial do you get spurious/erroneous U files?

user1224

2015-08-25 22:28

  ~0005299

No. I donot get those files in the Goldschmidt case as you said. And now I am running the solver for my case and it seems that the error is solved I am not getting those spurious files anymore. Thank you very much.
Just one thing, please let me know about the boundary conditions also. Thanks a lot again!

Issue History

Date Modified Username Field Change
2015-08-25 21:48 user1224 New Issue
2015-08-25 21:55 user1224 Tag Attached: Fatal Error
2015-08-25 21:55 user1224 Tag Attached: foamToVTK
2015-08-25 22:14 user1224 File Added: attachments.zip
2015-08-25 22:14 henry Note Added: 0005296
2015-08-25 22:23 user1224 Note Added: 0005297
2015-08-25 22:25 henry Note Added: 0005298
2015-08-25 22:28 user1224 Note Added: 0005299
2015-08-25 22:29 henry Status new => closed
2015-08-25 22:29 henry Assigned To => henry
2015-08-25 22:29 henry Resolution open => no change required