Heat flux equation coding

5 次查看(过去 30 天)
Nour
Nour 2023-7-28
评论: Torsten 2023-7-29
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

回答(1 个)

Walter Roberson
Walter Roberson 2023-7-28
[sorted_t, idx] = sort(T);
sorted_R = R(idx);
gr = gradient(sorted_t, sorted_R);
q = -mean(gr);
  4 个评论
Nour
Nour 2023-7-29
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by