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

InterFoam - Gradient of Surface Field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2013, 11:28
Default InterFoam - Gradient of Surface Field
  #1
New Member
 
Thomas
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

Code:
    surfaceScalarField muEff
    (
        "muEff",
        twoPhaseProperties.muf()
      + 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:

Code:
gradSchemes
{
    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?

Thanks!
Twist is offline   Reply With Quote

Reply


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 Off
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 105 December 6, 2021 10:02
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
estimating temp. gradient from temp. field xiyuqiu Main CFD Forum 2 April 12, 2013 18:22
Interfoam... free surface simulation urgent lostin4ever Main CFD Forum 4 October 12, 2010 09:29
Dynamic Gradient Adaption: Mulitple Field Variable Steve FLUENT 0 July 12, 2005 18:36


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