Skip to content

Commit

Permalink
add basic docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHohmann committed Jul 24, 2024
1 parent d85fb9b commit 11e90b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LMA_solve.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
function sol=LMA_solve(AragoniteInitial,CalciteInitial,CaInitial,CO3Initial,PorInitial,AragoniteSurface,CalciteSurface,CaSurface,CO3Surface,PorSurface,times,depths,sedimentationrate,k1,k2,k3,k4,m1,m2,n1,n2,b,beta,rhos,rhow,rhos0,KA,KC,muA,D0Ca,PhiNR,PhiInfty,options,Phi0,DCa,DCO3,DeepLimit,ShallowLimit, PhiIni, dissolve_aragonite,include_reactions)
% solve system of PDEs defined by L'Heureux based on passed parameters
% calls Matlab internal procedure "pdepe" to solve the PDEs, see doc pdepe
% for details.


%% Define Local constants
Xstar=D0Ca./sedimentationrate; % eq 39
Tstar=Xstar/sedimentationrate; % eq 39
Expand Down
7 changes: 7 additions & 0 deletions ScenarioA.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
%% Model Limestone-Marl alternations using the model by L'Heureux (2018)
% calls "LMA_solve.m", which used the Matlab internal procedure "pdepe" to
% solve the system of PDEs described in L'Heureux (2018)

% modify parameters in this file to change the scenario
% to run, use "run("scenarioA.m")" in the console

%% Parameters for Scenario A
%Taken from table 1 (p. 7)
KC=10^(-6.37);
Expand Down

0 comments on commit 11e90b4

Please sign in to comment.