Computational Physics, Physics, Heat Equation, Python, Math.
will be constant over time. Writing the equation in discretized form (forward difference and central difference): The discretized formula will look like this.. Simplifying the formula, we take 𝐷=√(k𝐶/𝑝)=1 for simplicity. Since D = 1, we take the left denominator k and we factor by right denominator