argonne-lcf / TensorFlowFoam

Integrating the TensorFlow 1.15 C-API into OpenFOAM 5.0 for data-driven CFD algorithm development
MIT License
200 stars 72 forks source link

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

Open xd-zheng opened 4 years ago

xd-zheng commented 4 years ago

--> 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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 1 year ago

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