CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Size *** is not equal to the given value of *** (https://www.cfd-online.com/Forums/paraview/152151-size-not-equal-given-value.html)

MtnRunBeachBum April 24, 2015 17:09

Size *** is not equal to the given value of ***
 
I am trying to view a solution in ParaView (paraFoam). When I try to step through the timesteps, after the first step or two I get the following:

Code:

-->FOAM FATAL IO ERROR:
size 500000 is not equal to the given value of 740324

From there the error message indicates the crash occurred while trying to read the p file for the corresponding timestep. I know that 500000 is the size of my overall mesh from blockMesh, but I cannot figure out where 740XXX comes from. More importantly (I think), I cannot figure out where OF is getting that value from; I would say that value was written (somehow, maybe a previous block mesh iteration?) to some file or dictionary, but I cannot figure out where. Perhaps another possibility is the block mesh info isn't playing nice with the snappyHeMesh info, though I don't even know if that's a thing.

I've tried copying over the directory and clearing out any created files, but to no avail.

Any insight?


Cheers,
Jimmy

wyldckat April 25, 2015 07:01

Quick answer: My guess is that you did not run snappyHexMesh with the "-overwrite" option:
Code:

snappyHexMesh -overwrite

MtnRunBeachBum April 25, 2015 10:09

That makes sense. I'll give that a shot. I guess I would have thought sHM would overwrite old results/data by default. Is that more of a OF thing or Linux thing?

wyldckat April 25, 2015 15:09

Quick answer: When in doubt, use the option "-help":
Code:

snappyHexMesh -help
which can work with most applications in Linux.

David Jean May 28, 2021 22:40

Hi.

I am using OpenFOAM I meet a problem like that. Could you help me to solve this problem? Thank you so much. I hope you are doing well.


All times are GMT -4. The time now is 12:51.