Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error when occur when I run commend "simplefoam" #7

Open
xd-zheng opened this issue Aug 1, 2020 · 4 comments
Open

The error when occur when I run commend "simplefoam" #7

xd-zheng opened this issue Aug 1, 2020 · 4 comments

Comments

@xd-zheng
Copy link

xd-zheng commented Aug 1, 2020

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

file: /home/xdz/desktop/TensorFlowFoam-master/ML_RANS/Testing/1646/p from line 18 to line 131433.

From function Foam::Field<Type>::Field(const Foam::word&, const Foam::dictionary&, Foam::label) [with Type = double; Foam::label = int]
in file /home/xdz/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/Field.C at line 302.

FOAM exiting

I check the folder 0, and I found the size of Phi also different from other variables.

@Romit-Maulik
Copy link
Member

Hi @xd-zheng - can you try running it from the initial time (basically delete 1646/ from that case directory). It may be leftover from another simulation.

@xd-zheng
Copy link
Author

xd-zheng commented Aug 2, 2020

I did run it at the initial time, not 1646. Could you please check the case you uploaded? Your case will be very helpful for me, thank you very much.

@Romit-Maulik
Copy link
Member

Hi @xd-zheng - I am not sure why you are seeing that error. Here is the number of grid points in the 0/U file:
image
And here is the number of grid points in 1646/U
image
I have checked the case again and cannot reproduce your error. The 1646/ folder was just to validate the final solution that you get with what we have.

Phi was used by potentialFoam to initialize the RANS solve - it is not relevant (size-wise) to the simulation.

@gxy20001021
Copy link

I got the same error, please how should I fix it, thank you very much!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants