Anda di halaman 1dari 4

# 2/5/2017 HowtoassemblethematrixofFiniteElementMethodautomaticallywithaprogram,whenweknowthecoordinatesofallthenodesofthemesh?

Resear

## Search for publications, researchers, or questions or Discover by subject

Joinarea

Touhami Baki
Universit des Sciences et de la Technologie d'Oran Moha... Question followers (19) See all

## How to assemble the matrix of Finite Element Method automatically

with a program, when we know the coordinates of all the nodes of
the mesh?
Similar Questions
Do we have to use Finite Element Method, and search for a programme to assemble What is the best open source nite element software
the stiffness matrix? for mechanical problems?
Topics

## Finite Element Method What is the difference between essential boundary

conditions and natural boundary conditions?
Sep 19, 2013
Recommend 2 Recommendations
how can I import or use .inp les in abaqus to view the
results?
Why is plane stress given for thin plates and plain
C. Martn Saravia National Scientic and Technical Research Council strain conditions given for thick plates?

It is not enough to know the coordinates of the nodes... you should 25 answers added
specify the element stifness matrix in order to be able to assemble the
What is the difference between strong form and weak
global stiffness matrix.
form?

The assembly algorithm for the FEM looks something like this: 9 answers added
for i=1:ldof
ii=gdof(i);
for j=1:ldof
jj=gdof(j);
Views 19524
M(ii,jj) = m(i,j) + M(ii,jj);
K(ii,jj) = kt(i,j) + K(ii,jj);
Followers 19
end
end

## gdof is a vector that contains the global degrees of freedom of the

element and ldof is a vector that contains the local degrees of freedom of
the element.
Sep 20, 2013 Recommend 1 Recommendation

## Hojjat Badnava Isfahan University of Technology

You need element connectivity, number of DOFs per node, number of
nodes per element, number of elements and element stiffness matrix

## somthing like this:

neln = number of nodes per element
ndof = number of DOFs per node
el_stif = current element stiffness matrix
Got a question
nelem you
= number of need answered quickly?
elements
gStif=global stiffness matrix 11+ million scientic professionals.
Technical questions like the one you've just found usually get answered
for elmn = 1:nelem
within ( Loop
48 hours over all the elements)

for a = 1:neln

https://www.researchgate.net/post/How_to_assemble_the_matrix_of_Finite_Element_Method_automatically_with_a_program_when_we_know_the_coordinates 1/4
2/5/2017 HowtoassemblethematrixofFiniteElementMethodautomaticallywithaprogram,whenweknowthecoordinatesofallthenodesofthemesh?Resear
for i = 1:ndof
for b = 1:neln
for k = 1:ndof
rw = ndof*(connect(a,elmn )-1)+i;
cl = ndof*(connect(b,elmn )-1)+k;
gStif(rw,cl) = gStif(rw,cl) + el_stif(ndof*(a-1)+i,ndof*(b-1)+k);
end
end
end
end

end
Sep 21, 2013 Recommend 1 Recommendation

## Hojjat Badnava Isfahan University of Technology

connect = element connectivity
connect(i,j)=List of nodes on the jth element

## Follow the bellow link to nd a good example with Matlab:

http://solidmechanics.org/FEA.htm
Sep 21, 2013 Recommend

## Dr.O.P. Gupta Indian Institute of Technology Kharagpur

Several points are to be claried before the question can be answered
fully. However, if the questioner is less conversant with FEM than FDM,
following may provide some explanation. In FDM nodes are regularly
spaced in square grid, the difference equation for a particular phenomena
is written at a node and applied to all the nodes for nal solution. Thus
nodal coordinates are sufcient for solution. FEM is a more powerful
technique and it is different from FDM in following respect.
1. First domain is to be divided in elements (simplest is triangle with 3
nodes at corners). Besides supplying nodal coordinated the nodes
associated with elements are to be specied (nodal connectivity). This is
mesh generation (programs are available for this).
2. The governing equation of the physical phenomena under study (i.e.
stress analysis, heat conduction, uid ow etc.) is to be satised in the
element, which results in generation of elemental stiffness matrix. Such
stiffness matrices from all elements are assembled to form overall
stiffness matrix, which is then solved to obtain parameter of interest
(such as temperature) at all nodes. Some very efcient techniques have
been developed to solve such huge matrices.
3. The colour plots of results are obtained for better visual presentation.
4. The above 3 steps are called PREPROCESSOR, SOLUTION and POST
PROCESSOR.
Although one can develop his own program to perform all these steps,
such efforts are far more difcult here than in FDM. Generally commercial
packages, such as ANSYS, Nastran, Abaqus etc. or open source free
packages (like ELMER) are available and can be used for all three stages
stated above, even for very complex problems.
Sep 29, 2013 Recommend 1 Recommendation

