CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Rotating Wall Velocity and Swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/177453-rotating-wall-velocity-swak4foam.html)

mpanch13114 September 14, 2016 04:55

Rotating Wall Velocity and Swak4Foam
 
4 Attachment(s)
Hi,
I am testing a case called 2DRotatingTank. 2/3rd of the tank is filled with water whereas the rest is air. The idea is to rotate the tank at 240rpm for 500 seconds. I am using interFoam solver. When I test the case with rotatingWallVelocity, I get incorrect results, whereas swak4Foram produces correct results. But the difficulty with swak4Foam is that it produces a little bit oscillation and vortices between 30 and 100 seconds.

A same setup is done for both cases except the following changes in 0/U.

For rotatingWallvelocity there are no vortices, but the flow is not reaching the center of the tank at any time. Here is the file content of 0/U
Code:

boundaryField
{
      walls
    {
        type            rotatingWallVelocity;
        origin          (0 0 0);
        axis            (0 0 1);
        omega          25.4;
        value  uniform (0 0 0);
}

For Swak4Foam, the flow is reaching the center of the tank but there are oscillations. Here is the file content of 0/U
Code:

boundaryField                                                                                                           
{                                                                                                                       
    walls
    {
        type      groovyBC;
        value      uniform (0 0 0);
        variables (
              "xx = pos().x;"
              "yy = pos().y;"
              "zz = pos().z;"
              "w = 25.1328;"
        );
        valueExpression "vector(-w*yy,w*xx,0)";
}

I have attached screenshots of results obtained at 500th second.

I am using OpenFOAM3.0 and Swak4Foam Version 0.3.2.

Is my settings for rotatingWallVelocity perfect? Why do I get different results?

Note that, if I remove value uniform (0 0 0); from rotatingWallVelocity it ends up with error immediately.

Also, I have observed that when I am testing the same case with rotatingWallVelocity in openfoam-plusv1606. It works well and it produces the same result as swak4Foam.


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