CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Questions about fvScheme when running turbFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2008, 10:42
Default Hello everyone, Happy Thank
  #1
New Member
 
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 7
wei_wu is on a distinguished road
Hello everyone,

Happy Thanksgiving for foamers!

I'm running the simulation for the circular cylinder flow.I'm using turbFoam solver which is recompiled to make it time-adaptive based on the max courant number. I found some problems when I set up the fvScheme dictionary. For the divScheme, the solver doesn't allow me to set default to "Gauss QUICK "or"Gauss upwind",it'll give

***********************************
Starting time loop

Time = 0.005

Courant Number mean: 0.00915807 max: 0.240009


attempt to read beyond EOF

file: /home/wuwei/OpenFOAM/wuwei-1.5/run/g2-scheme/system/fvSchemes::default at line 39.

From function ITstream::read(token& t)
in file db/IOstreams/Tstreams/ITread.C at line 64.

FOAM exiting

*****************************************

when I set it to "Gauss linear", it'll work.

Does anybody know the reason for this?

Thank you in advance.


Wei
wei_wu is offline   Reply With Quote

Old   November 27, 2008, 08:58
Default Hello Wei, Check if you hav
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 212
Rep Power: 8
santos is on a distinguished road
Send a message via Skype™ to santos
Hello Wei,

Check if you have missed a ; at the end of the line.

You should have something like:
div(phi,U) Gauss upwind;

If it doesnt help, please post here your fvSchemes file.
santos is offline   Reply With Quote

Old   November 29, 2008, 16:13
Default Hi,Jose Thank you for your
  #3
New Member
 
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 7
wei_wu is on a distinguished road
Hi,Jose

Thank you for your reply.
I checked for the file I didn't miss a ; at the line.

here is my fvSchemes file, please check it for me, thanks

//**************************************************
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object fvSchemes;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default CrankNicholson 1.0;
}

gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
}

divSchemes
{
default Gauss upwind;

}

laplacianSchemes
{
default Gauss linear corrected;

}

interpolationSchemes
{
default linear;
interpolate(U) linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
p;
}
//************************************************** ***


after I executed the turbFoam command, it told me that

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
alphaEps 0.76923;
}


Starting time loop

Time = 0.005

Courant Number mean: 0.00915807 max: 0.240009


attempt to read beyond EOF

file: /home/wuwei/OpenFOAM/wuwei-1.5/run/g2-scheme/system/fvSchemes::default at line 39.

From function ITstream::read(token& t)
in file db/IOstreams/Tstreams/ITread.C at line 64.

FOAM exiting
************************************************** *******
line 39 is the one says "default Gauss upwind;"

if I change it into " default Gauss QUICK;"
same thing happens,but if I change it into "default Gauss linear;" , the code can run nicely.



Thank you
wei_wu is offline   Reply With Quote

Old   November 30, 2008, 06:42
Default Most interpolation schemes inc
  #4
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 274
Rep Power: 8
henrik is on a distinguished road
Most interpolation schemes including Upwind and QUICK require a flux, therefore you say

default Gauss upwind phi;

Read sections 4.4.5 and 4.4.1 of the User Guide for more information on this topic.

Henrik
henrik is offline   Reply With Quote

Old   November 30, 2008, 13:41
Default Thank you so much, Henrik. It
  #5
New Member
 
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 7
wei_wu is on a distinguished road
Thank you so much, Henrik.
It worked after I added the " phi".
wei_wu is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP NEEDED with TURBFOAM dinonettis OpenFOAM Running, Solving & CFD 64 June 22, 2010 09:58
TurbFoam diverge ivanyao OpenFOAM Running, Solving & CFD 6 January 11, 2009 07:41
Problem with turbFoam skabilan OpenFOAM Running, Solving & CFD 2 September 29, 2008 17:43
TurbFoam hsieh OpenFOAM Running, Solving & CFD 12 July 23, 2008 07:40
Error turbFoam jackdaniels83 OpenFOAM Running, Solving & CFD 11 June 27, 2007 14:22


All times are GMT -4. The time now is 14:24.