Answered step by step
Verified Expert Solution
Link Copied!

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 2D truss with any number of nodes, homogeneous essential boundary conditions in x
and y 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 (e.g., 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):
?TTI= fopen('C:\Users \Dropbox ??FEM?? truss ??? inputs.txt');
%sthis statement opens the input.txt file.
[n.nodes,m,el.A,Erho,displacement,forces]= inputs(I);
%this statement reads the data from input file and stores them as appropriate variables.
[GK,elements]= assemblc(podes,el.n,m,F,A);
Sthis statement generates GK (the Global K matrix) and clements (a matrix containing
%sthe coordinates of the first and the last node of cach element)
[loads]= loading(m,1.A,rho,n,el,5, forces);
Osthis statement calculates all the external forces
[fdisplacement.totEstress]= solving(displacement,GK.n.losds.m,slements.E.,el);
%this statement solves the problem and calculates the results including the
%nodal displacement, reaction forces and stresses
[results]= showing(elements,n, displacement,nodes,forces,m,fdisplacement,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 E=70GPa, and A=0.003125m2 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.00
0.50.8660254
10
1.50.8660254
20
- the numbers of those nodes that an element is defined between them:
12
23
13
24
34
35
45
- the areas of the elements in order:
2e-4
2e-4
2e-4
2e-4
2e-4
2e-4
2e-4
- the Youngs modules of the elements in order:
200e9
200e9
200e9
200e9
200e9
200e9
200e9
- the displacement BCs of the nodes in order (if not constrained write: 1):
1
0
1
1
0
0
1
1
1
0
- the external forces of the nodes in order:
0
0
0
-200e3
0
0
100e3
0
0
0
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

1 Why might people resist change?

Answered: 1 week ago