Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In a database table, the data about an individual student is stored in a single: table. field. row. column. SAMPLE INPUT FILE - the coordinates
In a database table, the data about an individual student is stored in a single: table. field. row. column.
SAMPLE INPUT FILE
the coordinates of the nodes in order:
Programming Project
DESCRIPTION
Each individual student is responsible for writing an FEA code using any programming language. Your code
must be able to analyze any D truss with any number of nodes, homogeneous essential boundary conditions in
and directions, and nodal forces. The input of your code will be a text file or a spreadsheet containing all the
necessary information to fully define the problem an example input file is attached Your code will read the
input, assemble the global stiffness matrix, apply the boundary conditions, calculate the results nodal
displacement, reaction forces, and stresses and plot the original and deformed truss. You are not allowed to
intervene the solution process eg by entering or modifying a matrix at any point. The code must take the input,
process it and generate the results on its own.
You should write functions to fulfill each task and call these functions in a script called main. A sample main
script is provided below words in red are finctions you should write on your own:
fopenC:Users Dropbox truss inputs.txt;
sthis statement opens the input.txt file.
nnodes,melAErho,displacement,forces inputsI;
this statement reads the data from input file and stores them as appropriate variables.
GKelements assemblcpodeselnmFA;
Sthis statement generates GK the Global matrix and clements a matrix containing
sthe coordinates of the first and the last node of cach element
loads loadingmArho,nel forces;
Osthis statement calculates all the external forces
fdisplacementtotEstress solvingdisplacementGKnlosds.mslements.Eel;
this statement solves the problem and calculates the results including the
nodal displacement, reaction forces and stresses
results showingelementsn displacement,nodes,forces,mfdisplacement,stress,totF;
Sthis statement shows the drawings and the results"
PROBLEMS
Once you are sure your code works properly, select and
solve one problem on your own AND the following
problem use GPa, and for this
problem As mentioned above, your code must calculate
all the nodal displacements, reaction forces, and stresses. It
must also plot the original and deformed truss.
DELIVERABLES
Upload your report as a pdf file AND your codes as a compressed folder zip or far The report can have any
number of pages and will include an explanation of how your code works and the results of the two problems
mentioned above.
NOTE
There are many finite element codes available on the internet. While I recommend ignoring them and starting
from scratch, you are allowed to download them and learn from them. However, you must write each and every
line of your final code. I will randomly choose a few students to meet with me and answer my questions about
their code. I might also give them a new example problem and ask them to solve it in front of me I hope you
enjoy this programming experience and learn how a finite element code actually works
the numbers of those nodes that an element is defined between them:
the areas of the elements in order:
e
e
e
e
e
e
e
the Youngs modules of the elements in order:
e
e
e
e
e
e
e
the displacement BCs of the nodes in order if not constrained write: :
the external forces of the nodes in order:
e
e
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started