27
EGR 1101 Unit 4 Two-Dimensional Vectors in Engineering (Chapter 4 of Rattan/Klingbeil text)

EGR 1101 Unit 4

  • Upload
    sahara

  • View
    28

  • Download
    0

Embed Size (px)

DESCRIPTION

EGR 1101 Unit 4. Two-Dimensional Vectors in Engineering (Chapter 4 of Rattan/Klingbeil text). Scalars versus Vectors. A scalar is a quantity that has magnitude only. Examples: Mass Temperature - PowerPoint PPT Presentation

Citation preview

Page 1: EGR  1101  Unit 4

EGR 1101 Unit 4

Two-Dimensional Vectors in Engineering

(Chapter 4 of Rattan/Klingbeil text)

Page 2: EGR  1101  Unit 4

Scalars versus Vectors

A scalar is a quantity that has magnitude only. Examples:

Mass Temperature

A vector is a quantity that has magnitude and direction, and that obeys the triangle law of addition. Examples:

Velocity Force

Page 3: EGR  1101  Unit 4

Component Form & Polar Form

Vectors are commonly written in two different forms.

In component form, a two-dimensional (2-D) vector is expressed as the sum of an x-component and a y-component.

In polar form, a 2-D vector is expressed as having a certain magnitude in a certain direction.

Page 4: EGR  1101  Unit 4

Other Names for Component Form

Component form is sometimes called rectangular form or Cartesian form.

Page 5: EGR  1101  Unit 4

Component Form

Suppose a vector has x-component and y-component .

Then we can write the vector in component form as

where is the unit vector in the positive-x direction and is the unit vector in the positive-y direction.

v

jvivv yxˆˆ

yvxv

ij

Page 6: EGR  1101  Unit 4

Polar Form

Suppose a vector has magnitude v and angle .

Then we can write the vector in polar form as

= v .

v

v

Page 7: EGR  1101  Unit 4

Converting Between Component & Polar Forms

Many problems involve converting from one form to the other. This is easy if you remember your basic trig.

From polar form to component form:vx = v cos()vy = v sin()

From component form to polar form:v = vx

2 + vy2

= tan-1(vy / vx)

Page 8: EGR  1101  Unit 4

This Week’s Examples

1. Force on a vacuum cleaner2. Impedance of inductor & resistor in series3. Position of a ship4. Forces in static equilibrium: Hanging weight5. Forces in static equilibrium: TV on a ramp

Page 9: EGR  1101  Unit 4

A New Electrical Component: The Inductor

Recall that a resistor has a resistance (R), which is measured in ohms (Ω). In diagrams, the symbol for a resistor is

An inductor has an inductive reactance (XL), also measured in ohms. In diagrams, the symbol for an inductor is

Page 10: EGR  1101  Unit 4

Impedance

Resistance (R) and inductive reactance (XL) are special cases of a quantity called impedance (Z), also measured in ohms.

Impedance (Z)

Resistance (R) Reactance (X)

Inductive Reactance (XL) Capacitive Reactance (XC)

Page 11: EGR  1101  Unit 4

Review: Total Resistance of Resistors in Series Recall that if two resistors are connected in

series (end-to-end), total resistance is the sum of the two resistances:

Things aren’t quite this simple when a resistor and an inductor are connected in series…

Page 12: EGR  1101  Unit 4

Total Impedance To find total impedance of a resistance

and an inductive reactance in series, add them as vectors, not as scalars.

When treated as vectors, resistance always has an angle of 0, and inductive reactance always has an angle of 90.

Page 13: EGR  1101  Unit 4

Adding Vectors Many problems involve the addition of

two or more vectors. Vectors can be added graphically or

algebraically.

Page 14: EGR  1101  Unit 4

Adding Vectors Graphically

To add two vectors and graphically: Draw the two vectors with ‘s tail placed

at ‘s tip. Then draw a third vector that extends

from ‘s tail to ‘s tip. This third vector is the vector sum, which we call .

1P

2P

1P

1P

2P

2P

21 PP

Page 15: EGR  1101  Unit 4

Adding Vectors Algebraically

To add and algebraically: Write the vectors in component form:

and

Add their x-components to get the x-component of the sum, and add their y-components to get the y-component of the sum:

1P

2P

jPiPP yxˆˆ

111 jPiPP yx

ˆˆ222

jPPiPPPP yyxxˆ)(ˆ)( 212121

Page 16: EGR  1101  Unit 4

Matrices, Vectors, and Scalars in MATLAB

• In MATLAB, all quantities are treated as arrays of numbers.

• A matrix has several rows and several columns.

• A vector has one row and several columns, or one column and several rows.

• A scalar has just one row and one column.

Page 17: EGR  1101  Unit 4

Matrices in MATLAB

• Example of a 2x3 matrix (one with two rows and three columns):

• To enter this in MATLAB, type:A = [7.6, 1.2, 1.5; 4.9, 3.3, 2.5]

5.23.39.45.12.16.7

Page 18: EGR  1101  Unit 4

Vectors in MATLAB

• A row vector is an array with just one row.

• Example: v1=[7.6, 1.2, 1.5]• A column vector is an array with just

one column.• Example: v2=[7.6; 1.2; 1.5]

Page 19: EGR  1101  Unit 4

Scalars in MATLAB

• A scalar is treated as an array with just one row and one column.

• Example: s=23.5• Could also write this as s=[23.5]

Page 20: EGR  1101  Unit 4

Typical Use of Vectors in MATLAB

• Suppose we want to plot some temperature-versus-time data.

• Define vectors for time and temp, and then use plot command.

Time (hour AM) Temperature (F)5 596 587 608 639 7010 78

Page 21: EGR  1101  Unit 4

Matrix Multiplication versus Element-by-Element Multiplication

• In MATLAB, the * operator performs matrix multiplication.

• For A*B to be defined, the number of columns in A must equal the number of rows in B.

• The .* operator performs element-by-element multiplication.

Page 22: EGR  1101  Unit 4

MATLAB Multiplication Example

• Define two 1x3 vectors:v1 = [1, 2, 3]v2 = [4, 5, 6]

• v1*v2 tries to perform matrix multiplication. An error results, since the number of columns in v1 is not equal to the number of rows in v2.

• v1.*v2 performs element-by-element multiplication, giving [4, 10, 18].

Page 23: EGR  1101  Unit 4

Other Operations in MATLAB• Similar comments apply to division and

exponentiation: • / performs matrix division• ./ performs element-by-element division• ^ performs matrix exponentiation• .^ performs element-by-element expntn.

• Addition and subtraction are always performed element-by-element. So we don’t need special .+ and .– operators. Just use the + and – operators.

Page 24: EGR  1101  Unit 4

Static Equilibrium The field called “statics” deals with

objects in static equilibrium. For such objects, the external forces acting on the object add to zero:

Therefore (for 2 dimensions):

0

0

y

x

F

F

0 F

Page 25: EGR  1101  Unit 4

Common Types of Force The following types of forces often arise

in statics problems: Weight Tension Frictional force Normal force

Page 26: EGR  1101  Unit 4

Weight and Mass

Near the earth’s surface, an object’s weight ( ) is a vector pointing straight down.

Its magnitude (W) is equal to the object’s mass (m) times the acceleration due to gravity (g):

W = mg In metric units, g 9.81 m/s2.

W

Page 27: EGR  1101  Unit 4

Free-Body Diagram

For statics problem, your first step should be to draw a free-body diagram.

A free-body diagram shows the object of interest and clearly indicates all of the forces acting on that object.