6-Bar Elements in 2-D Space Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.

Slides:



Advertisements
Similar presentations
Finite Element Method CHAPTER 4: FEM FOR TRUSSES
Advertisements

AERSP 301 Finite Element Method
ME 520 Fundamentals of Finite Element Analysis
1. General introduction to finite element method
4. Spring Element Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical University.
Element Loads Strain and Stress 2D Analyses Structural Mechanics Displacement-based Formulations.
Basic FEA Procedures Structural Mechanics Displacement-based Formulations.
10. 3D Coordinate Operations Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze.
2. Review of Matrix Algebra Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
Beams and Frames.
Introduction to Finite Elements
LECTURE SERIES on STRUCTURAL OPTIMIZATION Thanh X. Nguyen Structural Mechanics Division National University of Civil Engineering
Some Ideas Behind Finite Element Analysis
By S Ziaei-Rad Mechanical Engineering Department, IUT.
8. 2D Coordinate Operations Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze.
Finite Element Primer for Engineers: Part 2
MECh300H Introduction to Finite Element Methods Finite Element Analysis (F.E.A.) of 1-D Problems – Applications.
FEA Simulations Usually based on energy minimum or virtual work Component of interest is divided into small parts – 1D elements for beam or truss structures.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Theory of Elasticity Theory of elasticity governs response – Symmetric stress & strain components Governing equations – Equilibrium equations (3) – Strain-displacement.
MESF593 Finite Element Methods HW #2 Solutions. Prob. #1 (25%) The element equations of a general tapered beam with a rectangular cross- section are given.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Introduction to Finite Element Analysis for Structure Design Dr. A. Sherif El-Gizawy.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
MANE 4240 & CIVL 4240 Introduction to Finite Elements
EMA 405 Introduction. Syllabus Textbook: none Prerequisites: EMA 214; 303, 304, or 306; EMA 202 or 221 Room: 2261 Engineering Hall Time: TR 11-12:15 Course.
Finite Element: Theory, Applications & Implementation Presented By: Arthur Anconetani Barbara Gault Ryan Whitney.
ME 520 Fundamentals of Finite Element Analysis
7-Bar Elements in 3-D Space Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
An introduction to the finite element method using MATLAB
Eng Ship Structures 1 Matrix Analysis Using MATLAB Example.
1 20-Oct-15 Last course Lecture plan and policies What is FEM? Brief history of the FEM Example of applications Discretization Example of FEM softwares.
The Finite Element Method A Practical Course
10-Beam Elements in 2-D Space (Plane Frame Element) Dr. Ahmet Zafer Şenalp Mechanical Engineering.
MECH593 Finite Element Methods
9-Beam Element with Axial Force Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
11/11/20151 Trusses. 11/11/20152 Element Formulation by Virtual Work u Use virtual work to derive element stiffness matrix based on assumed displacements.
THE ANALYSIS OF BEAMS & FRAMES
Illustration of FE algorithm on the example of 1D problem Problem: Stress and displacement analysis of a one-dimensional bar, loaded only by its own weight,
Lecture #11 Matrix methods.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Principles of Computer-Aided Design and Manufacturing Second Edition 2004 ISBN Author: Prof. Farid. Amirouche University of Illinois-Chicago.
12-Perspective Depth Assoc.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
11. Plastic Anisotropy Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
13-Linear Triangular Element Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
14-Quadratic Triangular Element Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
11-Beam Elements in 3-D Space (Space Frame Element)
ME 520 Fundamentals of Finite Element Analysis Assoc.Dr. Ahmet Zafer Şenalp Mechanical Engineering.
Finite Element: Theory, Applications & Implementation Presented By: Arthur Anconetani Barbara Gault Ryan Whitney.
6. Strain Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical University.
Matrix methods.
AAE 3521 AAE 352 Lecture 08 Matrix methods - Part 1 Matrix methods for structural analysis Reading Chapter 4.1 through 4.5.
Review Questions: Chapter 0 Given, calculate all the possible binary products of a, a T, b and b T What are the eigenvalues of the matrix ? Is it positive.
15-Bilinear Quadrilateral Element Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
HEAT TRANSFER Problems with FEM solution
1 CHAP 3 WEIGHTED RESIDUAL AND ENERGY METHOD FOR 1D PROBLEMS FINITE ELEMENT ANALYSIS AND DESIGN Nam-Ho Kim.
Structures Matrix Analysis
ME 520 Fundamentals of Finite Element Analysis
Introduction to Finite Elements
12. 3D Coordinate Operations
FEA convergence requirements.
Introduction to Finite Element Analysis for Skeletal Structures
FEM Steps (Displacement Method)
Structural Analysis II
DIRECT STIFFNESS METHOD FOR TRUSSES:
Plane Trusses (Initial notes are designed by Dr. Nazri Kamsah)
8-1 Introduction a) Plane Stress y
Structural Analysis II
ANALYSIS OF BEAM BY USING FEM
Presentation transcript:

