# Homework Help: Finite elements in matlab

1. Apr 9, 2009

### dede111

I need to convert a 2D code to 1D for a simply supported beam using matlab.
Does anyone have any experience regarding to this?

2. Apr 13, 2009

### swraman

what exactly are you trying to do? Im not too clear...

3. Apr 13, 2009

### dede111

I have a code for a simply supported beam in 2D which needs to be converted to 1D

#### Attached Files:

• ###### simply supported beam.jpg
File size:
4.4 KB
Views:
121
Last edited by a moderator: Apr 13, 2009
4. Apr 15, 2009

### dede111

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:

File size:
2.3 KB
Views:
85
File size:
626 bytes
Views:
71
• ###### dispvalues.m
File size:
1.7 KB
Views:
47
5. Apr 15, 2009

### minger

I'm not going to open your files, but why not just use the 2D code, and make the second dimension one?

6. Apr 15, 2009

### dede111

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

7. Apr 15, 2009

### minger

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.

8. Apr 15, 2009

### dede111

At school I heared a stiffness matrix should be inserted and the boundary conditions and dispvalues should be different?

9. Jan 11, 2010

### sinohe78

i need a code for solving 2D frame in matlab , plzzzz help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee