# Finite elements in matlab

by dede111
Tags: elements, finite, matlab
 P: 5 I need to convert a 2D code to 1D for a simply supported beam using matlab. Does anyone have any experience regarding to this?
 P: 145 what exactly are you trying to do? Im not too clear...
 P: 5 I have a code for a simply supported beam in 2D which needs to be converted to 1D More info in the attachments Attached Thumbnails
P: 5
Finite elements in matlab

Here's the main file, dispvalues and boundary conditions of the 2D programs which need to be converted to 1D

The beam has been posted above.

Hoping for a quick reaction, I only have a few days left.
Attached Files
 main.m (2.3 KB, 33 views) boundary.m (626 Bytes, 21 views) dispvalues.m (1.7 KB, 13 views)
 Sci Advisor P: 1,498 I'm not going to open your files, but why not just use the 2D code, and make the second dimension one?
 P: 5 I don't have any experience using matlab, I just got enrolled in this class, cause I followed other classes at the same time, which are finished now
 Sci Advisor P: 1,498 Well, at some point there should be a file that contains loads and constants, etc. If the code is 2D, which I am really, really assuming that it's quasi-2D, meaning that it treats the second dimension as just a thickness; a constant. Basically, just set the beam depth, to 1. 1 whatever units you're using. Then, the load gets multiplied by 1, and the stresses get divided by 1. Your answer will be the same as if it were 1D.
 P: 5 At school I heared a stiffness matrix should be inserted and the boundary conditions and dispvalues should be different?
 P: 1 i need a code for solving 2D frame in matlab , plzzzz help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

 Related Discussions Calculus & Beyond Homework 0 Engineering, Comp Sci, & Technology Homework 2 Programming & Computer Science 4 General Engineering 0