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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
8 replies · 4K views
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: 472
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 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