190 likes | 314 Views
Engineering 10. Chp.10 Computer Tools. Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu. Mr. Huezo’s Chevy 350 CID Engine. Engineering Software. Our Guest Speakers have Mentioned Several SPECIALIZED Computer Tools Used by Engineers Pro-E (CAD)
E N D
Engineering 10 Chp.10 Computer Tools Bruce Mayer, PE Licensed Electrical & Mechanical EngineerBMayer@ChabotCollege.edu
Engineering Software • Our Guest Speakers have Mentioned Several SPECIALIZED Computer Tools Used by Engineers • Pro-E (CAD) • AutoCAD (CAD) • MATLAB • ANSYS FEA • MicroStation XM(CAD)
Chabot Engineering Software • Chabot Engineering Students Learn TWO pieces of special Software MATLAB AutoCAD • MATLAB is a MATH-Processor • AutoCAD is a BLUEPRINT-Processor
MATLAB Environment • TWO Interaction Modes • INTERACTIVE • Type in the COMMAND WINDOW • Often Called a Command-Window “Session” • Interaction is NOT Saved to Disk • STORED → Two Types • SCRIPT Files • FUNCTION Files
Command Window Session Typing Occurs Here
Example Cmd Window Session >> %Use MATLAB As Calculator >> 17*19 ans = 323 >> 77/19 -4.3 ans = -0.2474 >> 64^(1/3) + 32^0.2 ans = 6 >> (7+11)*2.5 ans = 45 >> L = 14.4 L = 14.4000 >> W = 13.3 W = 13.3000 >> Area = L*W Area = 191.5200 Time For Live Demo
A simple MATLAB File % Bruce Mayer, PE % ENGR10 Demo * 18Oct09 % file = E10_Demo_0910.m % % Define Anon Fcn E10fcn = @(x) exp(x/7)-5*cos(x) % % plot the fcn fplot(E10fcn, [0 10]),grid % % find roots between 0-10 R1 = fzero(E10fcn, 2) R2 = fzero(E10fcn, 5) R3 = fzero(E10fcn, 7)
Electric-DiPole E-Field Visualization • E-Field Governing Equation
The Distance Calcs • Using Pythagorean Theorem
% Bruce Mayer, PE * 15Oct09 * ENGR25 % file = Prob5_57_Point_Charges_meshgrid_Plot_0910.m % Surface Plot eField from two Point Charges % % CLEAR out any previous runs clear % The Constant Parameters q1 = 2e-10; q2 = 4e-10; % in Coulombs epsilon = 8.854e-12; % in Farad/m % % Note the distances, r1 & r2, to any point(x,y) in the field by pythagorus % * r1 = sqrt((x-0.3)^2 + y^2) % * r2 = sqrt((x+0.3)^2 + y^2) % % Construct a 50x50 mesh [X Y] = meshgrid(-0.25:0.010:0.25); % % find r1 & r2 by pythagorus and array-ops r1 = sqrt((X-0.3).^2 +Y.^2); % note dots used with array operation r2 = sqrt((X-(-0.3)).^2 +Y.^2); % note dots used with array operation % use vectors r1 & r2, and array ops to find V V = (1/(4*pi*epsilon))*(q1./r1 +q2./r2); % surf(X,Y,V), xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on % disp('Showing SURF Plot - Hit ANY KEY to continue') pause meshc(X,Y,V), , xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on disp('Showing meshC Plot - Hit ANY KEY to continue') pause meshz(X,Y,V), , xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on The MeshGrid Plot
5 inches AutoCAD Demo • Make 2D & 3D CAD Drawing for FrontView
AutoCAD 3D Demonstration E10_Pipe_Support_3D_0910.dwg
All Done for Today MATLABKleinBottle