Skip to content
Snippets Groups Projects
Verified Commit 767f4b0b authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

refact(indvel): more logical place for nBlades

parent 292c0823
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ Airfoil.polarType = 'file'; % Type of polar to use ('file', 'polynomial')
Airfoil.coordFile = 'airfoil_data/naca0012.dat';
% If Airfoil.polarType == 'file'
Airfoil.polarFile = 'airfoil_data/NACA_0012-Re_2e5-1e7.mat';
Airfoil.polarFile = 'airfoil_data/NACA_0012-Re_1e5-1e7.mat';
Airfoil.extrapMethod = 'viterna'; % Polar extrapol. ('none', 'spline', 'Viterna')
% ==================================================================================================
......
......@@ -89,8 +89,8 @@ function indvel(OpRot, Mod)
dD = coeff2force(cd, OpRot, relVel);
% Thrust and torque contributions
dFa = dL .* cos(phi) - dD .* sin(phi);
dFu = dL .* sin(phi) + dD .* cos(phi);
dFa = OpRot.Rot.nBlades * (dL .* cos(phi) - dD .* sin(phi));
dFu = OpRot.Rot.nBlades * (dL .* sin(phi) + dD .* cos(phi));
% Final system to solve for v and u
vw = OpRot.Op.speed + dFa ./ dmdot ./ K_T;
......@@ -125,7 +125,7 @@ function force = coeff2force(coeff, OpRot, speed)
% COEFF2FORCE Convert aerodynamic coefficient to force
rho = OpRot.Op.Flow.rho;
nondim = OpRot.Rot.nBlades .* (0.5 * rho * OpRot.Rot.Bl.area .* speed.^2);
nondim = 0.5 * rho * 2 * pi * OpRot.Rot.Bl.area .* speed.^2;
force = coeff .* nondim;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment