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

rotatingWallVelocity BC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2015, 13:15
Default rotatingWallVelocity BC
  #1
Member
 
VA
Join Date: Mar 2015
Location: ON, Canada
Posts: 30
Rep Power: 11
vabishek is on a distinguished road
Hello FOAMers,

I am trying to understand the implementation of the rotatingWallVelocity BC. Here is the link to the source code for this BC: http://foam.sourceforge.net/docs/cpp/a05095_source.html.

I am having a hard time trying to figure out the following lines in the code:

Code:
 const scalar t = this->db().time().timeOutputValue();
    scalar om = omega_->value(t);

    // Calculate the rotating wall velocity from the specification of the motion
    const vectorField Up
    (
        (-om)*((patch().Cf() - origin_) ^ (axis_/mag(axis_)))
    );
Could someone explain why omega (om), rotation speed in rad/s, is multipled by -1 above.

Thanks,

Abishek
vabishek is offline   Reply With Quote

Old   September 25, 2015, 18:25
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
Hi,

I think that this multiplication is to obey the right-hand rule when om > 0.

Best regards,
Fumiya
Attached Images
File Type: png rotatingWallVelocity.png (45.0 KB, 22 views)
vabishek likes this.
__________________
[Personal]
fumiya is online now   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
rotatingWallVelocity normal to wall rcastilla OpenFOAM Programming & Development 3 April 3, 2024 03:22
rotatingWallVelocity bc Lodda OpenFOAM 8 June 18, 2018 11:31
How to use rotatingWallVelocity boundary condition terrybarnaby OpenFOAM 26 February 7, 2018 18:53
Why the axial velocity of the wall using rotatingwallvelocity BC isn't zero? babala OpenFOAM 0 November 29, 2013 08:21
using rotatingWallVelocity in openfoam bigboss.abhishek OpenFOAM Running, Solving & CFD 0 August 27, 2013 00:41


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