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

Click For Summary

Discussion Overview

The discussion revolves around the conversion of a 2D finite element code for a simply supported beam into a 1D format using MATLAB. Participants seek and offer advice on the technical aspects of this conversion process, including code structure and necessary modifications.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant requests assistance in converting a 2D code to 1D for a simply supported beam.
  • Another participant seeks clarification on the specifics of the conversion task.
  • A participant mentions having the necessary files for the 2D program that need conversion.
  • One suggestion is made to simply adjust the 2D code by treating the second dimension as a constant, effectively reducing it to 1D.
  • A participant expresses a lack of experience with MATLAB and indicates they are new to the class.
  • There is a mention of the need for a stiffness matrix and adjustments to boundary conditions and displacement values in the conversion process.
  • A separate request for help with a 2D frame code in MATLAB is also made, indicating a broader interest in MATLAB coding assistance.

Areas of Agreement / Disagreement

The discussion contains multiple competing views on how to approach the conversion, with no consensus reached on the best method or whether the proposed solutions are sufficient.

Contextual Notes

Participants express varying levels of familiarity with MATLAB and finite element methods, which may affect the quality and applicability of the advice given. There are also unresolved questions regarding the specific requirements for the conversion process.

Who May Find This Useful

Individuals interested in finite element analysis, MATLAB programming, and those working on similar conversion tasks in engineering or physics contexts may find this discussion relevant.

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: 460
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
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
4K