One way to model temperature as a function of position in a plane wall undergoing transient heat conduction with cyclic heat flux applied to one side is to use the Heat Transfer Toolbox in Matlab. Specifically, we can use the pdepe
function to solve the heat equation subject to initial and boundary conditions.
Here's an example code that demonstrates this approach:
main.m1342 chars50 lines
This code defines a heat flux function that oscillates between positive and negative values with a period of 2 seconds, and applies it to one side of a 1-meter-thick wall. The other side is maintained at a constant temperature of 0 degrees Celsius. The code solves the heat equation subject to these conditions and plots the resulting temperature distribution in the wall over time.
Note that this is just one example of how to model this problem in Matlab, and there are many other approaches that could be used depending on the specific details of the problem.
gistlibby LogSnag