Professional Documents
Culture Documents
1 2
3 4
2/2/2020
• Note if you type u(t) then hit enter, it will not show you the answer you
7
obtained. 8
2/2/2020
11 12
2/2/2020
Quadratic Bar Element Using MAPLE Quadratic Bar Element Using MAPLE
• Evaluate X at the nodes at X = 0, L/2 and L. • Now to write u as a function of DOF (u1,u2,u3), then U = [X*inv(Xo)]*d , the
X1:=subs(x=0,X); X2:=subs(x=L/2, X); X3:=subs(x=L,X); matrix [ X*inv(Xo) ] is the shape function matrix. Use N:= X.Xo^-1 ;
Quadratic Bar Element Using MAPLE Quadratic Bar Element Using MAPLE
• Because E, A are constants, the stiffness matrix is then K ୣ = ۰ EA۰dx • To compute the equivalent nodal force from a uniform distributed load qo
Which is computed in MAPLE as: Ke := map( int , B^%T . (E*A*B) ,x=0..L ) ܨ = න ݍ ் ۼ ݀ݔ
MAPLE BASICS
• All the above steps can be condensed to the following coding:.
restart;
X:=< 1| x | x^2 >; # define the X and Xo
Xo:= < <subs(x=0,X)> , <subs(x=L/2,X)>, <subs(x=L,X)> >;
N:= X.Xo^-1; # Define the shape functions matrix
B:=map(diff,N,x); # Define the strain function
Ke := map( int , B^%T . (E*A*B) ,x=0..L ); # integrate for K
Fe := map( int , qo*N^%T, x = 0..L ); # integrate for nodal forces
• Any statement starting with #, will be considered a comment, and will not be
executed by the program
• The “ ; “ makes the program display the results, use “ : “ if you don’t want to
display the results 21