CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adaptive mesh by interDyMFoam (https://www.cfd-online.com/Forums/openfoam-solving/171181-adaptive-mesh-interdymfoam.html)

arsalan.dryi May 4, 2016 05:07

Adaptive mesh by interDyMFoam
 
Hi Foamers,

I'm doing 3D simulation of a single bubble rising in quiescent liquid with a custom body force, for the sharp interface capturing and decreasing CPU time of the simulations I want to use adaptive mesh of the interDyMFoam and get finer mesh near the interface of the gas-liquid.

But Unexpectedly, the CPU time increased dramatically by using interDyMFoam adaptive mesh than the static mesh and moreover the residuals, Courant number and deltaT experienced severe fluctuations which caused very bad results.

For more information, my dynamicMeshDict file is as follows:

Code:

dynamicFvMesh  dynamicRefineFvMesh;

dynamicRefineFvMeshCoeffs
{
    // How often to refine
    refineInterval  1;
    // Field to be refinement on
    field          alpha.water;
    // Refine field inbetween lower..upper
    lowerRefineLevel 0.1;
    upperRefineLevel 0.99;
    // If value < unrefineLevel unrefine
    unrefineLevel  10;
    // Have slower than 2:1 refinement
    nBufferLayers  1;
    // Refine cells only up to maxRefinement levels
    maxRefinement  2;
    // Stop refinement if maxCells reached
    maxCells        50000;
    // Flux field and corresponding velocity field. Fluxes on changed
    // faces get recalculated by interpolating the velocity. Use 'none'
    // on surfaceScalarFields that do not need to be reinterpolated.
    correctFluxes
    (
        (phi none)
        (nHatf none)
        (rhoPhi none)
        (ghf none)
    );
    // Write the refinement level as a volScalarField
    dumpLevel      true;
}

Any help will be appreciated, Thanks in advance.

Regards,
Arsalan.


All times are GMT -4. The time now is 01:22.