This keyword data block is used to save the composition of a solution, exchange assemblage, gas phase, equilibrium-phase assemblage, solid-solution assemblage, or surface assemblage following a batch-reaction calculation. The composition is stored internally in computer memory and can be retrieved subsequently with the USE keyword during the remainder of the computer run.
Line 0a: SAVE equilibrium_phases 2
Line 0b: SAVE exchange 2
Line 0c: SAVE gas_phase 2
Line 0d: SAVE solid_solution 1
Line 0e: SAVE solution 2
Line 0f: SAVE surface 1
SAVE is the keyword for the data block.
keyword --One of six keywords with an index number, equilibrium_phases , exchange , gas_phase , solid_solution , solution , or surface . Options for equilibrium_phases : equilibrium , equilibria , pure_phases , or pure .
number --User defined positive integer to be associated with the respective composition. A range of numbers may also be given in the form m-n , where m and n are positive integers, m is less than n , and the two numbers are separated by a hyphen without intervening spaces.
SAVE affects only the internal storage of chemical-composition information during the current run; it does not save information between PHREEQC runs. To save results to a permanent file, see SELECTED_OUTPUT or DUMP. The SAVE data block applies only at the end of batch-reaction calculations and has no effect following initial solution, initial exchange-composition, initial surface-composition, initial gas-phase-composition, transport, run cells, or inverse calculations. During batch-reaction calculations, the compositions of the solution, exchange assemblage, gas phase, pure-phase assemblage, solid-solution assemblage, and surface assemblage vary to attain equilibrium. The compositions that exist at the end of a batch reaction are not automatically saved (unless RUN_CELLS is used); however, the compositions may be saved explicitly for use in subsequent simulations within the run by using the SAVE keyword. The SAVE keyword must be used for each type of composition that is to be saved (solution, exchange assemblage, gas phase, pure-phase assemblage, solid-solution assemblage, or surface assemblage). SAVE assigns number to the corresponding composition. If one of the compositions is saved in a number that already exists, the old composition is deleted. There is no need to save the compositions unless they are to be used in subsequent simulations within the run. ADVECTION, TRANSPORT, and RUN_CELLS calculations automatically save results after each calculation and the SAVE keyword has no effect for these calculations. Amounts of kinetic reactions (KINETICS) are automatically saved during all batch-reaction, advection, transport, and RUN_CELLS calculations and cannot be saved with the SAVE keyword. The USE (or RUN_CELLS) keyword can be invoked to use the saved compositions in subsequent batch-reaction calculations.
ADVECTION, EXCHANGE, EQUILIBRIUM_PHASES, GAS_PHASE, KINETICS, RUN_CELLS, SELECTED_OUTPUT, SOLID_SOLUTIONS, SOLUTION, SURFACE, TRANSPORT, and USE.