mathcad_matrixnotes

3
The following is an example of how to use Mathcad to solve the matrix problems we are looking at in CES4141. The specific matrix under analysis here is from the figure below. We derived this in class r2 r1 W Q L W = 3 K/FT Q = 2 K*FT L = 15 FT E = 4000 ksi I = 1400 in^4

Upload: mojeebmashal

Post on 19-Jul-2016

12 views

Category:

Documents


0 download

DESCRIPTION

matrix

TRANSCRIPT

Page 1: Mathcad_MatrixNotes

The following is an example of how to use Mathcad to solve the matrix problems we are looking at in CES4141. The specific matrix under analysis here is from the figure below. We derived this in class

r2r1

WQ

L

W = 3 K/FTQ = 2 K*FTL = 15 FTE = 4000 ksiI = 1400 in^4

Page 2: Mathcad_MatrixNotes

Calculate the displacement vector as K-1 * R

Note that we DO need to keep writing the names of the independent variablesnext to K, r, and R to tell Mathcad what symbols to look for

Note that the := is the standard way of assigning stuff to a name. You getthis by just typing :

This is a function that we canplug numbers into laterr E I, L, Q, W,( ) K E I, L,( ) 1− R Q W, L,( )⋅:=

Mathcad is available in 200 Weil, and in the Circa labs. You can buy it at theTechHub (version 2001) for about $120.00. These notes were created entirelyin mathcad, then converted to a PDF file for web-posting. You should be ableto reproduce the work below

Define Stiffness K as a function of E, I, L Define Load Vector R as a function of Q, W, L

Note that the := is the standard way of assigning stuff to a name. You getthis by just typing a colon ' : '

K E I, L,( )

4 E⋅ I⋅L

6 E⋅ I⋅

L2

6 E⋅ I⋅

L2

12 E⋅ I⋅

L3

:= R Q W, L,( )Q

W L2⋅

30−

720

W⋅ L⋅

:=

We form the matrices above by typing Ctrl m and asking for a 2 row, 2 columnblank matrix

The variables in the parenthesis (E,I,L) and (Q,W,L) is telling mathcad that thevariables K and R, respectively, will be a function of those variables.

Show me the inverse of the stiffness matrixNot a necessary step, but pretty cool see thematrix version of 1/K

Note the arrow --> is the way toinitiate a symbolic operation. Herewe are asking what is the inverse ofK ? The arrow comes from the view => toolbars => symbolic pad

K E I, L,( ) 1−

1E I⋅( )

L⋅

1−2 E I⋅⋅( )

L2⋅

1−2 E I⋅⋅( )

L2⋅

13 E I⋅⋅( )

L3⋅

Page 3: Mathcad_MatrixNotes

Likewise we could change the material properties in any combinationBut If the structural geometry or boundary conditions change, we haveto derive a new stiffness matrix K.

r E I, L, Q, W,( )0.092

10.553−

=

Q 4 12⋅:=W5−

12:=

Now let's change the external load values and get new answers

r E I, L, Q, W,( )0.053−

6.179

=

Finally, we can now ask Mathcad to evaluate the results of sending theparameters into the function we created above. Now that E, I, L, Q, Whave numbers, they will be subsituted into the equations to get answersBe sure to use the same order for the parameters as defined above

Here are the external load valuesQ 2 12⋅:=W312

:=

Here are the material/geometric properties

L 15 12⋅:=I 1400:=E 4000:=

We can now send specific values into the function for r by first assigningnumbers to the parameters. Note that units are not being declared, so itsup to the user to be consistent.

The above is a 2x1 vector describing the rotation r1 and the translation r2as a function of E, I, L, P, Q

r E I, L, Q, W,( )

1E I⋅( )

L⋅ Q130

W⋅ L2⋅−

⋅7

40 E I⋅⋅( )L3⋅ W⋅−

1−2 E I⋅⋅( )

L2⋅ Q130

W⋅ L2⋅−

⋅7

60 E I⋅⋅( )L4⋅ W⋅+

Note the arrowdisplays a symbolic result

Display the resulting displacement vector calculated in terms of W, Q, L, E, I