0% found this document useful (0 votes)
264 views

Flowchart and Pseudo-Code (Assignment For FEA) Scribd

Those who are studying Finite Element Methods [FEM](especially for #mechanical Engineering students and don't know what is pseudo-code and how to develop a pseudo-code to develope a computer program for Mechanical Finite Element Analysis[FEA],, can take reference to this document. #helpforall #mechanics

Uploaded by

Sagan Preet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
264 views

Flowchart and Pseudo-Code (Assignment For FEA) Scribd

Those who are studying Finite Element Methods [FEM](especially for #mechanical Engineering students and don't know what is pseudo-code and how to develop a pseudo-code to develope a computer program for Mechanical Finite Element Analysis[FEA],, can take reference to this document. #helpforall #mechanics

Uploaded by

Sagan Preet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Suppose you are given the element alike below given figure, to be

analysed using Finite Element Methods (FEM). Then the procedure to


be followed to develop a generic program for any structure or element
like this is explained in this document.

This is a problem of truss element. We can solve trusses problem


analytically only upto few number of elements. As the number of
elements increase complexity increases. Also due to elements and nodes,
calculation of matrices gets messed up. In real life problems like this
one, we need to consider hundreds to millions of elements. Therefore it
becomes very difficult to manually solve and we need use of computers
to solve these problems by providing them initial input data and
constraints. For this, programs are to be developed which would process
the inputs provided by user and generate the required results as an
output.
A programmer may generate a program using the information given in
the flowchart and pseudo-code given in next pages.
Start

Synthesis input
data(materal properties)

Localization(Identification of
nodes,elements&connectivity etc.)

Allocate k,K,F,u
matrix array

Compute element
stiffnes matrix (k)

Assembly: use direct method


to add k to correct location in
Yes global matrix

More elements??

Apply force

Apply constraints(Boundary conditions)

Solve for displacement(u)

Result calculations
(forces,stresses,strains&reactions)

Show results

Pseudo-code
Stop
Inputs ; nodes, elements, material properties,
sections, loadings and boundary conditions

outputs ; nodal displacement u in global


coordinates

Pre-processing;

1. Parse input
2. Initialization of parameters and variables to
zero.
3. Assign each degree of freedom (DOF) a unique
identifier (NSC)

Processing;

4. recall element specific properties (length,


cross-section, material)
5. recall numerical integration points and their
weights wi
6. evaluate numerical integration of local
stiffness matrix and load vector:
7. evaluate local stiffness matrix [K]
8. evaluate local loading vector [F]
9. transform quantities from local to global
coordinate system
10. assemble structure stiffness matrix and
structure loading vector
11. Apply boundary conditions (BC)
12. Solve for displacement using [F]=[K][u]
Postprocessing

13. stress and strain


14. stress smoothing and error estimators
15. end

You might also like