L2_BeTR Design Doc
The Design Document page provides a description of the algorithms, implementation and planned testing including unit, verification, validation and performance testing. Please read Step 1.3 Performance Expectations that explains feature documentation requirements from the performance group point of view.
Design Document
In the table below, 4.Equ means Equations and Algorithms, 5.Ver means Verification, 6.Perf - Performance, 7. Val - Validation, - completed, - in progress, - not done
Title: Integrating the Biogeochemical Transport and Reaction module into ALM
Requirements and Design
ACME Land group
Group
Date: 09/02/2015
Summary
Requirements
The requirements for BeTR module include:
- An operator splitting based treatment of various transport and reaction processes.
- A reaction based formulation of generic soil biogeochemical processes.
- A consistent numerical treatment to ensure mechanistic consistencies.
Date last modified: 09/02/2015
Contributors: Jinyun Tang
(add your name to this list if it does not appear)
Each requirement is to be listed under a ”section” heading, as there will be a one-to-one correspondence between requirements, design, proposed imple- mentation and testing. Requirements should not discuss technical software issues, but rather focus on model capability. To the extent possible, require- ments should be relatively independent of each other, thus allowing a clean design solution, implementation and testing plan.
Algorithmic Formulations
Design solution: short-description-of-proposed-solution-here
Date last modified:09/02/2015
Contributors: Jinyun Tang
For each requirement, there is a design solution that is intended to meet that requirement. Design solutions can include detailed technical discussions of PDEs, algorithms, solvers and similar, as well as technical discussion of performance issues. In general, this section should steer away from a detailed discussion of low-level software issues such as variable declarations, interfaces and sequencing.
The generic mathematical formulation of BeTR is
d(Cs+Cw*theta+Cg*epsilon)/dt=diffusion+advection+R ...(1)
where
Cs = solid phase of a given tracer
Cw= aqueous phase of a given tracer
Cg=gaseous phase of a given tracer
R = biogeochemical reactions, gas addictions, biotic and abiotic subsurface/later transport.
The diffusion is solved using an implicit scheme, advection is used using the semi-lagrangian approach, and R is solved with ODE solvers.
See Tang et al 2013.pdf for details of the model structure.
Design and Implementation
Implementation: short-desciption-of-implementation-here
Date last modified: 09/02/2015
Contributors: Jinyun Tang
- ALM-BeTR is written using OOP design and installed as a separate directory under the ALM repository.
- ALM-BeTR includes its own code library to handle various substrate competition processes and appropriately refer to standard numerical packages, such as BLAS and LAPACK.
Planned Verification and Unit Testing
Verification and Unit Testing: short-desciption-of-testing-here
Date last modified: 09/02/2015
Contributors: Jinyun Tang
- Unit testing will be conducted to compare numerical simulations with analytical solutions. (Finished)
- Mock test will be conducted to ensure the logical order of the model is constantly and correctly done. (Finished)
- On/off tests will be conducted to make sure BeTR does not affect other soil biogeochemical formulations currently used in ALM. (Finished)
Planned Validation Testing
Validation Testing: short-desciption-of-testing-here
Date last modified:09/02/2015
Contributors: Jinyun Tang
- The reaction-based BeTR-BGC will be compared with the default Century-BGC in ALM. (Ongoing)
- The output from BeTR-BGC will be benchmarked using ILAMB. (Ongoing)
My recent testing of the BeTR-BGC indicate the numerical coupling of nitrogen between its relevant components are flawed. Therefore, the activities as indicated above will be delayed to v2. Also, since BeTR-BGC does not support P dynamics, it should not be recommended for use for ALM performance runs.
Planned Performance Testing
Performance Testing: short-desciption-of-testing-here
Date last modified:09/02/2015
Contributors: Jinyun Tang
- The ACME timing logs will be implemented in the ALM-BeTR to obtain performance metrics and compared with that of the default ALM. (Ongoing)
- Computational performance will be evaluated for offline and coupled global simulations. (Ongoing)