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

Rotating Wall Velocity and Swak4Foam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 14, 2016, 04:55
Default Rotating Wall Velocity and Swak4Foam
  #1
New Member
 
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 5
Rep Power: 4
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, 11 views)
File Type: jpg Screenshot from 2016-09-14 09-25-39.jpg (137.9 KB, 11 views)
Attached Files
File Type: txt U-RotatingWall.txt (1.1 KB, 2 views)
File Type: txt U-Swak4Foam.txt (1.3 KB, 1 views)

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

Reply

Tags
interfoam, openfoam, rotatingwallvelocity, swak4foam

Thread Tools
Display Modes

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 On
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 for calculating velocity transformations santoshgoku OpenFOAM 5 April 19, 2016 12:57
Inlet velocity profile for turbulent pipe flow using swak4Foam zordiack OpenFOAM Pre-Processing 5 February 23, 2016 02:52
swak4foam - linear inlet velocity profile eRzBeNgEl OpenFOAM 4 January 11, 2014 18:10
LES rotating pipe swak4foam Gosi OpenFOAM Running, Solving & CFD 2 August 6, 2013 20:15


All times are GMT -4. The time now is 18:50.