Struggling with 2D Heat Conduction in MATLAB: Need Suggestions

  • Thread starter Thread starter vlaa08
  • Start date Start date
  • Tags Tags
    Fea Matlab
Click For Summary
SUMMARY

The discussion centers on developing a MATLAB code for 2D heat conduction using a 3-noded triangular element with the Finite Element Method (FEM). The user, Vlaa, is transitioning from a 1D code and is struggling to adapt the input format for a new dataset provided in a file named Required.txt. Key suggestions include modifying loops for 2D processing and ensuring proper indexing in the input arrays. The urgency of the task is emphasized due to an impending deadline.

PREREQUISITES
  • Understanding of MATLAB programming
  • Familiarity with Finite Element Method (FEM)
  • Knowledge of 2D heat conduction principles
  • Ability to manipulate data input formats in MATLAB
NEXT STEPS
  • Research how to implement 2D arrays in MATLAB
  • Learn about MATLAB's mesh generation for triangular elements
  • Explore MATLAB functions for reading and processing .dat files
  • Study examples of 2D heat conduction simulations in MATLAB
USEFUL FOR

Students and researchers in engineering, particularly those focusing on thermal analysis and numerical methods using MATLAB.

vlaa08
Messages
2
Reaction score
0
FEA MATLAB ! Please help...

Hello Everyone!

I need an urgent favor. I am new to MATLAB, I am in the learning stage. I am given with a coursework relating to developing a MATLAB code for 2D heat conduction of 3-noded triangular element with Finite element method. I have been given with a model 1D code and corresponding input format[.dat] file to feed input from. The trouble is i am asked to develop the code for a set of input[which i have attached with this post named Required.txt] which is to be fed in for the program to work with the given input. I can understand the 1D code, but i am not able to stick to the format of input he is expecting.. So if any of you can help me in editing the given 1D code into corresponding 2D code, it would be a great help.. I m closing on my deadline and this counts my percentage.. So if any of you can sort this for me, it would be of great contribution, i can study n understand this later because i still have more than 40 days for my exam.. Please help. greatly appreciated..

Thanks in advance..
Vlaa..
 

Attachments

Physics news on Phys.org


vlaa08 said:
Hello Everyone!

I need an urgent favor. I am new to MATLAB, I am in the learning stage. I am given with a coursework relating to developing a MATLAB code for 2D heat conduction of 3-noded triangular element with Finite element method. I have been given with a model 1D code and corresponding input format[.dat] file to feed input from. The trouble is i am asked to develop the code for a set of input[which i have attached with this post named Required.txt] which is to be fed in for the program to work with the given input. I can understand the 1D code, but i am not able to stick to the format of input he is expecting.. So if any of you can help me in editing the given 1D code into corresponding 2D code, it would be a great help.. I m closing on my deadline and this counts my percentage.. So if any of you can sort this for me, it would be of great contribution, i can study n understand this later because i still have more than 40 days for my exam.. Please help. greatly appreciated..

Thanks in advance..
Vlaa..

We don't do your homework for you here on the PF. What are your thoughts on how to modify the code to work in 2-D?
 


Hey thanks for the reply,

I do not want you guys to write the code for me, i just want suggestions on where to comply with the code. Ideas which i have tried

Modifying the loop for 2 D by having a loop within a loop
Checking the input with and additional index in the array
Trying out with different input file

If you can guide me, it will be enough and still be a great favor..

Regards
Vlaa
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 18 ·
Replies
18
Views
11K
Replies
1
Views
3K