Roth C models the turnover of organic carbon in non-waterlogged top-soil. It accounts for the effects of soil texture, temperature, moisture content and plant cover on the turnover process. It uses a monthly time step to calculate total organic carbon (t ha-1), microbial biomass carbon (t ha-1) and Δ14C (from which the equivalent radiocarbon age of the soil can be calculated).
The model consist of 2 constants to define soil, and 5 variable states that represent forms of Carbon in soil (and 1 more for summatory or SOC). Model dinamycs is controlled by 8 input variables, and contain several transient variables and constants for processes representation.
Simulations are Timestep, wich is equivalent to Euler's numerical integration with n=1, and steps can be months or days.
Fortran or Python source code, alongside more information about RothC model, can be found at ROTHAMSTED CARBON MODEL (ROTHC) page.
Framework : ObjAsm C.2 - masters : Main Developer , Fork
Math syntax macros: SmplMath
Current building are for Windows platform, 32 and 64 bits, and ANSI inputs and outputs.
Programming is Object Oriented, and consist of RothC model object, and a ConsoleApp descendent object who run the simulations.
This application is intended as an example of how to:
- read in the input data
- run the model
- created monthly and yearly outputs Details of the inputs required, pools modelled, and units are in the code.
This is Neutral Bitness Code (BNC) and assembled binary bitness can be changed by selecting SysSetup (AppRothC.asm line 12) CON64 or CON32
The file RothC_input.dat contains input variables example for the model. Current format contains information lines and space separated values.
This example create files year_results.csv and month_results.csv with comma separated values. They contains the yearly or monthly values of the SOC (both the pools and Total) and the delta 14-carbon.
RothC code is under Apache 2 License, and OOP code is under ObjAsm-C.2 EULA