CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Rigid body Rotation about an axis using groovyBC. (https://www.cfd-online.com/Forums/openfoam-community-contributions/140309-rigid-body-rotation-about-axis-using-groovybc.html)

msrinath80 August 12, 2014 16:41

Rigid body Rotation about an axis using groovyBC.
 
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!

gschaider August 12, 2014 17:30

Quote:

Originally Posted by msrinath80 (Post 505651)
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

msrinath80 August 12, 2014 17:50

haha, thanks Bernhard. That v = [omega] X [R] could be written with such simple abstraction in groovyBC is simply beautiful!

gschaider August 12, 2014 19:20

Quote:

Originally Posted by msrinath80 (Post 505659)
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


All times are GMT -4. The time now is 10:50.