6-Bar Elements in 2-D Space Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical University ME 520 Fundamentals of Finite Element Analysis

Bar (truss) structures: Bar Element ME 520 Dr. Ahmet Zafer Şenalp 2Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Cross section examples for bar structures

2-D Case ME 520 Dr. Ahmet Zafer Şenalp 3Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Transformation: In matrix form: 2-D Case ME 520 Dr. Ahmet Zafer Şenalp 4Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Transformation matrix: For the two nodes of the bar element, we have: The nodal forces are transformed in the same way: 2-D Case ME 520 Dr. Ahmet Zafer Şenalp 5Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

In the local coordinate system, we have: Using transformations: Multiplying both sides by T T and noticing that T T T = I, we obtain: Thus, the element stiffness matrix k in the global coordinate system is: which is a 4´4 symmetric matrix. Stiffness Matrix in the 2-D Space ME 520 Dr. Ahmet Zafer Şenalp 6Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Explicit form: Calculation of the directional cosines l and m: The structure stiffness matrix is assembled by using the element stiffness matrices in the usual way as in the 1-D case. Stiffness Matrix in the 2-D Space ME 520 Dr. Ahmet Zafer Şenalp 7Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Element Stress: Stiffness Matrix in the 2-D Space ME 520 Dr. Ahmet Zafer Şenalp 8Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Example 1 ME 520 Dr. Ahmet Zafer Şenalp 9Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Given; Element 1: E,A,L Element 2: E,A,L Find ; (a)displacement of node 2 (b)stress in each bar Solution: Connectivity table: E#N1N2Angle

Example 1 ME 520 Dr. Ahmet Zafer Şenalp 10Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Boundary conditions:  Displacement boundary conditions:  Force boundary conditions: a)Element Stiffness Matrices: In local coordinate systems, we have; These two matrices cannot be assembled together, because they are in different coordinate systems. We need to convert them to global coordinate system OXY.

Example 1 ME 520 Dr. Ahmet Zafer Şenalp 11Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Element 1: Element 2:

Example 1 ME 520 Dr. Ahmet Zafer Şenalp 12Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Assemble the structure FE equation: Applying the BC’s:

Example 1 ME 520 Dr. Ahmet Zafer Şenalp 13Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Stresses in the two bars: Check the results: Look for the equilibrium conditions, symmetry, antisymmetry, etc.

Solution procedure with matlab Solution procedure with matlab ME 520 Dr. Ahmet Zafer Şenalp 14Mechanical Engineering Department, GTU As plane truss element has 4 degrees of freedom (2 at each node) for a structure with n nodes, the global stiffness matrix K will be of size 2nx2n. The global stiffness matrix K is obtained by making calls to the Matlab function PlaneTrussAssemble which is written for this purpose. Once the global stiffness matrix; K is obtained we have the following structure equation; At this step boundary conditions are applied manually to the vectors U and F. Then the matrix equation is solved by partioning and Gaussion elimination. Finally once the unkown displacements and and reactions are found, the force is obtained for each element as follows: 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

