|
[Sponsors] |
January 19, 2021, 18:24 |
OpenFoam Divergence Schemes
|
#1 |
New Member
Johny_walker
Join Date: Feb 2020
Posts: 17
Rep Power: 6 |
I wish to run a simulation over a 2D cylinder to see the effects of different discretization schemes on the results. I have attached my fvscheme code in the picture below. Running this using simpleFoam gives me following error:
--> FOAM FATAL IO ERROR: attempt to read beyond EOF file: D:/Random_stuff/OpenFoam/cylinder/system/fvSchemes.divSchemes.div((nuEff*dev2(T(grad(U))))) at line 36. From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&) in file db/IOstreams/Tstreams/ITstream.C at line 82. FOAM exiting The turbulence is 'off' and it is a steady state simulation. Can anyone please tell me as to why I am getting this error? |
|
January 19, 2021, 19:14 |
|
#2 |
Senior Member
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9 |
Hello,
There is a specific forum for OF, you may have better luck posting this on there: https://www.cfd-online.com/Forums/openfoam-solving/ |
|
January 19, 2021, 19:37 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
Your fvSchemes file is improperly formatted. It usually means you are missing a space or a ; somewhere.
|
|
January 21, 2021, 11:12 |
|
#4 |
New Member
Johny_walker
Join Date: Feb 2020
Posts: 17
Rep Power: 6 |
But it worked with this code. I wonder why it doesnt work with schemes that I had used earlier.
gradSchemes { default Gauss linear; } divSchemes { default none; div(phi,U) bounded Gauss linearUpwind grad(U); div(phi,k) bounded Gauss limitedLinear 1; div(phi,epsilon) bounded Gauss limitedLinear 1; div(phi,omega) bounded Gauss limitedLinear 1; div(phi,v2) bounded Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; div(nonlinearStress) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } |
|
Tags |
cfd code, discretization schemes, openfoam, simulation cfd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 5.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 11 | June 6, 2018 00:48 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM Training Beijing 22-26 Aug 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | May 3, 2016 05:57 |
Solving divergence terms in OpenFOAM | eretief | OpenFOAM Running, Solving & CFD | 0 | March 27, 2013 10:17 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |