CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   kivaSwirl.ps (https://www.cfd-online.com/Forums/openfoam/91797-kivaswirl-ps.html)

Rickard.Solsjo August 23, 2011 05:07

kivaSwirl.ps
 
Hi all
I tried to look at this and convert this ps file but it seems to be corrupted and encrypted.
I saw that henry fixed it one year ago still i cant read it.
Does anyone have the same problem or perhaps have the file for me?
Thx

Rickard.Solsjo August 24, 2011 11:13

Okay so maybe it is not need,
I found some reference to the KIVA code and I wrote a script in matlab when you can input the swirlprofile, RPM and swirl ratio to get the graph similar to the kiva case.

function []=swirl(swirlProfile,RPM,swirlRatio)
bore=0.130;
Vphi=2*pi*swirlRatio*RPM/60;
b1=besselj(1,swirlProfile);
b2=2*b1/swirlProfile-besselj(0,swirlProfile);
omega=0.125*(Vphi*bore*swirlProfile/b2);
radius = 0.5*bore;
rstar=100;
for i=1:rstar
r(i)=i*radius/rstar;
H=swirlProfile*r(i)/radius;
b(i)=besselj(1,H);
vEff(i)=b(i)*omega;

end
R=r/radius;
plot(R,vEff);
Just in case you wanna try on your on.


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