Heat flux equation coding

8 views (last 30 days)
Nour
Nour on 28 Jul 2023
Commented: Torsten on 29 Jul 2023
Hi
Can you please help me code a 1-D heat flux equation q =- k(dT/dR).
I have a tabulated data of both T and R values.
Thank you in advance

Answers (1)

Walter Roberson
Walter Roberson on 28 Jul 2023
[sorted_t, idx] = sort(T);
sorted_R = R(idx);
gr = gradient(sorted_t, sorted_R);
q = -mean(gr);
  4 Comments
Nour
Nour on 29 Jul 2023
I do have the value of K (thermal conductivity). You're right, T is temperature not time and it's function of R (radius).
Thank you. I appreciate it
Torsten
Torsten on 29 Jul 2023
So problem solved ?

Sign in to comment.

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!