CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   FOAM Warning on a submarine with simpleFoam (http://www.cfd-online.com/Forums/openfoam-solving/96265-foam-warning-submarine-simplefoam.html)

thibautsimon1 January 17, 2012 22:00

FOAM Warning on a submarine with simpleFoam
 
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:

ddtSchemes
{
default steadyState;
}

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

divSchemes
{
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;
}

laplacianSchemes
{
default Gauss linear corrected;

}

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

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
p;
}

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

Regards,
\
Thibaut

daveatstyacht January 24, 2012 21:43

Thibaut,
The style for linearUpwind has changed since 1.7. From the LTSInterFoam wigleyhull tutorial:

gradSchemes
{
default Gauss linear;
}

divSchemes
{
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,
Dave


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