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

InterFoam - Gradient of Surface Field

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

LinkBack Thread Tools Display Modes
Old   June 24, 2013, 10:28
Default InterFoam - Gradient of Surface Field
New Member
Join Date: May 2013
Posts: 1
Rep Power: 0
Twist is on a distinguished road
Hi all!

I have a problem with the gradient of the surface field muEff. The original piece of code from InterFoam is

    surfaceScalarField muEff
      + fvc::interpolate(rho*turbulence->nut())

    fvVectorMatrix UEqn
        fvm::ddt(rho, U)
      + fvm::div(rhoPhi, U)
      - fvm::laplacian(muEff, U)
      - (fvc::grad(U) & fvc::grad(muEff))
    //- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf()))
      - rho*g
Now I would expect that the following part of the fvSchemes would make an error:

    default		none;
    grad(p)		Gauss linear corrected;
    grad(p_rgh)		Gauss linear corrected;
    grad(pcorr)		Gauss linear corrected;
    grad(U)		Gauss linear corrected;
    grad(alpha1)	Gauss linear corrected;
because the default is none and a grad(muEff) part is missing but it doesn't. The solver runs without an error. If I change muEff to a volScalarField I get the expected error and have to state a scheme for grad(muEff).

Is this a bug or did I just miss something?

Twist 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
Diverging result for Temperature field in interFoam ovie OpenFOAM Running, Solving & CFD 99 June 29, 2017 10:12
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 August 5, 2015 02:09
estimating temp. gradient from temp. field xiyuqiu Main CFD Forum 2 April 12, 2013 17:22
Interfoam... free surface simulation urgent lostin4ever Main CFD Forum 4 October 12, 2010 08:29
Dynamic Gradient Adaption: Mulitple Field Variable Steve FLUENT 0 July 12, 2005 17:36

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