Struggling with 2D Heat Conduction in MATLAB: Need Suggestions

  • Thread starter Thread starter vlaa08
  • Start date Start date
  • Tags Tags
    Fea Matlab
AI Thread Summary
The discussion focuses on a user seeking help with developing a MATLAB code for 2D heat conduction using a Finite Element Method (FEM) for a 3-noded triangular element. The user has a 1D code and input format but struggles to adapt it for 2D, particularly with the required input format. They have attempted various modifications, including nested loops and checking input arrays, but need guidance rather than complete code. The urgency is emphasized due to an approaching deadline, and the user expresses a willingness to learn from the suggestions provided. Assistance in understanding the necessary code modifications is requested.
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
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top