CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

FOAM Warning on a submarine with simpleFoam

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

Like Tree4Likes
  • 4 Post By daveatstyacht

LinkBack Thread Tools Display Modes
Old   January 17, 2012, 22:00
Question FOAM Warning on a submarine with simpleFoam
New Member
Thibaut SIMON
Join Date: Jan 2012
Posts: 5
Rep Power: 8
thibautsimon1 is on a distinguished road
Hi everyone,
I'm new with OpenFoam and I done a bit of CFD with CFX before.
I doing a quite simple study about a submarine (without appendages) in OF 2.0.
I'm using simpleFoam to solve it and I adapt a case from OF 1.7 to my OF 2.0.
And when I simpleFoam it, I have the same FOAM Warning which arrive all the time:

--> FOAM Warning :
From function linearUpwind(const fvMesh&, const surfaceScalarField& faceFlux, Istream&)
in file interpolation/surfaceInterpolation/schemes/linearUpwind/linearUpwind.H at line 152
Reading "/home/newuser/OpenFOAM/newuser-2.0.1/run/AlexCases/DeepSubA1/system/fvSchemes::divSchemes::div(phi,k)" at line 34
unexpected additional entries in stream.
Only the name of the gradient scheme in the 'gradSchemes' dictionary should be specified.

And here is my fvSchemes file:

default steadyState;

default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
// upwind 1st order , linear = second

default none;
div(phi,U) Gauss linearUpwindV cellMDLimited Gauss linear 1;
div(phi,k) Gauss linearUpwind cellMDLimited Gauss linear 1;
div(phi,omega) Gauss linearUpwind cellMDLimited Gauss linear 1;
div(phi,epsilon) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;

default Gauss linear corrected;


default linear;
interpolate(U) linear;

default corrected;

default no;

If someone have an idea on my problem, I would appreciate if you could help me.

thibautsimon1 is offline   Reply With Quote

Old   January 24, 2012, 21:43
Join Date: Jul 2010
Posts: 97
Rep Power: 9
daveatstyacht is on a distinguished road
The style for linearUpwind has changed since 1.7. From the LTSInterFoam wigleyhull tutorial:

default Gauss linear;

div(rho*phi,U) Gauss linearUpwind grad(U);
//other schemes here...

Note: you can then go on to specify the way grad(U) is calculated as you have done above in gradSchemes. Essentially "grad(U) cellMDLimited Gauss linear 1;" would be what you want in the gradScheme to replicate the use of MD cell limiting.

Hope this helps,
daveatstyacht is offline   Reply With Quote


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
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00

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