Here's a possible approach to create such a plot:
Define the geometry of the plane wall and the properties of the material (e.g. thermal conductivity, specific heat, density).
Define the time interval for the simulation, discretized into small time steps, and the cyclic heat flux to be applied to one side of the wall (e.g. as a sinusoidal function).
Use a numerical method (e.g. finite differences) to solve the heat conduction equation for each time step, using the previous temperature distribution as initial condition.
At each time step, store the temperature distribution across the wall. This can be represented as a matrix, with rows corresponding to different positions along the thickness of the wall, and columns corresponding to different time steps.
Once the simulation is complete, plot the temperature distribution at different time intervals, using a contour or surface plot. This can be done by selecting the appropriate columns from the matrix created in step 4.
Here's some sample code that implements these steps:
main.m1227 chars52 lines
This code generates a 2x2 plot with temperature contours for four different time intervals (0:1:10, 11:1:20, 21:1:30, 31:1:40). The contours show the temperature distribution across the wall, with hotter regions shown in red and cooler regions shown in blue. The cyclic heat flux applied to the right side of the wall is not shown explicitly, but its effect is visible as periodic variations in temperature across the wall.
gistlibby LogSnag