# Rigid body Rotation about an axis using groovyBC.

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

 August 12, 2014, 16:41 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: 13 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!

August 12, 2014, 17:30
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,971
Rep Power: 41
Quote:
 Originally Posted by msrinath80 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

 August 12, 2014, 17:50 #3 Senior Member   Srinath Madhavan (a.k.a pUl|) Join Date: Mar 2009 Location: Edmonton, AB, Canada Posts: 703 Rep Power: 13 haha, thanks Bernhard. That v = [omega] X [R] could be written with such simple abstraction in groovyBC is simply beautiful!

August 12, 2014, 19:20
#4
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,971
Rep Power: 41
Quote:
 Originally Posted by msrinath80 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post dsk2 STAR-CCM+ 1 February 4, 2014 12:01 ranjith CFX 5 November 22, 2012 17:08 aeropeng OpenFOAM 3 June 28, 2011 04:43 Joe FLUENT 6 May 28, 2010 11:03 M-Ray FLUENT 0 May 20, 2008 09:56

All times are GMT -4. The time now is 02:08.