Got a question
Faizan youInstitute
Dear Touhami Sir, 11+ million scientic professionals.
Technical questions like the one you've just found usually get answered
Please refer this book . you will nd many FEA codes written in Matlab
codes within 48 hours
to assemble on ResearchGate.
matrix.

https://www.researchgate.net/post/How_to_assemble_the_matrix_of_Finite_Element_Method_automatically_with_a_program_when_we_know_the_coordinates 2/4
2/5/2017 HowtoassemblethematrixofFiniteElementMethodautomaticallywithaprogram,whenweknowthecoordinatesofallthenodesofthemesh?Resear

## Introduction to Finite Element Analysis Using MATLAB and Abaqus

Oct 10, 2013 Recommend

## Ariadne Tsambani Aristotle University of Thessaloniki

Good Evening.You should try to visit the sites:
1-
http://www.ewp.rpi.edu/hartford/users/papers/engr/ernesto/hillb2/MEP/
Other/Articles/MeshingGuide.pdf
Jan 3, 2014 Recommend

## Touhami Baki Universit des Sciences et de la Technologie d'Oran

Mohamed Boudiaf
Jan 7, 2014 Recommend

## Abdullah Waseem Ecole Centrale de Nantes

connectivity array for assembling element matrix into global matrix is as
follows

## K((i-1)*(nn-1)+k,(i-1)*(nn-1)+l) = K((i-1)*(nn-1)+k,(i-1)*(nn-1)+l) + Ke(k,l);

where,
K=global stiffness matrix
Ke= element stiffness matrix
i=element loop
nn=no of nodes
k=element node number
l=element node number
Jan 9, 2014 Recommend 1 Recommendation

## Lee Margetts The University of Manchester

The 5th edition of "Programming the Finite Element Method", Wiley, 2014
describes a range of assembly algorithms using different storage
strategies in Chapter 3. The book provides Fortran source code along with
the explanatory materials. The source code is quite compact and easy to
read. It is fairly straightforward to manually rewrite the code in Matlab
format. See http://tinyurl.com/o27v6s2 for a link to a description of the
book. Perhaps your University library can source a copy for you?
Jan 9, 2014 Recommend

## Saeed Bonakdar Petroleum University of Technology

I have the same problem, but I didn't understand the "connect" matrix !!

## Jul 27, 2014 Recommend 1 Recommendation

Hojjat Badnava Isfahan University of Technology 11+ million scientic professionals.
Technical
The element questionsislike
connectivity theofone
a set you've
data just found
associated to anusually
elementgetthat
withinwhich
determines 48 hours on(or
nodes ResearchGate.

https://www.researchgate.net/post/How_to_assemble_the_matrix_of_Finite_Element_Method_automatically_with_a_program_when_we_know_the_coordinates 3/4
2/5/2017 HowtoassemblethematrixofFiniteElementMethodautomaticallywithaprogram,whenweknowthecoordinatesofallthenodesofthemesh?Resear
formed by moving about the element counter-clockwise and registering
the node numbers as they are met.

reference:

www.springerreference.com/docs/html/chapterdbid/66710.html

## Atilio Morillo University of Zulia

I suggest you to consult somelecture notes like, for example, Dr Cuneyt
Sert, in his course ME 582 about nite element method. It is achievable
http://users.metu.edu.tr/csert/me582/ME582%20Ch%2002.pdf

Good luck,

Atilio M