ME 520 Dr. Ahmet Zafer Şenalp 15Mechanical Engineering Department, GTU where f is the force in this element (a scalar) and u is the 4x1 element displacement vector. The element stress is obtained by dividing the element force by the cross- sectional area A. If there is an inclined support at one of the nodes of the truss then the global stiffness matrix needs to be modified using the following equation: where [T] is a 2nx2n transformation matrix that is obtained by making a call to the function PlaneTrussInclinedSupport. Solution procedure with matlab Solution procedure with matlab 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

ME 520 Dr. Ahmet Zafer Şenalp 16Mechanical Engineering Department, GTU The inclined support is assumed to be at node i with an angle of inclination alpha as shown below The new matrix K0 obtained is thus the global stiffness matrix for the structure. Solution procedure with matlab Solution procedure with matlab 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 17Mechanical Engineering Department, GTU PlaneTrussElementLength(x1,y1,x2,y2) This function returns the length of the plane truss element whose first node has coordinates (x1,y1) and second node has coordinates (x2,y2). Function contents: function y = PlaneTrussElementLength(x1,y1,x2,y2) %PlaneTrussElementLength This function returns the length of the % plane truss element whose first node has % coordinates (x1,y1) and second node has % coordinates (x2,y2). y = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 18Mechanical Engineering Department, GTU PlaneTrussElementStiffness(E,A,L,theta) This function returns the element stiffness matrix for a plane truss element with modulus of elasticity E, cross-sectional area A, length L, and angle theta (in degrees). The size of the element stiffness matrix is 4 x 4. Function contents: function y = PlaneTrussElementStiffness(E,A,L, theta) %PlaneTrussElementStiffness This function returns the element % stiffness matrix for a plane truss % element with modulus of elasticity E, % cross-sectional area A, length L, and % angle theta (in degrees). % The size of the element stiffness % matrix is 4 x 4. x = theta*pi/180; C = cos(x); S = sin(x); y = E*A/L*[C*C C*S -C*C -C*S ; C*S S*S -C*S -S*S ; -C*C -C*S C*C C*S ; -C*S -S*S C*S S*S]; 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 19Mechanical Engineering Department, GTU PlaneTrussAssemble(K,k,i,j) This function assembles the element stiffness matrix k of the plane truss element with nodes i and j into the global stiffness matrix K. This function returns the global stiffness matrix K after the element stiffness matrix k is assembled. Function contents: function y = PlaneTrussAssemble(K,k,i,j) %PlaneTrussAssemble This function assembles the element stiffness % matrix k of the plane truss element with nodes % i and j into the global stiffness matrix K. % This function returns the global stiffness % matrix K after the element stiffness matrix % k is assembled. K(2*i-1,2*i-1) = K(2*i-1,2*i-1) + k(1,1); K(2*i-1,2*i) = K(2*i-1,2*i) + k(1,2); K(2*i-1,2*j-1) = K(2*i-1,2*j-1) + k(1,3); K(2*i-1,2*j) = K(2*i-1,2*j) + k(1,4); K(2*i,2*i-1) = K(2*i,2*i-1) + k(2,1); K(2*i,2*i) = K(2*i,2*i) + k(2,2); K(2*i,2*j-1) = K(2*i,2*j-1) + k(2,3); K(2*i,2*j) = K(2*i,2*j) + k(2,4); 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 20Mechanical Engineering Department, GTU K(2*j-1,2*i-1) = K(2*j-1,2*i-1) + k(3,1); K(2*j-1,2*i) = K(2*j-1,2*i) + k(3,2); K(2*j-1,2*j-1) = K(2*j-1,2*j-1) + k(3,3); K(2*j-1,2*j) = K(2*j-1,2*j) + k(3,4); K(2*j,2*i-1) = K(2*j,2*i-1) + k(4,1); K(2*j,2*i) = K(2*j,2*i) + k(4,2); K(2*j,2*j-1) = K(2*j,2*j-1) + k(4,3); K(2*j,2*j) = K(2*j,2*j) + k(4,4); y = K; 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 21Mechanical Engineering Department, GTU PlaneTrussElementForce(E,A,L,theta,u) This function returns the element force given the modulus of elasticity E, the cross-sectional area A, the length L, the angle theta (in degrees), and the element nodal displacement vector u. Function contents: function y = PlaneTrussElementForce(E,A,L,theta,u) %PlaneTrussElementForce This function returns the element force % given the modulus of elasticity E, the % cross-sectional area A, the length L, % the angle theta (in degrees), and the % element nodal displacement vector u. x = theta * pi/180; C = cos(x); S = sin(x); y = E*A/L*[-C -S C S]* u; 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 22Mechanical Engineering Department, GTU PlaneTrussElementStress(E,L,thetax,thetay,thetaz,u) This function returns the element stress given the modulus of elasticity E, the length L, the angles thetax, thetay, thetaz (in degrees), and the element nodal displacement vector u. It returns the element stress as a scalar. Function contents: function y = PlaneTrussElementStress(E,L,theta,u) %PlaneTrussElementStress This function returns the element stress % given the modulus of elasticity E, the % the length L, the angle theta (in % degrees), and the element nodal % displacement vector u. x = theta * pi/180; C = cos(x); S = sin(x); y = E/L*[-C -S C S]* u; 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Matlab functions used ME 520 Dr. Ahmet Zafer Şenalp 23Mechanical Engineering Department, GTU PlaneTrussInclinedSupport(T,i,alpha) This function calculates the transformation matrix T of the inclined support at node i with angle of inclination alpha (in degrees). Function contents: function y = PlaneTrussInclinedSupport(T,i,alpha) %PlaneTrussInclinedSupport This function calculates the % tranformation matrix T of the inclined % support at node i with angle of % inclination alpha (in degrees). x = alpha*pi/180; T(2*i-1,2*i-1) = cos(x); T(2*i-1,2*i) = sin(x); T(2*i,2*i-1) = -sin(x) ; T(2*i,2*i) = cos(x); y = T; 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 24Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Given; E=210 GPa A=1x10 -4 m 2 Find ; (a)global stiffness matrix of the structure (b) horizontal displacement at node 2 (c) horizontal and vertical displacements at node 3 (d) reactions at nodes 1 and 2 (a)stress in each element Solution: Use the 7 steps to solve the problem using space truss element.

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 25Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Step 1-Discretizing the domain: This problem is already discretized. The domain is subdivided into 3 elements and 3 nodes. The units used in Matlab calculations are kN and meter. The element connectivity is: E#N1N

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 26Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Step 2-Copying relevant files and starting Matlab Create a directory Copy PlaneTrussAssemble.m PlaneTrussElementForce.m PlaneTrussElementLength.m PlaneTrussElementStiffness.m PlaneTrussElementStress.m PlaneTrussInclinedSupport.m files under the created directory Open Matlab; Open ‘Set Path’ command and by using ‘Add Folder’ command add the current directory. Start solving the problem in Command Window: >>clearvars >>clc E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 27Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Enter the data >>E=210e6 >>A=1e-4 >>L1=4 >>L2=PlaneTrussElementLength(0,0,2,3) >>L3= PlaneTrussElementLength(4,0,2,3) Step 3-Writing the element stiffness matrices: >>k1=PlaneTrussElementStiffness(E,A,L1, 0) >>theta2=atan(3/2)*180/pi >>theta3=180-theta2 >>k2=PlaneTrussElementStiffness(E,A,L2, theta2) >>k3=PlaneTrussElementStiffness(E,A,L3, theta3) E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 28Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space yields; k2 = 1.0e+03 * k3 = 1.0e+03 * E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 29Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Step 4-Assembling the global stiffness matrix: Since the structure has 3 nodes the size of the global stiffness matrix is 6x6. So to find global stiffness matrix; >>K=zeros(6,6) >>K=PlaneTrussAssemble(K,k1,1,2) >>K=PlaneTrussAssemble(K,k2,1,3) >>K=PlaneTrussAssemble(K,k3,2,3) yields; K = 1.0e+03 * E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 30Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Step 5-Applying the boundary conditions: BCs are: E#N1N Given; E=210 GPa A=1x10 -4 m 2 Step 6-Solving the equations: Solving the above system of equations will be performed by partitioning (manually) and Gaussian elimination (with Matlab) First we partition the above equation;

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 31Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Given; E=210 GPa A=1x10 -4 m 2 >>k=[K(3,3) K(3,5) K(3,6); K(5,3) K(5,5) K(5,6); K(6,3) K(6,5) K(6,6)] >>f=[0; 5 ; -10] >>u=k\f u =

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 32Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Step 7-Post-processing: In this step we obtain the reactions and and the force in each element using Matlab as follows. First we set up the global nodal displacement vector U, then we calculate the nodal force vector F. >>U=[0 ; 0 ; u(1) ; 0; u(2:3)] yields; U = E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 33Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space >>F=K*U yields; F = E#N1N Given; E=210 GPa A=1x10 -4 m 2

