The values in 1D apply to the boundaries of 2D

Please read Read before posting: How do I get my question answered? and then open a new post which complies with those rules. Specifically, give at least a minimal example to show what you have tried.