Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
%step 3:
%Clbeta=Cl0-0.0065*beta*Cl0^0.6; %4
syms Cl0
Cl0=solve(Cl0-0.0065*beta*Cl0^(0.6)-Clbeta);
Cl0=double(Cl0(1));
%lambda=(d/sind(tau)-b/(2*pi)*tand(beta)/tand(tau))/b;
%step8:
Cf=0.075/(log10(Rn)-2)^2; %log10!
%step9:
Ca=0.0004;
%step10:
corrlambda=0.5*(tand(beta)/(pi*tand(tau))-1/(2*tand(theta)))*cos
d(theta);
%syms corrlambda;
%corrlambda=solve((Lm/b * b *b/cosd(beta))/(b^2/cosd(beta))-(lam
bda+corrlambda),corrlambda);
corrlambda=double(corrlambda(1));
%step11:
Df=rho/2*b^2*Vs^2/cosd(beta)*(Cf+Ca)*((Vm/Vs)^2*lambda+corrlambd
a); %8
Dair=0.5*rhoair*Vs^2*Aair*0.7;% Luftwiderstand, C=0.7 (acc. incl
usion of whisker spray prediction)
%appendage Resistances...
%skeg Widerstand
Dk=rho/2*2*Askeg*Vm^2*Cf*4; %Berechnung siehe Arbeitsheft, 10.4.
2012
%shaft Widerstand
Dsh=rho/2*Lshaft*Dshaft*Vs^2*(1.1*sind(epsilon)^3+pi*Cf); %Berec
hnung siehe Arbeitsheft, 10.4.2012
%Rudder Widerstand
Dr=rho/2*Arudder*Vs^2*0.0015; %Berechnung siehe Arbeitsheft, 10.
4.2012
% Df=rho/2*b^2*Vm^2/cosd(beta)*(Cf+Ca)*(lambda+corrlambda); % lau
t savitsky.xls
%Df=Cf*0.5*rho*Vs^2*(lambda+corrlambda)*b^2/cosd(beta); %aus pri
ncipals of yacht design
Dfs(tau)=Df+Dk+Dsh+Dr+Dair; %total Drag = boat drag + app. drag
%calculate total resistance
%R=(g*m*sind(tau)+Df)*cosd(tau+epsilon)/cosd(epsilon);
%step12:
a=(vcg-(b/4)*tand(beta));
%step13:
Cp=0.75-1/(5.21*Cv^2/lambda^2+2.39);%5
%step14:
Lcp=Cp*lambda*b;
%step15:
c=lcg-Lcp;
%step16:
Md=m*g*(c*cosd(tau+epsilon)/cosd(epsilon)-f*sind(tau)/cosd(epsil
on));
%step17:
Mdf=Df*(a-c*tand(epsilon)-f/cosd(epsilon));
%step18:
Mbh(tau)=Md+Mdf; %calculate total moment
%Mbh(i,tau)
end
%calculate equilibrum angle and total Rbh
tau1=taumin;
tau2=taumin+1;
if tau>taumin+1
%if Vs>(Vsmin+Vstep) %erst ab zweitem Wert
%step19:
tau0=tau1-(Mbh(tau1)*(tau2-tau1)/(Mbh(tau2)-Mbh(tau1)));
%taux=tau0;
%step20:
Df0=Dfs(tau1)+(Dfs(tau2)-Dfs(tau1))/(tau2-tau1)*(tau0-ta
u1);
%step21:
Rbh(1)=cosd(tau0+epsilon)/cosd(epsilon)*(g*m*sind(tau0)+
Df0);
%in principles of yacht design eher so, aber ergibt
%komische Kurve
%Rbh(i,1)=cosd(tau0+epsilon)/cosd(epsilon)*(g*m*sind(tau
0)+Dfs(tau,i))
%Rbh(2)=Vs;
%step22:
EPbh=(Rbh*Vs); %effective power in Watts
%end
end
resistance=Rbh;
power=EPbh;
end