add analysis/rw-v1.py
finish the first version of rw-v1.py with triangle kernel function