Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]

Type "copyright", "credits" or "license" for more information.


IPython 7.18.1 -- An enhanced Interactive Python.


Restarting kernel...




In [1]: runfile('G:/UBCO/2020-2021/Python/20201004/PDEs.py', wdir='G:/UBCO/2020-2021/Python/20201004')

[0. 0.03 0.06 0.09 0.12 0.15 0.18 0.21 0.24 0.27 0.3 0.33 0.36 0.39

0.42 0.45 0.48 0.51 0.54 0.57 0.6 0.63 0.66 0.69 0.72 0.75 0.78 0.81

0.84 0.87 0.9 0.93 0.96 0.99 1.02 1.05 1.08 1.11 1.14 1.17 1.2 1.23

1.26 1.29 1.32 1.35 1.38 1.41 1.44 1.47]

The thermal diffusivity of copper near romm temperature is 0.0001 m^2/s.

The time between steps is 4.05 seconds.

The total elapsed time is 2.8125 hours.

A plot of the initial temperature profile of the copper bar.



The time is 0.0 hours.


The time is 0.140625 hours.


The time is 0.28125 hours.


The time is 0.421875 hours.


The time is 0.5625 hours.


The time is 0.703125 hours.


The time is 0.84375 hours.


The time is 0.984375 hours.


The time is 1.125 hours.


The time is 1.265625 hours.


The time is 1.40625 hours.


The time is 1.546875 hours.


The time is 1.6875 hours.


The time is 1.828125 hours.


The time is 1.96875 hours.


The time is 2.109375 hours.


The time is 2.25 hours.


The time is 2.390625 hours.


The time is 2.53125 hours.


The time is 2.671875 hours.


The solution at the final time of 2.8113749999999995 hours.

A plot of the initial temperature profile of the copper bar.



The time is 0.0 hours.


The time is 0.140625 hours.


The time is 0.28125 hours.


The time is 0.421875 hours.


The time is 0.5625 hours.


The time is 0.703125 hours.


The time is 0.84375 hours.


The time is 0.984375 hours.


The time is 1.125 hours.


The time is 1.265625 hours.


The time is 1.40625 hours.


The time is 1.546875 hours.


The time is 1.6875 hours.


The time is 1.828125 hours.


The time is 1.96875 hours.


The time is 2.109375 hours.


The time is 2.25 hours.


The time is 2.390625 hours.


The time is 2.53125 hours.


The time is 2.671875 hours.


The solution at the final time of 2.8113749999999995 hours.






In [2]: