|
[Sponsors] |
FOAM FATAL IO ERROR: attempt to read beyond EOF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 3, 2023, 00:47 |
FOAM FATAL IO ERROR: attempt to read beyond EOF
|
#1 |
New Member
Join Date: Aug 2022
Posts: 16
Rep Power: 3 |
Hi everyone i am using OpenFOAM-2.3.0 tutorial case called motorbike
i try to run it using rapidCFD but i get the error as shown below Code:
file: /home/urban/DL-workspace/OpenFOAM/OpenFOAM-2.3.0/tutorials/incompressible/simpleFoam/motorBike_test_rapidCFD/system/controlDict.functions.readFields.fields at line 18. From function ITstream::read(token&) in file db/IOstreams/Tstreams/ITstream.C at line 83. FOAM exiting Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // libs ( "libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so" ); application simpleFoam; startFrom startTime; // latestTime; startTime 0; stopAt endTime; endTime 500; deltaT 1; writeControl timeStep; writeInterval 100; purgeWrite 0; //- Uncomment to have regular (every 2 hours of run time) restart files //secondaryWriteControl cpuTime; // runtime //secondaryWriteInterval 7200; // seconds //secondaryPurgeWrite 1; // keep all but last dump writeFormat binary; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable true; functions { #include "readFields" #include "streamLines" #include "wallBoundedStreamLines" #include "cuttingPlane" #include "forceCoeffs" } // ************************************************************************* // thank you |
|
October 4, 2023, 05:09 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12 |
OF tells you where the error appears:
Code:
controlDict.functions.readFields.fields at line 18. |
|
October 6, 2023, 08:19 |
|
#3 |
New Member
Join Date: Aug 2022
Posts: 16
Rep Power: 3 |
Hi i have resolved the above issue but now i am faced with new issue as shown below
Code:
--> FOAM FATAL ERROR: Unknown function type readFields Valid functions are : 7 ( fieldAverage fieldCoordinateSystemTransform fieldValueDelta patchProbes probes sets surfaces ) From function functionObject::New(const word& name, const Time&, const dictionary&) in file db/functionObjects/functionObject/functionObject.C at line 92. FOAM exiting my controlDict is shown below Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // libs ( "libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so" ); application simpleFoam; startFrom startTime; // latestTime; startTime 0; stopAt endTime; endTime 500; deltaT 1; writeControl timeStep; writeInterval 100; purgeWrite 0; //- Uncomment to have regular (every 2 hours of run time) restart files //secondaryWriteControl cpuTime; // runtime //secondaryWriteInterval 7200; // seconds //secondaryPurgeWrite 1; // keep all but last dump writeFormat binary; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable true; functions { #include "readFields" #include "streamLines" #include "wallBoundedStreamLines" #include "cuttingPlane" #include "forceCoeffs" } // ************************************************************************* // |
|
October 6, 2023, 09:39 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66 |
You need the fieldFunctionObjects library for readFields
|
|
October 9, 2023, 00:52 |
|
#5 |
New Member
Join Date: Aug 2022
Posts: 16
Rep Power: 3 |
Hi thank you for your reply now i am getting the error as shown below
Code:
--> FOAM FATAL ERROR: Unknown function type readFields Valid functions are : 7 ( fieldAverage fieldCoordinateSystemTransform fieldValueDelta patchProbes probes sets surfaces ) From function functionObject::New(const word& name, const Time&, const dictionary&) in file db/functionObjects/functionObject/functionObject.C at line 92. FOAM exiting thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FOAM FATAL IO ERROR attempt to read beyond EOF | unoder | OpenFOAM Running, Solving & CFD | 10 | April 16, 2024 03:03 |
FOAM FATAL IO ERROR: attempt to read beyond EOF | HeloïseM | OpenFOAM | 1 | February 26, 2023 10:14 |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 07:49 |
error with reactingFoam | BakedAlmonds | OpenFOAM Running, Solving & CFD | 4 | June 22, 2016 02:21 |
[OpenFOAM] Take derivative of mean velocity in paraFoam | hiuluom | ParaView | 13 | April 26, 2016 06:44 |