5 views

Uploaded by Manu Chakkingal

- 2 D Elements(1)
- rr311403-finite-element-method
- Study the Effects of Seismic and Wind Loads on Hyperbolic Cooling Tower
- ACI 207.2R-07
- MHTCET Tricks
- LaTeX Cheat Sheet
- Evaluación de la calidad de software empleando decisión Multicriterio basado en los números de SVN
- 07a51402-Finite Element Methods
- Assign 6
- lecturenotes6.pptx
- (Applied Mathematics_ Body and Soul) Kenneth Eriksson, Donald Estep, Claes Johnson-Applied Mathematics Body and Soul, Volume 1_ Derivatives and Geometry in R3-Springer (2003)
- A Guide to Track Stiffness Final Reviewr11
- White Paper Meshing in Td
- 9 Process Layout.....
- Portal Method
- Dynamics of Offshore Structures_Chapter6_Structural Response
- Bio Info
- Bourguingon
- Craft
- Beam1

You are on page 1of 5

H:\lab2.m

1 of 2

%%AML 705 FEM LAB SHEET 2 QUESTION 1 %% SUBMITTED BY MANU.C(2012AME2625),VIKAS DWIVEDI(2012AME2624) %% For solving 1d deformation of a bar loaded by point forces

clear all clc format compact % compact view in the command window %input finp=fopen('AB.txt','r'); %opens input file E=fscanf(finp,'%e',1); %input Young's modulus L=fscanf(finp,'%e',1);%input length A=fscanf(finp,'%e',1);%C.S area of the bar present case being constant area ne=fscanf(finp,'%e',1);%input number of finite elements being considered ele_con(:,1)=fscanf(finp,'%e',ne);%ele_con being the matrix containing the details of the nodes of elements being connected ele_con(:,2)=fscanf(finp,'%e',ne); %% %element level requirements n=ne+1; % no. of nodes a=L/ne;% length of each element k= element(E,A,a); %% global stiffness matrix using ele_con K=zeros(n,n); %K is symmetric,banded,nxn for 1d bar problem with the order of connectivity being considered for i=1:ne for j=1:2 for z=1:2 l=ele_con(i,j); r=ele_con(i,z); %loop to obtain Global stiffness matrix from local stiffnes matrix as per the connectivity constraints K(l,r)=K(l,r)+k(j,z); end end end disp('Global stifness Matrix'); K %% %Force matrix tot_F=zeros(n,1);%intialisation global force matrix fnn=fscanf(finp,'%e',1);%total no of nodes being subjected to forces for i =1:fnn fn(i)=fscanf(finp,'%e',1);%vector of nodes being subjected to forces end tot_F(fn)=fscanf(finp','%e',fnn); %% %displacement matrix

8/16/13 5:03 AM

H:\lab2.m

2 of 2

