CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Rotating Wall Velocity and Swak4Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2016, 04:55
Default Rotating Wall Velocity and Swak4Foam
  #1
New Member
 
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 11
mpanch13114 is on a distinguished road
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.
Attached Images
File Type: jpg Screenshot from 2016-09-14 09-18-26.jpg (100.3 KB, 46 views)
File Type: jpg Screenshot from 2016-09-14 09-25-39.jpg (137.9 KB, 47 views)
Attached Files
File Type: txt U-RotatingWall.txt (1.1 KB, 7 views)
File Type: txt U-Swak4Foam.txt (1.3 KB, 8 views)

Last edited by mpanch13114; September 19, 2016 at 12:01.
mpanch13114 is offline   Reply With Quote

Reply

Tags
interfoam, openfoam, rotatingwallvelocity, swak4foam


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
[Swak4Foam] Imposing slip velocity on the wall as a function of another variable babakflame OpenFOAM Running, Solving & CFD 0 May 19, 2016 19:42
[swak4Foam] Inlet velocity profile for turbulent pipe flow using swak4Foam zordiack OpenFOAM Community Contributions 5 February 23, 2016 01:52
[swak4Foam] linear inlet velocity profile eRzBeNgEl OpenFOAM Community Contributions 4 January 11, 2014 17:10
[swak4Foam] velocity of a patch by using swak4Foam sasanghomi OpenFOAM Community Contributions 3 September 9, 2013 14:30
[swak4Foam] LES rotating pipe Gosi OpenFOAM Community Contributions 2 August 6, 2013 20:15


All times are GMT -4. The time now is 09:11.