13.07.2015 Views

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

% | sAcB -sAsB cA | Fzb% Test dataFxWind = 100;FyWind = 30;FzWind = 300;u=100;v=50;w=50;%***** Trig functions first *****alpha = atan(w/u);beta = asin(v/AirSpeed);%alpha = asin(w/AlphaSpeed)*57.3%alpha = acos(u/AlphaSpeed)*57.3%beta = asin(v/AirSpeed)*57.3%***** just lift and drag *****FxBody = FxWind*cos(alpha)*cos(beta)-FzWind*sin(alpha);FyBody = FxWind*sin(beta);Fzbody = FxWind*sin(alpha)*cos(beta)+FzWind*cos(alpha);%***** with side <strong>for</strong>ce *****FxBody = FxWind*cos(alpha)*cos(beta)-FyWind*cos(alpha)*sin(beta)-FzWind*sin(alpha)FyBody = FxWind*sin(beta)+FyWind*cos(beta)Fzbody = FxWind*sin(alpha)*cos(beta)-FyWind*sin(beta)*sin(alpha)+FzWind*cos(alpha)%***** Without trig functions *****% computers are VERY SLOW at trig functions and fast at mult ok at divide% sA = w/AlphaSpeed% cA = u/Alphaspeed% sB = v/Airspeed% cB = AlphaSpeed/AirspeedvSquared = u*u+w*w;154

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!