Water and magmas; a mixing model