Converting 2D Finite Element Code to 1D in MATLAB: Experience and Help Needed

AI Thread Summary
The discussion revolves around converting a 2D finite element code for a simply supported beam into a 1D format using MATLAB. The original poster seeks assistance, mentioning they have limited time and are new to MATLAB. A suggestion is made to simplify the 2D code by treating the second dimension as a constant, effectively reducing it to 1D. There is also a mention of needing to adjust the stiffness matrix and boundary conditions accordingly. The urgency of the request highlights the need for quick guidance or a code solution.
dede111
Messages
5
Reaction score
0
I need to convert a 2D code to 1D for a simply supported beam using matlab.
Does anyone have any experience regarding to this?
 
Physics news on Phys.org
what exactly are you trying to do? I am not too clear...
 
I have a code for a simply supported beam in 2D which needs to be converted to 1D

More info in the attachments
 

Attachments

  • simply supported beam.jpg
    simply supported beam.jpg
    4.4 KB · Views: 438
Last edited by a moderator:
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.
 

Attachments

I'm not going to open your files, but why not just use the 2D code, and make the second dimension one?
 
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
 
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.
 
At school I heared a stiffness matrix should be inserted and the boundary conditions and dispvalues should be different?
 
i need a code for solving 2D frame in MATLAB , pleasezzz help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 
Back
Top