Go to the first, previous, next, last section, table of contents.
- gnuplot.heat(dt,step)
-
:: It solves the heat equation numerical and plots solutions
- return
-
Void
- dt
-
floating point number
- step
-
Integer
- It solves the heat equation
du/dt = d^2 u/dx^2, u(t,0) = u(t,1) = 0
with the initial condition
u(0,x) = x (0 <= x <= 0.5), u(0,x) = 1-x ( 0.5 <= x <= 1.0).
- Heat_N is the number of the meshes in the space.
- This function will be called
pde_heat_demo
in a future.
Algorithm: NOT Written. (Difference scheme. Courant-Levi-Friedrichs conditions.)
[232] Heat_N = 20$
[233] gnuplot.heat(0.001,30)$
Go to the first, previous, next, last section, table of contents.