CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

OpenFoam Divergence Schemes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2021, 18:24
Exclamation OpenFoam Divergence Schemes
  #1
New Member
 
Johny_walker
Join Date: Feb 2020
Posts: 17
Rep Power: 6
johny_walker is on a distinguished road
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?
Attached Images
File Type: png fvscheme.PNG (18.7 KB, 25 views)
johny_walker is offline   Reply With Quote

Old   January 19, 2021, 19:14
Default
  #2
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9
aero_head is on a distinguished road
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/
aero_head is offline   Reply With Quote

Old   January 19, 2021, 19:37
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Your fvSchemes file is improperly formatted. It usually means you are missing a space or a ; somewhere.
LuckyTran is offline   Reply With Quote

Old   January 21, 2021, 11:12
Default
  #4
New Member
 
Johny_walker
Join Date: Feb 2020
Posts: 17
Rep Power: 6
johny_walker is on a distinguished road
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;
}
johny_walker is offline   Reply With Quote

Reply

Tags
cfd code, discretization schemes, openfoam, simulation cfd


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:47.