正在加载图片...
5.2 MATLAB Functions Used 0 T(theta)-This function calculates the transformation matrix T]given the angle“theta'”.The orientation angle“theta”must be given in degrees.The returned matrix has size 3 x 3. Tinv(theta)-This function calculates the inverse of the transformation ma- trix[T]given the angle“theta”.The orientation angle“theta”must be given in degrees.The returned matrix has size 3 x 3. Sbar(S,theta)-This function calculates the transformed reduced compliance matrix [for the lamina.Its input consists of two arguments representing the reduced compliance matrix [S and the orientation angle "theta".The returned matrix has size 3 x 3. Qbar(Q,theta)-This function calculates the transformed reduced stiffness matrix [Q]for the lamina.Its input consists of two arguments representing the reduced stiffness matrix [Q]and the orientation angle "theta".The returned matrix has size3×3. The following is a listing of the MATLAB source code for each function: function y =T(theta) %T This function returns the transformation matrix T 名 given the orientation angle "theta". There is only one argument representing "theta" The size of the matrix is 3 x 3. The angle "theta"must be given in degrees. m cos(theta*pi/180); n sin(theta*pi/180); y [mtm ntn 2+m*nn*n m*m -2*m*n -m*n m*n m*m-n*n] function y Tinv(theta) XTinv This function returns the inverse of the % transformation matrix T % given the orientation angle "theta". There is only one argument representing "theta" % The size of the matrix is 3 x 3. % The angle "theta"must be given in degrees m cos(theta*pi/180); n sin(theta*pi/180); y [m*m n*n -2*m*nn*n m*m 2*m*n m*n -m*n m*m-n+n]; function y Sbar(S,theta) %Sbar This function returns the transformed reduced % compliance matrix "Sbar"given the reduced % compliance matrix S and the orientation % angle "theta". % There are two arguments representing S and "theta" 名 The size of the matrix is 3 x 3. The angle "theta"must be given in degrees. m cos(theta*pi/180);5.2 MATLAB Functions Used 61 T(theta) – This function calculates the transformation matrix [T] given the angle “theta”. The orientation angle “theta” must be given in degrees. The returned matrix has size 3 × 3. Tinv(theta) – This function calculates the inverse of the transformation ma￾trix [T] given the angle “theta”. The orientation angle “theta” must be given in degrees. The returned matrix has size 3 × 3. Sbar (S,theta) – This function calculates the transformed reduced compliance matrix [S¯] for the lamina. Its input consists of two arguments representing the reduced compliance matrix [S] and the orientation angle “theta”. The returned matrix has size 3 × 3. Qbar (Q,theta) – This function calculates the transformed reduced stiffness matrix [Q¯] for the lamina. Its input consists of two arguments representing the reduced stiffness matrix [Q] and the orientation angle “theta”. The returned matrix has size 3 × 3. The following is a listing of the MATLAB source code for each function: function y = T(theta) %T This function returns the transformation matrix T % given the orientation angle "theta". % There is only one argument representing "theta" % The size of the matrix is 3 x 3. % The angle "theta" must be given in degrees. m = cos(theta*pi/180); n = sin(theta*pi/180); y = [m*m n*n 2*m*n ; n*n m*m -2*m*n ; -m*n m*n m*m-n*n]; function y = Tinv(theta) %Tinv This function returns the inverse of the % transformation matrix T % given the orientation angle "theta". % There is only one argument representing "theta" % The size of the matrix is 3 x 3. % The angle "theta" must be given in degrees. m = cos(theta*pi/180); n = sin(theta*pi/180); y = [m*m n*n -2*m*n ; n*n m*m 2*m*n ; m*n -m*n m*m-n*n]; function y = Sbar(S,theta) %Sbar This function returns the transformed reduced % compliance matrix "Sbar" given the reduced % compliance matrix S and the orientation % angle "theta". % There are two arguments representing S and "theta" % The size of the matrix is 3 x 3. % The angle "theta" must be given in degrees. m = cos(theta*pi/180);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有