Solution of Example 2 with Matlab ME 520 Dr. Ahmet Zafer Şenalp 34Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Form element displacement vector >>u1=[U(1) ; U(2) ; U(3) ; U(4)] >>u2=[U(1) ; U(2) ; U(5) ; U(6)] >>u3=[U(3) ; U(4) ; U(5) ; U(6)] To find stresses recall the below function subroutine >>sigma1=PlaneTrussElementStress(E,L1,0,u1) >>sigma2=PlaneTrussElementStress(E,L2,theta2,u2) >>sigma3=PlaneTrussElementStress(E,L3,theta3,u3) yields; sigma1 = e+04 sigma2 = e+04 sigma3 = e+05 E#N1N Given; E=210 GPa A=1x10 -4 m 2

ME 52035GYTE-Makine Mühendisliği Bölümü 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Given; Element 1 and 2: Element 3: Find; (a)displacements (b)reaction forces Solution: Connectivity table: E#N1N2Açı Example 3-Multipoint constraint

ME 520 Dr. Ahmet Zafer Şenalp 36Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Boundary conditions:  Displacement boundary conditions:  Force boundary conditions: a)Element Stiffness Matrices (In Global coordinate system): Element 1: E#N1N

Example 3-Multipoint constraint ME 520 Dr. Ahmet Zafer Şenalp 37Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Boundary conditions:  Displacement boundary conditions:  Force boundary conditions: a)Element Stiffness Matrices (In Global coordinate system): Element 1: E#N1N

