Modeling hot spring chemistries with applications to Martian silica formation