Solving 1D diffusion equation [C, gnuplot]

Tuesday, October 9, 2018

C-language gnuplot Mathematics YouTube

t f B! P L
 

Creating a DAT file holding the values of the analytical solution [C]

diffusion_eq.c

This program gives 000.dat to 550.dat (the number of data changes depending on Nt).

Draw the state of diffusion [gnuplot]

dif_sim.plt

dif_oop1.plt

dif_loop2.plt

diffusion.gif


Reference

Animate experimental data with gnuplot (kengo700 knowledge base) (in Japanese)

Search This Blog

Translate

QooQ