OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

correctViscosity.H

Go to the documentation of this file.
00001 {
00002     mul = muc + 
00003         plasticViscosity
00004         (
00005             plasticViscosityCoeff,
00006             plasticViscosityExponent,
00007             alpha
00008         );
00009 
00010     if (BinghamPlastic)
00011     {
00012         volScalarField tauy = yieldStress
00013         (
00014             yieldStressCoeff,
00015             yieldStressExponent,
00016             yieldStressOffset,
00017             alpha
00018         );
00019 
00020         mul =
00021             tauy/
00022             (
00023                 mag(fvc::grad(U))
00024               + 1.0e-4*
00025                 (
00026                     tauy
00027                   + dimensionedScalar
00028                     (
00029                         "deltaTauy",
00030                         tauy.dimensions(),
00031                         1.0e-15
00032                     )
00033                 )/mul
00034             )
00035           + mul;
00036     }
00037 }
Copyright © 2000-2009 OpenCFD Ltd