To find the temperature distribution along a plane wall with a large heat flux applied to the inner surface for short intervals, we can use the finite difference method. The following code demonstrates this method in MATLAB:
main.m965 chars36 lines
In this code, we first define the parameters of the problem such as the length of the wall, the thermal conductivity, density, and specific heat capacity of the wall material, the heat flux applied to the inner surface, the time interval for which the heat flux is applied, and the time step for the finite difference method. We then initialize the temperature vector to zero and apply the boundary conditions. We then enter a loop that computes the heat flux at each node based on the temperature gradient, and then uses the heat flux to update the temperature at each node. Finally, we plot the temperature distribution along the wall.
gistlibby LogSnag