Comparison of myLTSPimpleFoam and simpleFoam Part 2 of 3 (calculation setup for myLTSPimpleFoam)

I compared myLTSPimpleFoam with simpleFoam. Ahmed body in previous articles was used for the test case. The computational grid is presented here.

The calculation setup for myLTSPimpleFoam is different from the simpleFoam one on the files of fvSchemes, fvSolution, and controlDict.


fvSchemes (differences from the simpleFoam one are colored in red):

ddtSchemes
{
    default         localEuler rDeltaT;
}

gradSchemes

{
    default         Gauss linear;
    grad(U)         cellLimited Gauss linear 1;
}

divSchemes

{
    default         none;
    div(phi,U)      Gauss GammaV 1;
    div(phi,k)      Gauss Gamma 1;
    div(phi,epsilon) Gauss Gamma 1;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes

{
    default         Gauss linear limited corrected 0.333;
}

interpolationSchemes

{
    default         linear;
}

snGradSchemes

{
    default         limited corrected 0.333;
}

fluxRequired

{
    default         no;
    p               ;
}


fvSolution (differences from the simpleFoam one are colored in red):

solvers
{
    "p.*"
    {
        solver          GAMG;
        tolerance       1e-8;
        relTol          0;
        smoother        GaussSeidel;
        nPreSweeps      1;
        nPostSweeps     2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 500;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

    "(U.*|k.*|epsilon.*)"
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0;
        nSweeps          1;
    }
}

PIMPLE
{
    momentumPredictor yes;
    nOuterCorrectors 1;
    nCorrectors     2;
    nNonOrthogonalCorrectors 2;

    maxCo             0.1;
    rDeltaTSmoothingCoeff 0.1;
    rDeltaTDampingCoeff 1;
    maxDeltaT         1;
}


controlDict (differences from the simpleFoam one are colored in red):

application     myLTSPimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         10000;

deltaT          1;

writeControl    adjustableRunTime;

writeInterval   100;

purgeWrite      0;

writeFormat     ascii;

writePrecision  7;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
  fieldMinMax
  {
    type               fieldMinMax;
    functionObjectLibs ("libfieldFunctionObjects.so");
    enabled            true;
    outputControl      timeStep;
    outputInterval     1;
    log                true;
    mode               magnitude;
    fields
    (
      U p
    );
  }

  forces
  {
      type                forces;
      functionObjectLibs  ("libforces.so");
      outputControl       timeStep;
      outputInterval      1;
     
      patches             ("ahmed.*");
      pName               p;
      UName               U;
      rhoName             rhoInf;
      log                 true;
     
      CofR                (0 0 0);
     
      rhoInf              1.225;
  }
}

Comments