The usual formula for the formation of struvite crystals is: urea in the urine (from the breakdown of proteins) + urease (by-product of bacteria) + other compounds in the urine + high pH (from chemical reactions started by urea + urease) + magnesium ---> struvite crystals (magnesium ammonium phosphate...