Code covered by the BSD License  

Highlights from
Mastering Mechanics 1: Using MATLAB 5

image thumbnail

Mastering Mechanics 1: Using MATLAB 5

by

 

20 Aug 2002 (Updated )

Companion Software

CH2901.m
Force=[6000 0 0]*1e3;%Newtons
Length=[0.07 0.09 0.05];%meters
Radii=[0.02 0.01 0.01];%meters
Youngs=[220 200 215]*1e9;%Pascals
Gap=0.001;%meters
AppliedLoads=[6000]*1e3;%Newtons
%%%Begin Common Code%%%%%
Area=(Radii.^2)*pi;%meters^2
Deflection=(Force.*Length)./(Area.*Youngs);
TotalDeflection=sum(Deflection);
ForcedDeflection=TotalDeflection-Gap;
Stiffness=Length./(Area.*Youngs);
Percentage=Stiffness./sum(Stiffness);
RegionalDeflection=ForcedDeflection.*Percentage;
ReactionRightVector=-RegionalDeflection.*Youngs.*Area./Length;
RightReaction=ReactionRightVector(1)
LeftReaction=-sum(AppliedLoads)-RightReaction

Contact us