I wanted to ask the same question! Did you find any answer elsewhere? We need the source code of NeumannValue function and want to modify it.