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

Implementing rotatingWallVelocity Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Krapf
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2020, 16:30
Default Implementing rotatingWallVelocity Boundary Condition
  #1
New Member
 
n/a
Join Date: Sep 2020
Posts: 5
Rep Power: 5
williamsj0165 is on a distinguished road
Good afternoon,

I am attempting to build and run a simple 2D simulation that consists of a rotating cylinder in crossflow. My goal is to study the effect of cylinder rotation on vortex shedding at certain Re.

For the simpler case of a static cylinder, I am able to build and refine a mesh using blockMeshDict and blockMesh. (See attachment for an image of the unrefined mesh.) With a refined mesh, the simulation runs perfectly.

However, I am hung up on adding rotational velocity to the central cylinder. In order to do this, I believe that I must implement the rotatingWallVelocity condition in my 0/U file:

For the static case:
Code:
cylinder 
{
    type            fixedValue;
    value           uniform (0 0 0);
}

For the rotating case:
Code:
cylinder 
{
    type            rotatingWallVelocity;
    origin		(0 0 0);
    axis		(0 0 1);
    omega		100;
}


However, I am not clear on if I need to modify my blockMeshDict file as well. To my understanding, the file 0/U contains the initial conditions for the velocity, but blockMeshDict is information about the mesh itself, including boundary conditions. I would have thought that I would need to modify blockMeshDict as well:

For the static case:
Code:
cylinder
{
    type wall;
    faces
    (

    (0  32  33   1)
    (1  33  34   2)
    (2  34  35   3)
    (3  35  36   4)
    (4  36  37   5)
    (5  37  38   6)
    (6  38  39   7)
    (7  39  32   0)

    );
}

For the rotating case:
Code:
cylinder
{
    type	rotatingWallVelocity;
    origin	(0 0 0);
    axis	(0 0 1);
    omega	100;

    faces
    (

    (0  32  33   1)
    (1  33  34   2)
    (2  34  35   3)
    (3  35  36   4)
    (4  36  37   5)
    (5  37  38   6)
    (6  38  39   7)
    (7  39  32   0)

    );
}

Other threads I have viewed that discuss similar situations make no mention of modifying the blockMeshDict file. Any guidance on this issue would be much appreciated. Also, do I need to make any modification to my 0/p file?
Attached Images
File Type: jpg SingleCylinder.jpg (30.5 KB, 12 views)
williamsj0165 is offline   Reply With Quote

Old   September 8, 2020, 05:22
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 121
Rep Power: 8
Krapf is on a distinguished road
Hi williamsj0165

You don't need to modify blockMeshDict. There you only define the patch type, which is still wall. Take a look here: OpenFOAM v8 User Guide: 5.2 Boundaries.
After the mesh creation you'll find the patch type in constant/polyMesh/boundary.

Because it's still a wall, you don't need to change the pressure boundary condition.

Kind regards
Krapf
williamsj0165 likes this.
Krapf is offline   Reply With Quote

Old   September 8, 2020, 06:25
Default
  #3
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


It is not always true. There are some cases where for example a utility can be called on wall types only. And there could be other stuff too. If it is possible, then set the boundary types properly. If it is a wall, create a wall type. If it is an inlet/outlet, create a patch type. It is not a big work. But of course if a wall will be changed to a wall but with a different BC, it will be still a wall.
And it is also important to set properly if you have some "special" types like cyclic or cyclicAMI, symmetry, etc...

And to clarify. In the 0/files you can set the initial and boundary condition. In the blockMesh dict you set the boundary type which is not equal to the boundary condition.
williamsj0165 likes this.
simrego is offline   Reply With Quote

Old   September 10, 2020, 19:16
Default
  #4
New Member
 
n/a
Join Date: Sep 2020
Posts: 5
Rep Power: 5
williamsj0165 is on a distinguished road
Hi Krapf, simrego,

Thank you both so much for your responses, they clarified the difference between the purpose and significance of blockMeshDict vs. 0/U etc. files.

Your explanations were very helpful! and I was able to run a few successful simulations. Thanks again!
williamsj0165 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Constant mass flow rate boundary condition sahm OpenFOAM 0 June 20, 2018 22:45
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 02:53
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49


All times are GMT -4. The time now is 14:49.