Diagrams with multiple metals1 months ago
Mashing | Mixing 1 | Convert formation energies from eV / atom to eV / molecule | Convert formation energies from eV / molecule to J / mol | Gibbs energies of formation (J / mol) for aqueous species | Most are from Wagman et al., 1982 | Gibbs energies of formation (J / mol) for solids from Wagman et al., 1982 | Calculate correction for difference between reference and DFT energies (Persson et al., 2012) | Apply correction to standard Gibbs energies of aqueous species (Persson et al., 2012) | Add energies to OBIGT | This function modifies OBIGT and returns the species indices of the affected species | We explicitly set the units to Joules (this is the default as of CHNOSZ 2.0.0) | We need model = "CGL" to override the Berman model for some minerals 20220919 | Formation energies (eV / atom) for bimetallic solids from Materials API | mp-1335, mp-1079399, mp-866134, mp-558525, mp-504509 (triclinic FeVO4) | Convert energies and add to OBIGT | Mosaic Stacking 1 | Mosaic Stacking 2 | Setup basis species | Fe-bearing minerals | Add aqueous species 20210220 | Start plot with just the fields for transparency effect | Cu-bearing minerals | Mosaic with all Fe species as basis species | Use only predominant Fe species as basis species (to speed up calculation) 20210224 | Use loga_aq argument to control the activity of aqueous species in mosaic calculation 20220722 | c(NA, logm_aq) means to use: | basis()'s value for logact of aqueous S species | logm_aq for logact of aqueous Fe species | Adjust labels | Highlight Ccp and Bn in orange | Thick line around Ccp field | Add second Cu label | Plot the Fe-system lines and names "on top" so they are not covered by fill colors | Restore default OBIGT database | Mixing 2 | Mosaic Stacking 3 | Fe-S-O-H diagram | Order species by a function of composition to make colors | Cu-Fe-S-O-H diagram based on reactions with the | stable Fe-bearing minerals (mosaic stack) | Mash the diagrams and adjust labels | Function to calculate solubility of Cu for stable assemblages of Fe and Cu minerals | (i.e. equilibrium is imposed with all of these minerals, not only Cu(s)) | DIAGRAM 1 | Load SLOP98 data to use legacy parameters for CuCl2- and CuCl3-2 | Calculate logK for CuCl2- dissociation at 125 °C | Sverjensky (1987) used Helgeson (1969) value, which is ca. -5.2 | Calculate the difference in ΔG° corresponding to this logK difference | We should use calories here because the database values are in calories 20220604 | Apply this difference to the CuCl2- entry in OBIGT | Do the same thing for CuCl3-2 | DIAGRAM 2 | Set up system to dissolve S2(gas) | Calculate concentration of SO4-2 | DIAGRAM 3 | Secondary Balancing | PRIMARY balancing | Only Fe-bearing minerals | Only Cu-bearing minerals | Only Fe- AND Cu-bearing minerals | SECONDARY balancing | Fe- or Cu-bearing minerals | All minerals | Other Possibilities | Balancing on a Non-Metal | Mosaic Combo | A function to calculate Keff for any combination of T and pH | Make T and pH the same length | Calculate activity of H+ | Calculate logKs | Calculate Ks | Calculate Keff (Eq. 7) | Calculate logKeff as a function of pH at 100 °C | Calculate activity of acetamide for | acetic acid + acetate = 0.01 m | ammonia + ammonium = 0.001 m | METHOD 2: Mosaic combo | Define total activities | This is 2 * 0.01 because acetic acid has 2 carbons | Load all C-bearing species (including acetamide) | Calculate distribution of C-bearing species accounting for ammonia/ammonium speciation | Plot and label diagram | Start with empty diagram | Add pH = 6 line | Add line for acetamide activity calculated with Keff | Add lines from CHNOSZ calculations | Check that we got equal values | Document History | References