Code Monkey home page Code Monkey logo

coad_box_model's Introduction

COAD Box Model

Description

This repository contains MATLAB scripts to compute the δ13C, δ18O, Δ47, Δ48, and Δ49 of calcite precipitated from a CO2-fed solution. The full description of the model and parameters can be found in: Watkins, J. and Devriendt, L. 2022, A combined model for kinetic clumped isotope effects in the CaCO3-DIC-H2O system, submitted to Geochemistry, Geophysics, Geosystems.

DOI

If you use these codes, I recommend that you also cite the following papers:

  1. Watkins, J.M. and Hunt, J.D., 2015. A process-based model for non-equilibrium clumped isotope effects in carbonates. Earth and Planetary Science Letters, 432, pp.152-165.
  2. Chen, S., Gagnon, A.C. and Adkins, J.F., 2018. Carbonic anhydrase, coral calcification and a new model of stable isotope vital effects. Geochimica et Cosmochimica Acta, 236, pp.179-197.
  3. Uchikawa, J., Chen, S., Eiler, J.M., Adkins, J.F. and Zeebe, R.E., 2021. Trajectory and timescale of oxygen and clumped isotope equilibration in the dissolved carbonate system under normal and enzymatically-catalyzed conditions at 25° C. Geochimica et Cosmochimica Acta, 314, pp.313-333.

Requirements

In order to run the scripts you will need Matlab. The codes were produced using Matlab2017b but earlier and later versions will probably work just as well.

Scripts

1. Ion_by_ion_D61_D62_D63_D64_D65.m - A model for kinetic isotope effects in the CaCO3-DIC system

This script provides an update to the ion-by-ion model of Watkins and Hunt (2015) in that it now includes Δ64 and Δ65. The script Ion_by_ion_D61_D62_D63_D64_D65.m was used to produce Fig. 2 of the paper. To run, simply download the script along with the following data files:

  • Romanek_to_5C.txt
  • Baker_to_5C.txt
  • Watkins_to_5C.txt
  • Levitt_to_5C.txt
and execute the script. This will produce a figure with 5 panels showing the δ13C, δ18O, Δ47, Δ48, and Δ49 of DIC species and calcite as a function of pH for a specified growth rate. To change the growth rate, modify the value of 'Rate_spec' on line 27 of Ion_by_ion_D61_D62_D63_D64_D65.m.

Figure 2

2. The combined COAD Box Model

The COAD box model allows one to calculate kinetic isotopes effects in the full CaCO3-DIC-H2O system. The script Run_COAD_Box_Model.m was used to produce Fig. 6 of the paper.

The following scripts are required:

  • CaCO3_DIC.m - this is the ion-by-ion function script
  • COAD_Box_Model.m - this is the main script that calls CaCO3_DIC.m at each timestep
  • Run_COAD_Box_Model.m - this is used to run COAD_Box_Model.m and post-process the outputs
  • Tang_5C.m - data from Tang et al. (2014)
To run, put all files in same directory and execute Run_COAD_Box_Model.m. This will output a set curves for the 1000ln18α and Δ63 of calcite ('Default Model') as a function of pH for a specified FCO2. The value of FCO2 can be changed in COAD_Box_Model_.m. The curves for the non-default models (middle and right panels) can be obtained by changing the parameters as instructed in the paper.

Fig_6_COAD

coad_box_model's People

Contributors

jwatkins529 avatar

Watchers

 avatar  avatar

Forkers

mdaeron

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.