ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.

Slides:



Advertisements
Similar presentations
ENGR-45_Prob_3-5_3-12_2-16_Lab.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical.
Advertisements

ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
E ENGR-25_Chp2_AirCraft_Separation_.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Chp3 Tutorial: Prob 3.14 Solution
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Given Irregular Quadrilateral  By Law of.
ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-45_Lec24A_MTE2_Exam-Review.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Registered Electrical.
ENGR-25_Tutorial_P9-34_Accelerating_Pendulum.pptx 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer,
MTH55_Lec-53_Fa08_sec_8-4_Eqns_Quadratic_in_Form.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Chp6_Tutorial_PolyFit_J_S_rsq.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_Plot_Model-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR36_Tutorial_Triangle-Prism_Mass_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH55_Lec-07_sec_2-3a_Lines_by_Intercepts.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Arrays-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH15_Lec-02_Fa13_sec_1-2_Fcn_Graphs.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Licensed Electrical & Mechanical Engineer
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Equations-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Engr/Math/Physics 25 Chp8.
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
Catenary Tutorial Part-1
MTH55_Lec-46_sec_7-6b_2Var_Radical_Eqns.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_Programming-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods 1 Bruce Mayer, PE Licensed Electrical.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Programming-3.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_EXCEL_Integration_Tutorial-Example.pptx 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-25_Lec-22_ODE_MATLAB.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-43_Lec-04b_2nd_Order_Ckts.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Registered.
ENGR-36_Lab-24_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_MATLAB_OverView-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Plot_Model-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-25_Programming-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods 1 Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_2-24_Solution.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-10_HW_Engr_Fields_Disciplines_Instructions.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-43_Prob_5-80_Dual-Src_Complex-Pwr_Solution_.pptx 1 Bruce Mayer, PE Engineering 43: Electrical Circuits & Devices Bruce Mayer,
ENGR-25_Lec-21_Integ_Diff.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Prob_4_5_32_ACAD_Solution.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-06_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH15_Lec-17a_sec_3-5_Round_End_Fence_Enclosure.pptx 1 Bruce Mayer, PE MTH15: Applied Calculus I Bruce Mayer, PE Licensed Electrical.
© ENGR-43_Prob_14-32_OpAmp_OutPut_Current.pptx 1 Bruce Mayer, PE Engineering-43 Electrical Circuits & Devices Bruce Mayer, PE.
ENGR-43_Lec-04b_2nd_Order_Ckts.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Registered.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Chp4 Tutorial: Prob 4.25 Solution
Catenary Tutorial Part-2
Licensed Electrical & Mechanical Engineer
Chp3 Tutorial: Prob 3.15 Solution
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Registered Electrical & Mechanical Engineer
Monte Carlo vs. PERT Tutorial
Chp3 Nodal Analysis & MATLAB
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Prob 9-28 Solution Tutorial
Presentation transcript:

ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical & Mechanical Engineer Engr/Math/Physics 25 Prob 5.47, 5.57 Tutorial

ENGR-25_Programming-1.ppt 2 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Problem 5.47  Chemical Rcn Order  1 st Order Rate Eqn is Expontnential By SemiLog Linearization we can “Discover” parameters [m & b]  [C(0) & − k  2 nd Order Eqn can be LINEARIZED as Thus ANOTHER Linearizable Fcn

ENGR-25_Programming-1.ppt 3 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Prob Solve 1st Step → PLOT it  Advice for Every Engineer and Applied Mathematician or Physicist: RRule-1: When in Doubt PLOT IT! RRule-2: If you don’t KNOW when to DOUBT, then PLOT EVERYTHING

ENGR-25_Programming-1.ppt 4 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Prob 5.47  When in Doubt PLOT  Some CURVATURE  Straight Better Model t  X 1/C  Y

ENGR-25_Programming-1.ppt 5 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Linear Xform of 2 nd Order Reaction  Now that the plot has identified the Rcn as 2 nd Order, Make Linear Xform  The 2 nd Order Eqn  Use polyfit of order-1 to generate fitting parameters contained in vector k_1overC0  That is: k_1overC0 = [m, B 2 ]; or k_1overC0(1) = m = k k_1overC0(2) = B 2 = 1/C(0)

ENGR-25_Programming-1.ppt 6 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The 2 nd Order Model

ENGR-25_Programming-1.ppt 7 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods P 5.47 Answer  k_1overC0 = [m B 2 ] = [k 1/C0] = [5.4445e e+001]  k = e-001 k =  C0 = 1/9.9605e+001  e-002 C =

ENGR-25_Programming-1.ppt 8 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods P5.57 Geometry  E-Field Governing Equation

ENGR-25_Programming-1.ppt 9 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The Distance Calcs  Using Pythagorean Theorem

ENGR-25_Programming-1.ppt 10 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The MeshGrid Plot % Bruce Mayer, PE * 04Nov06 % ENGR25 % file = Prob5_57_Point_Charges_meshgrid_Plot_0611.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 25x25 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); % % use %-Comment to toggle between SURF & MESHC plots % surf(X,Y,V), xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on meshc(X,Y,V),, xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on

ENGR-25_Programming-1.ppt 11 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Meshc Plot MeshGrid

ENGR-25_Programming-1.ppt 12 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods surf Plot by MeshGrid

ENGR-25_Programming-1.ppt 13 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The Loop Plot % Bruce Mayer, PE * 04Nov06 * ENGR25 % file = Prob5_57_Point_Charges_Loop_Plot_0611.m % Surface Plot eField from two Point Charges Clear % CLEAR out any previous runs % 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) % Build up From Square XY Plane % r1 goes to q1 at (0.3,0) % r2 goes to q2 at (-0.3,0) x = linspace(-.25,.25, 50); %50 pts over x-range y = linspace(-.25,.25, 50); %50 pts over y-range for k = 1:length(x) for m = 1:length(y) % calc r1 & r2 using pythagorus r1 = sqrt((x(k)-0.3)^2 + y(m)^2); r2 = sqrt((x(k)-(-0.3))^2 + y(m)^2); % Find V based on r1 and r1 V(k,m) = (1/(4*pi*epsilon))*(q1/r1 +q2/r2); % Note that V is a 2D array using the x & y indices end end X = x; Y = y; % use %-Comment to toggle between SURF & MESHC plots surf(X,Y,V), xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on %meshc(X,Y,V),, xlabel('X-distance'), ylabel('Y-distance'),... zlabel('Elect. Potential (V)'), title('2 Point-Charges Electical Field'),... grid on

ENGR-25_Programming-1.ppt 14 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods meshc Plot by Loop Note that plot is TURNED

ENGR-25_Programming-1.ppt 15 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods surf Plot by Loop Note that plot is TURNED