Numerical simulation and calculations of pH
As an answer to your overall question: it is indeed possible to do numerical simulations of pH in different solutions or mixtures, and there is a number of programs or spreadsheets available if ou search the net. My personal favorite is Curtipot made by Prof. Gutz: http://www.iq.usp.br/gutz/Curtipot_.html