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

Problems with dynamic Mesh (AMI Surface)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2023, 04:05
Default Problems with dynamic Mesh (AMI Surface)
  #1
New Member
 
Enea Baumann
Join Date: Sep 2023
Posts: 3
Rep Power: 2
bumi-the-man is on a distinguished road
Dear Community,

I’m trying to simulate a stirred column using AMI surfaces. The stirrer consists of 3 rods along the Z-axis which rotate inside the column. The stirrer moves very close to the column walls which causes the diameter of the AMI surface to be very close to the diameter of the column diameter. Now, I was able to run fist simulations with the pimpleFoam solver. The mesh looks quite good to me. Also, during the simulation, the CFL number remained very low (<0.3). From the results, the velocity and kinematic pressure profile in the Z-plane look very plausible (see pictures 1 and 2). However, the kinematic pressure profile along the X-plane looks extremely weird (picture 3). It oddly jumps abruptly from time step to time step. Further, according to real-world experiments, Taylor-Couette-Instabilities should form along the walls of the column. With ANSYS, these vortices nicely appeared. But with OpenFoam, they don’t really appear. Now to my questions:

1. As you can see in the images, there is a clear visible border at the AMI interface. Some weird, unphysical things are happening there. Why is that? Do you think it is a problem, that the diameter of the AMI surface is close to the diameter of the column?
2. Also, I have a folder called “DynamicCode” which is always generated by OpenFoam when I run a simulation. Why is that?
3. How could I improve my simulation to obtain more accurate results without these weird pressure jumps.

Very Best,

Bumi-The-Man


--------------------------------
CODE
--------------------------------
DynamicMeshDict
--------------------------------
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2306                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   dynamicMotionSolverFvMesh;

motionSolverLibs (fvMotionSolvers);

motionSolver    solidBody;

cellZone        rotatingZone;


//type solidBodyMotionDisplacement;

solidBodyMotionFunction  rotatingMotion;

origin      (0 0 0);
axis        (0 0 1);
omega       3;


// ************************************************************************* //
--------------------
controlDict
-------------------

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2306                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     pimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         20;

deltaT          0.001;

writeControl    runTime;

writeInterval   0.2;

purgeWrite      0;

writeFormat     ascii;

writePrecision  7;

writeCompression no;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  no;

maxCo           1;

maxDeltaT       1;

functions
{
    #include "relVelocity"
}


// ************************************************************************* //
-----------------
snappyHexMeshDict
-----------------

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2306                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap            true;
addLayers       false;

geometry
{
    AMI.stl{ type triSurfaceMesh; name AMI;}
    inlet.stl{ type triSurfaceMesh; name inlet;}
    stirrer.stl{ type triSurfaceMesh; name stirrer;}
    outlet.stl{ type triSurfaceMesh; name outlet;}
    column.stl{ type triSurfaceMesh; name column;}
}

castellatedMeshControls
{
    maxLocalCells 100000;
    maxGlobalCells 8000000;
    minRefinementCells 0;
    maxLoadUnbalance 0.10;
    nCellsBetweenLevels 2;

    features
    (
        { file "AMI.eMesh"; level 3;} // Note: better: level 3
        { file "stirrer.eMesh"; level 2;} // Note: better: level 3
        { file "inlet.eMesh"; level 0;}
        { file "outlet.eMesh"; level 0;}
        { file "column.eMesh"; level 0;}
    );

    refinementSurfaces
    {
        AMI
        {
            level (3 3); // Note: better: levels 3 3
            faceType boundary;
            cellZone rotatingZone;
            faceZone rotatingZone;
            cellZoneInside inside;
        }
        stirrer{ level (2 2);} // Note: better: levels 3 3
        inlet{ level (0 0);}
        outlet{ level (0 0);}
        column{ level (0 0);}
    }

    resolveFeatureAngle 30;

    refinementRegions
    {
        // Note: for better mesh quality utilize this refinement region
        // AMI{ mode inside; levels ((1E15 3));}
    }

    locationInMesh (0.1001 0.001 0.0101);
    allowFreeStandingZoneFaces false;
}

snapControls
{
    nSmoothPatch 3;
    tolerance 4.0;
    nSolveIter 300;
    nRelaxIter 5;
    nFeatureSnapIter 10;
    implicitFeatureSnap true;
    explicitFeatureSnap false;
    multiRegionFeatureSnap true;
}

addLayersControls
{
    relativeSizes true;

    layers
    {
    }

    expansionRatio 1.0;
    finalLayerThickness 0.3;
    minThickness 0.1;
    nGrow 0;
    featureAngle 30;
    nRelaxIter 3;
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 10;
    maxFaceThicknessRatio 0.5;
    maxThicknessToMedialRatio 0.3;
    minMedialAxisAngle 90;
    nBufferCellsNoExtrude 0;
    nLayerIter 50;
}

meshQualityControls
{
    maxNonOrtho 65;
    maxBoundarySkewness 20;
    maxInternalSkewness 4;
    maxConcave 80;
    minVol 1e-13;
    minTetQuality -1;
    minArea -1;
    minTwist 0.01;
    minDeterminant 0.001;
    minFaceWeight 0.05;
    minVolRatio 0.01;
    minTriangleTwist -1;
    nSmoothScale 4;
    errorReduction 0.75;
    relaxed
    {
        maxNonOrtho 75;
    }
}

mergeTolerance 1e-6;


// ************************************************************************* //
Attached Images
File Type: jpg mesh.jpg (68.7 KB, 5 views)
File Type: png p1.png (163.7 KB, 14 views)
File Type: png p2.png (110.4 KB, 11 views)
File Type: png p3.png (71.6 KB, 11 views)
bumi-the-man 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
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 15:35.