|
[Sponsors] |
February 14, 2011, 19:59 |
Swirl input using groovyBC
|
#1 |
Member
Join Date: Nov 2010
Posts: 54
Rep Power: 15 |
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. |
|
|
|
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 |