GithubHelp home page GithubHelp logo

yibolin / diagenesis-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anne-sofieahm/diagenesis-model

0.0 0.0 0.0 23 KB

Numerical model on fluid-rock interaction in carbonate rocks (Ahm et al. 2018)

MATLAB 100.00%

diagenesis-model's Introduction

Diagenesis-model

Numerical model on fluid-rock interaction in carbonate rocks (Ahm et al. 2018)

Building on published modeling efforts (Banner & Hanson, 1990; Blattler & Higgins, 2015; Fantle & Higgins, 2014), we here present a MatLab based (R2016b) numerical model that simulates early marine diagenesis of carbonate sediments by stoichiometrically recrystallizing aragonite to low-Mg calcite (neomorphism) or aragonite/calcite to dolomite (dolomitization) assuming conservation of mass of carbon in the sediment. For a detailed description of the model setup we refer to Ahm et al. 2018 (GCA Vol. 236, pp 140-159, doi:10.1016/j.gca.2018.02.042).

To run the model you will need the following files:

(1) Reactive_model_v6_base.m

This is the main script used to run the model. In this script you define the initial conditions such as primary mineralogy, diagentic mineralogy (m), reaction rate (R), flow rate (u), length scale of flow path (number of boxes), and composition of the diagenetic fluid.

(2) constants.m

A script with some basic constants e.g. volume of each box and stoichiometry of the primary minerals. This script is also were you can change the composition of the primary mineral e.g. from aragonite to high-Mg calcite.

(3) dJ6dt.m

The main ODE solver than calculates the change in mass and isotopic composition over time.

(4) fluxes6.m

This script calculates the input and output fluxes into each box at every time step. These fluxes are then pulled into the ODE solver (dJ6dt.m) to solve dM/dt and dM_delta_/dt.

diagenesis-model's People

Contributors

anne-sofieahm avatar

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.