Neumann boundary conditions are handled much more simply than Dirichlet ones: the flux prescribed at the boundary immediately gives the vector (nonzero only at the boundary nodes), which enters only the right-hand side of the system — the stiffness matrix need not be changed.
Stationary case
For the five-node example (the fluxes and are prescribed; the source on the end simplices is zero, ) the modified right-hand side vector is:
Non-stationary case
For the non-stationary problem the operator is , and the flux enters the right-hand side with the factor :
The modified right-hand side vector:
The operator is already nonsingular (the damping matrix is positive definite, ), so the non-stationary Neumann problem is solvable even without Dirichlet conditions.