u=zeros(n,1);%initialisation of global diplacement matrix unn=fscanf(finp,'%e',1);%total no of nodes with given displacement for i =1:unn ebc_node(i)=fscanf(finp,'%e',1);%vector of nodes with given displacement end u(ebc_node,1)=fscanf(finp,'%e',unn); %% %Processing and output activeDof=setdiff([1:n]',[ebc_node]); %nodes with unknown displacement for j=1:length(ebc_node) tot_F(1:n)=tot_F(1:n)-K(:,ebc_node(j)).*u(ebc_node(j)) %force matrix manupulation with 'ku' components known end disp=K(activeDof,activeDof)\tot_F(activeDof); %calculation unknown displacements displ_new=zeros(n,1); displ_new(activeDof)=disp; F=K*displ_new; reactions=F(ebc_node); jj=1:n; fprintf('displacement each node in mm\n ' ) fprintf('%e \n ',displ_new) fprintf('forces at each node in N \n ' ) fprintf('%f \n ',F) fout1=fopen('displacement_force.dat','wt'); for i=1:n fprintf(fout1,'%15.6e',displ_new(i)); fprintf(fout1,'\n'); end fprintf(fout1,'\n'); for i=1:n fprintf(fout1,'%15.6e',F (i)); fprintf(fout1,'\n'); end fprintf(fout1,'\n'); fclose(finp); fclose(fout1); %%

8/16/13 5:03 AM

H:\element.m

1 of 1

AB

Page 1

0.000000e+000 1.000000e-002 2.000000e-002 3.000000e-002 4.000000e-002 -3.000000e+003 0.000000e+000 -1.818989e-012 0.000000e+000 3.000000e+003

displacement_force

Page 1

- 2 D Elements(1)Uploaded bypraneeth4a
- rr311403-finite-element-methodUploaded bySRINIVASA RAO GANTA
- Study the Effects of Seismic and Wind Loads on Hyperbolic Cooling TowerUploaded byRkkodi
- ACI 207.2R-07Uploaded byRonald Millán Gonzales
- MHTCET TricksUploaded bynichas
- LaTeX Cheat SheetUploaded byTanuj Bhojwani
- Evaluación de la calidad de software empleando decisión Multicriterio basado en los números de SVNUploaded byAnonymous 0U9j6BLllB
- 07a51402-Finite Element MethodsUploaded bywebs6000
- Assign 6Uploaded byArXlan Xahir
- lecturenotes6.pptxUploaded byKevin Paxson
- (Applied Mathematics_ Body and Soul) Kenneth Eriksson, Donald Estep, Claes Johnson-Applied Mathematics Body and Soul, Volume 1_ Derivatives and Geometry in R3-Springer (2003)Uploaded bylig
- A Guide to Track Stiffness Final Reviewr11Uploaded by4493464
- White Paper Meshing in TdUploaded byRaturi Deepankar
- 9 Process Layout.....Uploaded byMuhammad Syaltut
- Portal MethodUploaded byAditi Bhardwaj
- Dynamics of Offshore Structures_Chapter6_Structural ResponseUploaded bydavid gomeztagle
- Bio InfoUploaded byKeny Orlando M. Cano
- BourguingonUploaded byFrancisco Javier González Alvarado
- CraftUploaded byImamMukhri
- Beam1Uploaded byGandhi Hammoud
- MATLABUploaded bysoumikbh
- OR_ch7Uploaded byKavi Yarasi
- Back Analysis Procedures for the Interpretation OfUploaded byRakesh
- For LanaUploaded byPaul Costigan
- Ch02_Environment_3rd_ed.pptUploaded bySoso Qe'war
- Seismic Loads 2Uploaded byCarl Agomaa
- nc10Uploaded byHamid Rehman
- Prm Deped OrmdoUploaded bynestor m. manongsong
- <HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT="0;URL=http://www.scribd.com/titlecleaner/?title=calculation%20of%20magnetic.pdf"></HEAD><BODY> </BODY></HTML>Uploaded byBincon
- r5311902 Computer GraphicsUploaded bysivabharathamurthy

- Cricket Practical ExamUploaded byAnonymous D8oJfxsng
- Dissipation FunctionUploaded byManu Chakkingal
- Vssc 1359 Mtech ChemUploaded byManu Chakkingal
- Order ReceiptUploaded byManu Chakkingal
- Regulation-of-Hate-Speech-and-Pornography-after-RAV.pdfUploaded byManu Chakkingal
- PDENG_swinkelsUploaded byManu Chakkingal
- Lecture 04Uploaded byManu Chakkingal
- Press ReleaseUploaded bySunil Dewangan
- Hm Least Square FitUploaded byManu Chakkingal
- V Riend 1981Uploaded byManu Chakkingal
- epfl_LESUploaded byManu Chakkingal
- Epfl MathsUploaded byManu Chakkingal
- lec2Uploaded byManu Chakkingal
- lec1Uploaded byManu Chakkingal
- LNm8Uploaded bykanhiya
- CFD-1Uploaded byasutaha123
- CA March 2013 Question AnswersUploaded byGangadri524
- turbltUploaded bynishith316
- ClickCharts Diagram Flowchart Software PrintingUploaded byManu Chakkingal
- RedBus TicketUploaded byManu Chakkingal
- PTEC-ICEM CFD 14.5 Tutorial Files.pdfUploaded byDragos Pastrav
- MIT2_29F11_lect_13Uploaded byManu Chakkingal
- Derivative From PolyUploaded byManu Chakkingal
- Tutorial LES 2010 MeneveauUploaded byManu Chakkingal
- 3d taylorUploaded byManu Chakkingal
- ConvectionDiffusion[1]Uploaded bySadiq Sarfaraz
- TKAIXRHA4XGXSFUWKIHX2W_IITD_CRSEOFF.pdfUploaded byManu Chakkingal
- escorting_skills.pdfUploaded byManu Chakkingal
- 914-3689-1-PB.pdfUploaded bynidhul07

- MHD56251_ed4Uploaded byjinyuan74
- Rhetorical Analysis: "Lake Melvern"Uploaded byswashlesky
- poetryUploaded byMary Joyce Villegas Raymundo
- Guide ExhibitUploaded byMaria Patricia Lisandra
- Types of Vaccines.docxUploaded byhaddi awan
- biobliography copyUploaded byjackelinev51
- Receta GatimiUploaded byelodoni
- LACCD Policies and Procedures Ver2.0.pdfUploaded byCarlos
- Casava n BananaUploaded bySirma Reuben
- 3. Drainage - Junctions in DrainsUploaded bymeeng2014
- Maternal Benefits of BreastfeedingUploaded byJuliana Andres
- Chilled Beam Modeled in eQUESTUploaded bylayziness_killsyahoo
- Mit15 s50iap15 l1 Intro Poker CourseUploaded bypietrot
- NP 082 04 Actiunea VantuluiUploaded bybebi66
- Immunology Final Study Guide1Uploaded byTaman Hoang
- Water TreatmentUploaded byDaisy
- Service Sharp MX-M266NUploaded byJg Vplata
- Analytical studies of fronts, colonies, and patterns- Combination of the Allee effect and nonlocal competition interactions.pdfUploaded byMati Ger
- 52-4_3_hilliard.pdfUploaded bythuyb2608
- Chapter 12 - Religion and Reform, 1820-1860Uploaded byhc_aeng1
- Banking System in IndiaUploaded byVelde Nagaraju
- rs_encoder_decoder.pdfUploaded byRegina Pitts
- Tata MotorsUploaded byManoranjan Mallick
- How_to_build_an_electric_switch_cabinet_fragments.pdfUploaded byvizantea
- 6713 Welding AbstractsUploaded byfelix1234567
- FlymasterB1nav Manual en v1.5aUploaded bysuganthsutha
- Law Student Tawny Holmes Chosen for Board of National Association of the DeafUploaded byLawCrossing
- Medco EnergiUploaded bysugiantobarus
- Presentation on EntertainmentUploaded bysamtheman_9618
- Shewangizaw Wegayehu Manuscript.pdfUploaded byanon_940929067