Computational studies on functional materials