On a class of methods for the approximated solutions to nonlinear initial boundary value problems