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

[swak4Foam] Swirl input using groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By tuominen

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 14, 2011, 19:59
Default Swirl input using groovyBC
  #1
Member
 
Join Date: Nov 2010
Posts: 54
Rep Power: 15
usergk is on a distinguished road
Hello Foamers,

I am trying to implement swirl input in a cylindrical tube (axis along z dir). I came across the groovyBC code to implement swirl input:

inlet
{
type groovyBC;
variables "rpm=8000.0;Un=55.8;c=sum(pos()*mag(Sf()))/sum(mag(Sf()));n=sum(normal())/mag(sum(normal()));p=pos()-c;r=mag(p)+1.0e-10;R=max(r);
xt=vector(0,n.z,-n.y);xT=xt/mag(xt);yt=vector(n.y*n.y+n.z*n.z,-n.x*n.y,-n.x*n.z);yT=yt/mag(yt);";
valueExpression "-Un*normal() + (rpm*pi/30)*((p & yT)*xT - (p & xT)*yT)";
}

Can someone explain what xt, yt, and (p & yT)*xT - (p & xT)*yT refer to?

Thanks so much,

Regards,
gk

Last edited by usergk; February 15, 2011 at 20:31.
usergk is offline   Reply With Quote

 


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
Quantifying the swirl in CFX, Swirl Number/Swirl Angle tauqirnawaz CFX 23 July 24, 2016 22:28
[swak4Foam] GroovyBC with power input (heat flux) Tobi OpenFOAM Community Contributions 10 January 12, 2016 10:04
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 10:45
Swirl in Pressure Swirl Atomizer varunrajendra FLUENT 0 August 19, 2009 12:09
Quantifying Swirl Ianto Main CFD Forum 0 April 27, 2009 10:54


All times are GMT -4. The time now is 18:43.