Compute lift and drag coefficients for an upper stage.

Utilizes NewtonianAerodynamicsFromCAD to plot the lift and drag coefficients for varying alpha. Animates the vehicle and shades red those panels that are contributing to the lift and drag. Also computes the forces and torques on the vehicle for a range of velocities. ------------------------------------------------------------------------ See also: NewtonianAerodynamicsFromCAD, BuildCADModel, LoadCAD ------------------------------------------------------------------------

Contents

%--------------------------------------------------------------------------
%   Copyright (c) 2010 Princeton Satellite Systems, Inc.
%   All Rights Reserved
%--------------------------------------------------------------------------

Example Upper Stage model

%--------------------------------------
g = LoadCAD('UpperStage.obj');

Load into the CAD viewer so you can look at the model

%------------------------------------------------------
BuildCADModel( 'initialize' );
BuildCADModel( 'set external model', g );

Properties

%------------
alpha = linspace(0,25,100)*pi/180;
n     = length(alpha);
beta  = zeros(1,n);
angle = zeros(7,n);
rho = 1.0;
c   = [0;0;0]; % Center of mass
uSurf = g.component.v;
uMag  = 1300*ones(1,n);

Plot results

Animation is enabled

%--------------
NewtonianAerodynamicsFromCAD( alpha, beta, uMag, rho, g, c, angle, uSurf, 1 );


% PSS internal file version information
%--------------------------------------