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

[swak4Foam] Rigid body Rotation about an axis using groovyBC.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2014, 17:41
Default Rigid body Rotation about an axis using groovyBC.
  #1
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Hi all,

Can someone provide an example for how to specify rotation (fixed RPM) of an arbitrarily shaped internal boundary about say the Y-axis?

Thanks for your help!
msrinath80 is offline   Reply With Quote

Old   August 12, 2014, 18:30
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by msrinath80 View Post
Hi all,

Can someone provide an example for how to specify rotation (fixed RPM) of an arbitrarily shaped internal boundary about say the Y-axis?

Thanks for your help!
That'd be "f*(vector(0,1,0) ^ pos())" (^is the cross product in OpenFOAM/swak)

Calculating the scalar factor f is left to the reader as an exercise
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 12, 2014, 18:50
Default
  #3
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
haha, thanks Bernhard. That v = [omega] X [R] could be written with such simple abstraction in groovyBC is simply beautiful!
msrinath80 is offline   Reply With Quote

Old   August 12, 2014, 20:20
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by msrinath80 View Post
haha, thanks Bernhard. That v = [omega] X [R] could be written with such simple abstraction in groovyBC is simply beautiful!
You're welcome. As it is quite a frequent "pattern" consider writing a Usage Example at http://openfoamwiki.net/index.php/Co...Usage_examples
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
rigid body motions- no external force armin najarian Main CFD Forum 1 July 6, 2016 04:19
local coordinate frame (axis of rotation), moves in a straight line too dyson CFX 10 May 24, 2016 07:42
OF 1.6 extend. GGI - rotation around two axis - C++ newbie needs help A.Wendy OpenFOAM Programming & Development 17 February 18, 2013 04:22
OF 1.6 extend. GGI - rotation around two axis - C++ newbie needs help A.Wendy OpenFOAM Running, Solving & CFD 1 February 4, 2013 09:05
rigid body rotation through an axis not passing through centre of gravity ranjith CFX 5 November 22, 2012 17:08


All times are GMT -4. The time now is 23:59.