|
[Sponsors] |
Questions about fvScheme when running turbFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2008, 10:42 |
Hello everyone,
Happy Thank
|
#1 |
New Member
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 17 |
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 |
|
November 27, 2008, 08:58 |
Hello Wei,
Check if you hav
|
#2 |
Senior Member
|
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. |
|
November 29, 2008, 16:13 |
Hi,Jose
Thank you for your
|
#3 |
New Member
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 17 |
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 |
|
November 30, 2008, 06:42 |
Most interpolation schemes inc
|
#4 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
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 |
|
November 30, 2008, 13:41 |
Thank you so much, Henrik.
It
|
#5 |
New Member
wei wu
Join Date: Mar 2009
Location: us
Posts: 14
Rep Power: 17 |
Thank you so much, Henrik.
It worked after I added the " phi". |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |