setting up a matrix

how can i use matlab to setup a matrix and solve for all the unkowks of the truss below when F1= 435 and f2=521.

5 Comments

you need to set up a matrix of node locations etc, [x y x]
eg.
location_of_nodes = [3 4 0; % A
0 4 0; % B etc
... ]
you also need to state your element properties i.e. DoF , forces and their magnitude.
f1 = 435
f2 = 521
DoF = % whatever you set it as. should be given in the question
then you need to make an element connectivity matrix which sets which nodes are connected to what.
elem_connectivity = [ ...]
then you need to find the number of nodes and elements. and the number of DoF acting on the nodes.
you also need to define a force vector based on the number of DoF and becase you KNOW where the forces are acting and the direction you can easily do this. i.e.
force = [ 0 521 0 ... on node one.. this is not the case but this is an example.
there is a tutorial to questions like this and similar and youtube :) highly suggest watching @Matthew Lyon
you also need to set up a boundary conditions matrix which is where your truss is constrained and in the direction it is constrained in. i.e [ x, y, z]
then you should be able to apply you're mechanics knowledge and solve the question through matlab. i am going to assume this is an FEA course or a mechanics course. HIGHLY HIGHLY suggest watching the tutorials and seeking tutorials online!!!!
can you post the youtube link couldnt seem to find them
caroline bourn
caroline bourn on 11 Mar 2021
Edited: caroline bourn on 11 Mar 2021
look this up as well,
MATLAB - Plane Truss Element, it is a video by Kamran Yunus. i tried to post the link but mathworks marked it as spam

Sign in to comment.

Products

Tags

Asked:

on 11 Mar 2021

Answered:

on 11 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!