Numerically derived boundary conditions on artificial boundaries