Math, Python, Simulation, Heat Equation, Numerical Analysis.
always be temp_at_left_end and temp_at_right_end respectively. Mathematically this can be expressed as u(t, 0) = 200 and u(t, length) = 200 for all times t, in code: u[:, 0] = temp_at_left_end # u(t, 0) = 200 u[:, -1] = temp_at_right_end # u(t, length) = 200 If we plot out our initial u[0], we