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

interFoam rotating cylinder pressure BC problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2013, 04:05
Question interFoam rotating cylinder pressure BC problem
  #1
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13
chrisb2244 is on a distinguished road
Hi,

I'm currently using interFoam to model a rotating cylinder containing mostly water, with air in a small fraction at the top. I initially tried using swak4Foam to create expressions for 0/U on the walls and base of my cylinder making them, for example, (-Rsin(theta), Rcos(theta), 0) for the walls, and similar for the bottom. I have since moved to rotatingWallVelocity in the hope that the wall term would change my problem, but it seems to have made no difference.

When I visualise the results (currently I only have results for a short simulated time, t around 1 second in etc, although am running a 20s duration calculation on a coarser mesh to try track this down), the velocity is set nicely on the boundaries, but then does not diffuse inwards. Instead, the vortex formed in the centre on the axis diffuses velocity outwards.

If anyone has any recommendations (preferably avoiding redesigning my mesh, but if that is necessary then so be it), I would very much appreciate your help.

My BC files are below

p.s.
Looking at my BC files again, I realise it may appear as though there is a hole in my bucket... This is not the case, although the mesh was designed to allow me to set one up, probably using a pressureOutlet condition, or something. As it stands, the outlet should (I hope) behave in exactly the same way as the bottom boundary/patch.

************************************************** *********

Code:
 object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    sides
    {
        type            fixedGradient;
    gradient        uniform 0;
    }

    bottom
    {
        type            fixedGradient;
        gradient        uniform 0;
    }

    outlet
    {
        type            fixedGradient;
        gradient        uniform 0;
    }

    top
    {
        type            totalPressure;
        p0              uniform 0;
        U               U;
        phi             phi;
        rho             rho;
        psi             none;
        gamma           1;
        value           uniform 0;
    }
}
Code:
  object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    sides
    {
    type    movingWallVelocity;
    axis    (0 0 1);
    origin     (0 0 0);
    omega    1;
    value    uniform (0 0 0);
    }
    
   bottom   
    {
    type    movingWallVelocity;
    axis    (0 0 1);
    origin    (0 0 0);
    omega    1;
    value    uniform (0 0 0);
    }

    outlet
    {
    type    movingWallVelocity;
    axis    (0 0 1);
    origin    (0 0 0);
    omega    1;
    value    uniform (0 0 0);
    }

    top
    {
        type            pressureInletOutletVelocity;
    value        uniform (0 0 0);
    }
    
}
Attached Files
File Type: gz MinWorking.tar.gz (5.4 KB, 9 views)

Last edited by chrisb2244; August 12, 2013 at 02:39. Reason: Added an archive containing 0, constant and system directories.
chrisb2244 is offline   Reply With Quote

Old   August 12, 2013, 02:37
Default
  #2
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13
chrisb2244 is on a distinguished road
I now have results for a endTime=60 seconds. The velocity is in fact seeming to diffuse outwards from the centre on the surface, and then downwards through my cylinder. I still don't see why the walls are not causing a velocity to diffuse inwards from the walls.

My surface tension is being ignored using a zeroGradient BC on alpha1 as in the damBreak tutorial - is this a bad choice for my problem?

Any help is much appreciated.
chrisb2244 is offline   Reply With Quote

Reply

Tags
interfoam rotatingwall, pressure bc


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
Low pressure de Laval simulation convergence problem heksel8i FLUENT 3 July 22, 2013 11:28
stagnation pressure boundary problem mbgnfrx2 STAR-CD 2 November 26, 2012 00:55
VOF method- Fluid in a rotating Cylinder Problem Krishna Sandeep FLUENT 1 July 3, 2012 17:44
Pressure problem in Interfoam danvica OpenFOAM Running, Solving & CFD 12 March 14, 2012 03:56
Problem with the pressure field using interFoam zoune OpenFOAM Running, Solving & CFD 20 February 4, 2008 19:42


All times are GMT -4. The time now is 16:24.