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

fix(Airfoil): issue with polypolar

parent b11c6c55
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,15 @@ function Af = createairfoils(UserAirfoil)
switch UserAirfoil(i).polarType
case 'file'
Af(i) = Af(i).loadpolar(UserAirfoil(i).polarFile);
Af(i).Polar.analyze();
Af(i).Polar.extrapMethod = UserAirfoil(i).extrapMethod;
case 'polynomial'
Af(i) = Af(i).Polar.polypolar(UserAirfoil(i).clPoly, UserAirfoil(i).cdPoly);
end
Af(i) = Af(i).polypolar(UserAirfoil(i).clPoly, UserAirfoil(i).cdPoly);
Af(i).Polar.findzerolift();
Af(i).Polar.findcllinrange();
Af(i).Polar.analyze();
Af(i).Polar.extrapMethod = UserAirfoil(i).extrapMethod;
end
end
......
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