190 likes | 382 Views
Engineering 0012 Introduction to Engineering Computing. Dr. Patzer B68D Benedum Hall Office: 412.624.9819 e-mail: patzer@pitt.edu web page: www.pitt.edu/~patzer/. Office Hours: M 11-1 W 11-12 by appointment. Engr 0012 (04-1) LecNotes 01-01. +. Bound Solute. Binder.
E N D
Engineering 0012 Introduction to Engineering Computing Dr. Patzer B68D Benedum Hall Office: 412.624.9819 e-mail: patzer@pitt.edu web page: www.pitt.edu/~patzer/ Office Hours: M 11-1 W 11-12 by appointment Engr 0012 (04-1) LecNotes 01-01
+ Bound Solute Binder Solute Equilibrium Binding Coefficient MATLAB - Bound Solute Dialysis Engr 0012 (04-1) LecNotes 01-02
BSD 1-Compartment Model Engr 0012 (04-1) LecNotes 01-03
Blood Flow Dialysate Flow Dialyzer operation Engr 0012 (04-1) LecNotes 01-04
Blood Flow Dialysate Flow Dialyzer operation - C drives flux Engr 0012 (04-1) LecNotes 01-05
Blood Flow Dialysate Flow Dialyzer operation - add binder to dialysate Engr 0012 (04-1) LecNotes 01-06
Blood Flow Dialysate Flow Dialyzer operation - add binder to dialysate Engr 0012 (04-1) LecNotes 01-07
Dialyzer - blood side Dialyzer - dialysate side Patient BSD equations Engr 0012 (04-1) LecNotes 01-08
BSD Clearance Results Engr 0012 (04-1) LecNotes 01-09
BSD Experimental Results (no binder) Engr 0012 (04-1) LecNotes 01-10
BSD Experimental Results (with binder) b = 0.1-0.3 Engr 0012 (04-1) LecNotes 01-11
Introduction to MATLAB Double click on icon to launch Set Current Directory C:\temp or C:\user in Freshman Computer Labs This is where MATLAB will send output and is the first place MATLAB will look for scripts and functions that you write Engr 0012 (04-1) LecNotes 01-12
different same Introduction to MATLAB Variable names / numbers » alpha = 7 alpha = 7 » beta = 7.0 beta = 7 Engr 0012 (04-1) LecNotes 01-13
Introduction to MATLAB MATLAB treats all numbers the same type double precision imaginary real + imaginary part ~ 18 significant figures » gamma = sqrt(2) gamma = 1.1412 » delta = sqrt(-gamma) delta = 0 + 1.1892i Engr 0012 (04-1) LecNotes 01-14
default: format short 4 decimal places, rounded displays 14 decimal places may be in scientific notation Introduction to MATLAB Controlling display of significant figures » alpha = pi alpha = 3.1416 » format long » alpha alpha = 3.14159265358979 » format short e » format long e » alpha » alpha alpha = 3.1416e+000 alpha = 3.141592653589793e+000 displays 5 significant digits displays 16 significant digits Engr 0012 (04-1) LecNotes 01-15
Introduction to MATLAB Recap on what we know variables declared by assigning a value to a name MATLAB treats all values as double precision imaginary MATLAB displays integers as integers format command can be used to control display of noninteger values Engr 0012 (04-1) LecNotes 01-16
Using MATLAB as a calculator Calculating sphere parameters » % setting sphere radius » radius = 1 radius = 1 » % calculating sphere volume » sphere_vol = 4*pi*radius^3/3 sphere_vol = 4.1888 » % calculating sphere surface area » sphere_surf = 4*pi*radius^2 sphere_surf = 12.5664 Engr 0012 (04-1) LecNotes 01-17
addition + subtraction - multiplication * division / exponentiation ^ sqrt() - returns value of square root pi - returns value of (= 3.14159…) Using MATLAB as a calculator mathematical operators MATLAB-defined functions MATLAB operators comment % Engr 0012 (04-1) LecNotes 01-18
Class Activity Workshop 01 Do Exercises 1-4 at end all parts Turn in (at start of next class) 1. b 2. c 3. c 4. b Engr 0012 (04-1) LecNotes 01-19