BasicOpenFOAMProgrammingTutorials icon indicating copy to clipboard operation
BasicOpenFOAMProgrammingTutorials copied to clipboard

Foam Fatal IO Error (attempt to read beyond EOF)

Open RTibo opened this issue 4 years ago • 4 comments

I compiled your interpolation scheme successfully, but when I'm trying to use it with my mesh (1D mesh with 150 cells) I got a fatal error saying that 'attempt to read beyond EOF'. Did you experienced something similar with your code when using other mesh then the one in your test case? Im using the openFOAM.com distribution v2012.

RTibo avatar Apr 29 '22 18:04 RTibo

Hi, Sorry to hear that, I've never experienced such an issue. The tutorials have only been tested with the other OpenFOAM branch (https://openfoam.org/ and not https://www.openfoam.com/). This is probably the source of the issue.

UnnamedMoose avatar Apr 29 '22 19:04 UnnamedMoose

Thank you very much for answering. It working finaly! I was looking for an interpolation scheme that could be apply on the gradient. So, I tested your scheme on the 'gradient' only and then afterward, I noticed that your scheme is design to be use with the divergence. So, I did an attempt and its working just fine with the divergence but not with the gradient. Did you by any mean created an interpolation scheme/tutorial working with the gradient?

RTibo avatar May 02 '22 12:05 RTibo

Hi,

Sorry for my late reply. I have never developed a scheme for computation of gradients so am not sure where it may be going wrong, apologies. I looked at your code briefly but I really don't have much to offer.

best of luck

A

On Mon, 2 May 2022 at 14:14, RTibo @.***> wrote:

Thank you very much for answering. It working finaly! I was looking for an interpolation scheme that could be apply on the gradient and then, I thought that your scheme could be design to be use with the divergence. So, I did an attempt and its working just fine with the divergence but not with the gradient. Did you by any mean created an interpolation scheme working with the gradient? I made one, it compiled successfully, but the results are not what it suppose to. Maybe the issue is about the boundaries or the owner/neighbour where the level are the same.....Here is the work: https://github.com/RTibo/OpenFOAM-New-Interpolation-Scheme-U

— Reply to this email directly, view it on GitHub https://github.com/UnnamedMoose/BasicOpenFOAMProgrammingTutorials/issues/31#issuecomment-1114779193, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSMUKDIFTPVQ6YMSBUVAE3VH7BL7ANCNFSM5UW6M4VQ . You are receiving this because you commented.Message ID: <UnnamedMoose/BasicOpenFOAMProgrammingTutorials/issues/31/1114779193@ github.com>

UnnamedMoose avatar May 10 '22 11:05 UnnamedMoose

Thank you very much again for your time and for replying.

Best of luck to you also with your projects.

Regards,

RTibo avatar May 10 '22 11:05 RTibo