To find the inner surface temperature of a plane wall after the first large heat flux is applied for 2 seconds in MATLAB, we can use the pdepe
(partial differential equation solver) function.
First, we need to define the parameters of the problem, including the thermal conductivity of the wall, the heat transfer coefficient, the temperature of the environment, the initial temperature of the wall, and the heat flux applied to the wall.
Once we have defined these parameters, we can create a function that describes the differential equation that relates the temperature of the wall to the heat flux and boundary conditions. The pdepe
function then solves the differential equation for us and returns the temperature of the wall as a function of time and position.
Here's some sample code that solves this problem:
main.m668 chars27 lines
This code defines the parameters of the problem and then defines a function wall_heat_eqn
that describes the differential equation that relates the temperature of the wall to the heat flux and boundary conditions.
It then defines a space/time grid and uses the pdepe
function to solve the differential equation for the temperature of the wall.
Finally, it plots the results as a surface plot of temperature versus position and time.
Note that this code assumes that the wall has constant thermal properties and that the heat transfer coefficient and heat flux are constant over time and position. If these assumptions are not valid for your problem, you'll need to modify the code accordingly.
gistlibby LogSnag