Perhaps you may find the discussion in this topic usefull
I also wanted to feed my own values to the boundary conditions and the discussion in this topic helped me.