MATLAB: PDE Thermal Model with heat produced as a function

pdethermal

I am doing a thermal Problem similar to the Mathworks rod example. But rather than having constant heat production throughout the geometry I have heat production varying with Location, time, temperature and another variable (current). How specify my heat source as a function of Location (x and y) ? Thank you in advance Ben

Best Answer

To write the surce as a function of time and temperature, follow this example. In short, give the heat source as a function that takes two arguments, region and state. Toolbox function pass these arguments, whose values you can see described, for example, here. Your heat source function should return a row vector of values of the same number of elements as in, for example, the region.x field.
Alan Weiss
MATLAB mathematical toolbox documentation