Avatar ·

The numerical solution of the thermal conductivity problem

📁 Advanced Python Topics, question, Error, example, AI

It is necessary to solve the problem of thermal conductivity on the segment

The solution used an explicit scheme

N = 10 # maximum number of steps in xK = 10 # maximum number of steps in tl = 1 # value of x on the right borderh = l / N # grid pitch along xT = 1 # maximum time value t on the right bordert = T / K # grid step by time# setting the gridx_i = np.arange(0, N, h) # values in nodes of xt_j = np.arange(