top of page

Cartesian 2D Heat Equation

Example and Code

Want to skip to coding?

Conceptual 

For an example let us consider a 1x1 square of sheet metal.

Here we use the heat equation, initial condition and boundary conditions to solve and plot on mathematica.

​

Our equation:

​

Let us ignore the thermal diffusivity constant for now, setting it equal to one

​

First let's use an initial condition of zero, meaning the whole plate just starts at temperature zero with no fluctuation:

​

​

Now the boundary conditions:

 

Let us start simple with three sides insulated meaning

                                                                       for x=0 and y=0, 1 values.

 

The right side will be at heated at 2 degrees after the initial condition.:

​

output-onlinepngtools (1).png
zero trans.png
two trans.png
insulated trans.png

Results

results1.png
results3.png
bottom of page