Git Product home page Git Product logo

massacr's Introduction

MASSACR

Modeling Altered Seafloor: Simulation and Climatic Response

BACKGROUND

MASSACR improves upon its predecessor, SWAGCUNT, with more adaptable PDE solvers, cleaner output, and improved functionality for all of your porous-media-flow-coupled-to-aqueous-geochemistry needs. MASSACR incorporates new insights (anderson et al. 2012, 2013) into off-axis hydrothermal systems that have not been previously considered in a geochemical context. not that i know of anyway.

FLUID DYNAMICS

massacre.f90: main method, PDE solving subprograms, message passing central hub (distribution to slave processors and collection by root processor), output writing. reactive transport happens here (done by root processor) instead of in its own module.

globals.f90: includes stuff that the model needs to be available globally, including meshgrid points and timesteps in various fine+coarse combinations, physical properties of fluid/rock, and solvers for sets of linear equations (e.g. banded matrix solver, tridiagonal solver)

initialize.f90: contains just one subroutine, init(), called at the beginning of the main method that sets up the material properties set in globals.f90 and boundary/ initial conditions. fluid/rock properties that require extensive calculation are born here instead of the globals module.

GEOCHEMISTRY

alteration.f90: this is a module that contains all of the necessary functionality for basalt alteration that can be coupled to the fluid dynamic model by running alter() for one or all or some grid cell(s). it is designed to accept relevant information such as cell temperature, timestep size, amounts of primary consituents, and amounts of secondary alteration products which are then used as inputs to PHREEQC. the output is PHREEQC SELECTED-OUTPUT and is not parsed in alter().

POST-PROCESSING

plotPressure.py: plot streamfunctions, isotherms, and several benchmark values that correspond to output in hydrothermal circulation simulations by snelgrove and forster, 1996.

plotAnimation.py: for making animations for talks and navahnavahnavah.com

ONE-BOX MODELS

i made a bunch of models for screwing around purposes. each does something slightly different and the directory contains individual post-processing and visualization scripts.

phreeqout/: original basalt alteration experiments (based on carbon sequestration simulations by pham et al., 2012) using aqueous geochemistry package PHREEQC interfaced to FORTRAN using IPHREEQC.

batch/: single box model of basalt alterating and carbonate precipitation including mixing of seawater-derived hydrothermal fluid with fresh deep ocean seawater. batch.f90 and batchControl.f90 handle the mixing differently. batchControl.f90 is probably better.

cell/: pretty much the same as batchControl but with better output/post-processing and ultimately for the development of MASSACR's geochemical model.

massacr's People

Watchers

 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.