Example 3-Multipoint constraint ME 520 Dr. Ahmet Zafer Şenalp 38Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Element 2: Element 3:

Example 3-Multipoint constraint ME 520 Dr. Ahmet Zafer Şenalp 39Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space The global FE equation is: BC’s:

Example 3-Multipoint constraint ME 520 Dr. Ahmet Zafer Şenalp 40Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Applying BC’s: Solving for unknowns:

Example 3-Multipoint constraint ME 520 Dr. Ahmet Zafer Şenalp 41Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space From the global FE equation, we can calculate the reaction forces: Check the results! A general multipoint constraint (MPC) can be described as, where A j ’s are constants and u j ’s are nodal displacement components. In the FE software, such as MSC/NASTRAN, users only need to specify this relation to the software. The software will take care of the solution.

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 42Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space Given: E=70 GPa A=0.004 m 2 Find: a)global stiffness matrix b)displacements at nodes 2, 3, and 4 c)reactions at nodes 1 and 4 d)stress in each element Solution: Connectivity table; E#N1N

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 43Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Create a directory Copy PlaneTrussAssemble.m PlaneTrussElementForce.m PlaneTrussElementLength.m PlaneTrussElementStiffness.m PlaneTrussElementStress.m PlaneTrussInclinedSupport.m files under the created directory Open Matlab; Open ‘Set Path’ command and by using ‘Add Folder’ command add the current directory. Start solving the problem in Command Window: >>clearvars >>clc

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 44Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Enter the data >>E=70e6 >>A=0.004 >>L1=3.5 >>theta1=90 >>L2=4 >>theta2=0 >>L3=PlaneTrussElementLength(0,0,4,3.5) >>theta3=atan(3.5/4)*180/pi >>L4= L3 >>theta4=360-theta3 >>L5=4 >>theta5=0 >>L6=3.5 >>theta6=270

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 45Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Calculate stiffness matrices; >>k1=PlaneTrussElementStiffness(E,A,L1, theta1) >>k2=PlaneTrussElementStiffness(E,A,L2, theta2) >>k3=PlaneTrussElementStiffness(E,A,L3, theta3) >>k4=PlaneTrussElementStiffness(E,A,L4, theta4) >>k5=PlaneTrussElementStiffness(E,A,L5, theta5) >>k6=PlaneTrussElementStiffness(E,A,L6, theta6) Assemble the global stiffness matrix; Since the structure has 4 nodes the size of the global stiffness matrix is 8x8. So to find global stiffness matrix; >>K=zeros(8,8) >>K=PlaneTrussAssemble(K,k1,1,2) >>K=PlaneTrussAssemble(K,k2,1,4) >>K=PlaneTrussAssemble(K,k3,1,3)

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 46Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N >>K=PlaneTrussAssemble(K,k4,2,4) >>K=PlaneTrussAssemble(K,k5,2,3) >>K=PlaneTrussAssemble(K,k6,3,4) yields; K = 1.0e+05 *

