Presentation is loading. Please wait.

Presentation is loading. Please wait.

Engr 0012 (04-1) LecNotes 01-01 Engineering 0012 Introduction to Engineering Computing Dr. Patzer B68D Benedum Hall Office: 412.624.9819

Similar presentations


Presentation on theme: "Engr 0012 (04-1) LecNotes 01-01 Engineering 0012 Introduction to Engineering Computing Dr. Patzer B68D Benedum Hall Office: 412.624.9819"— Presentation transcript:

1 Engr 0012 (04-1) LecNotes 01-01 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/www.pitt.edu/~patzer/ Office Hours: M 11-1 W 11-12 by appointment

2 Engr 0012 (04-1) LecNotes 01-02 + Bound Solute BinderSolute MATLAB - Bound Solute Dialysis Equilibrium Binding Coefficient

3 Engr 0012 (04-1) LecNotes 01-03 BSD 1-Compartment Model

4 Engr 0012 (04-1) LecNotes 01-04 Dialyzer operation Blood Flow Dialysate Flow

5 Engr 0012 (04-1) LecNotes 01-05 Dialyzer operation -  C drives flux Blood Flow Dialysate Flow 

6 Engr 0012 (04-1) LecNotes 01-06 Dialyzer operation - add binder to dialysate Blood Flow Dialysate Flow

7 Engr 0012 (04-1) LecNotes 01-07 Dialyzer operation - add binder to dialysate Blood Flow Dialysate Flow

8 Engr 0012 (04-1) LecNotes 01-08 BSD equations Dialyzer - blood side Dialyzer - dialysate side Patient

9 Engr 0012 (04-1) LecNotes 01-09 BSD Clearance Results

10 Engr 0012 (04-1) LecNotes 01-10 BSD Experimental Results (no binder)

11 Engr 0012 (04-1) LecNotes 01-11 BSD Experimental Results (with binder)  = 0.1-0.3

12 Engr 0012 (04-1) LecNotes 01-12 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

13 Engr 0012 (04-1) LecNotes 01-13 Introduction to MATLAB Variable names / numbers » alpha = 7 » beta = 7.0 beta = 7 different alpha = 7 same

14 Engr 0012 (04-1) LecNotes 01-14 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

15 Engr 0012 (04-1) LecNotes 01-15 Introduction to MATLAB Controlling display of significant figures » alpha = pi » format long » alpha alpha = 3.1416 alpha = 3.14159265358979 » format short e » alpha alpha = 3.1416e+000 default: format short 4 decimal places, rounded displays 14 decimal places may be in scientific notation » format long e » alpha alpha = 3.141592653589793e+000 displays 5 significant digitsdisplays 16 significant digits

16 Engr 0012 (04-1) LecNotes 01-16 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

17 Engr 0012 (04-1) LecNotes 01-17 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

18 Engr 0012 (04-1) LecNotes 01-18 Using MATLAB as a calculator mathematical operators addition + subtraction - multiplication * division / exponentiation ^ MATLAB-defined functions sqrt() - returns value of square root pi - returns value of  (= 3.14159…) MATLAB operators comment %

19 Engr 0012 (04-1) LecNotes 01-19 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


Download ppt "Engr 0012 (04-1) LecNotes 01-01 Engineering 0012 Introduction to Engineering Computing Dr. Patzer B68D Benedum Hall Office: 412.624.9819"

Similar presentations


Ads by Google