Next we need to modify the global stiffness matrix obtained above to take the effect of the inclined support at node 4. If there is an inclined support at one of the nodes of the truss (multipoint constraint) then the global stiffness matrix needs to be modified using the following equation: where [T] is a 2nx2n transformation matrix that is obtained by making a call to the function PlaneTrussInclinedSupport. Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 47Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 48Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N >>T=eye(8,8) results; T = >>T=PlaneTrussInclinedSupport(T,4,45)

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 49Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N yields; T = >>K0=T*K*T’ yields;

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 50Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N K0 = 1.0e+05 * Applying the BCs: FE equation is;

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 51Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N BCs are: Imposing BCs >>k=K0(3:7,3:7) yields; k = 1.0e+05 *

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 52Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N >>f=[0 ;0 ;30 ;0 ;0 ] >>u=k\f yields, u = 1.0e-03 *

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 53Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Post-processing; >>U=[0 ; 0 ; u ; 0] >>F=K0*U yields; F =

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 54Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N Stresses; >>u1=[U(1) ; U(2) ; U(3) ; U(4) ] >>sigma1=PlaneTrussElementStress(E,L1,theta1,u1) results; sigma1 = e+03 >>u2=[U(1) ; U(2) ; U(7) ; U(8) ] >>sigma2=PlaneTrussElementStress(E,L2,theta2,u2) results; sigma2 = e+03 >>u3=[U(1) ; U(2) ; U(5) ; U(6) ] >>sigma3=PlaneTrussElementStress(E,L3,theta3,u3) results; sigma3 = e+03

Solution of Example 4 (Multipoint constraint) with Matlab ME 520 Dr. Ahmet Zafer Şenalp 55Mechanical Engineering Department, GTU 6-Bar Elements in 2-D Space 6-Bar Elements in 2-D Space E#N1N >>u4=[U(3) ; U(4) ; U(7) ; U(8) ] >>sigma4=PlaneTrussElementStress(E,L4,theta4,u4) results; sigma4 = e+03 >>u5=[U(3) ; U(4) ; U(5) ; U(6) ] >>sigma5=PlaneTrussElementStress(E,L5,theta5,u5) results; sigma5 = e+03>>u6=[U(5) ; U(6) ; U(7) ; U(8) ] >>sigma6=PlaneTrussElementStress(E,L6,theta6,u6) results; sigma6 = e+03