API Documentation¶
eSCAPE is a long-term surface evolution model built to simulate landscape development, sediment transport and sedimentary basins formation from upstream regions down to marine environments.
Below you will find the nitty-gritty components of the Python code… The following API documentation provides a nearly complete description of the different functions that compose the code… ✌
Warning
It is worth mentioning that a set of fortran functions are also part of eSCAPE code but are not described in this API…
Model class¶
LandscapeEvolutionModel super class is the main entry point for eSCAPE and contains an inherited class (LandscapeEvolutionModelClass) that defines the following 3 main functions:
Main functions | Summary |
---|---|
LandscapeEvolutionModel() | Instantiates eSCAPE model object and performs surface processes evolution. |
runProcesses() | Run eSCAPE Earth surface processes. |
destroy() | Destroy PETSc DMPlex objects and associated Petsc local/global Vectors and Matrices. |
A typical call to eSCAPE will be like this
1 2 3 4 5 6 7 8 9 10 | import eSCAPE as sim
# Reading input file
model = sim.LandscapeEvolutionModel('input_globe.yml',False,False)
# Running model
model.runProcesses()
# Cleaning model
model.destroy()
|
-
eSCAPE.
LandscapeEvolutionModel
(filename, *args, **kwargs)[source]¶ Instantiates eSCAPE model object and performs surface processes evolution.
- This object contains methods for the following operations:
- initialisation of eSCAPE mesh based on input file options.
- computation of surface processes
- cleaning/destruction of PETSC objects
- Args
filename : YAML input file verbose : True/False
Output option for model main functions- showlog : True/False
- Output option for PETSC logging file
Returns: object Return type: LandscapeEvolutionModel
Input/Output¶
Declaration of input/output functions to
- Parse the YAML input file
- Write HDF5 output of computed surface parameters
Input/output classes for initialisation and evaluation of eSCAPE model.
Input functions¶
Mesher¶
Set of functions used to build PETSC DMPlex mesh and update forcing conditions such as rain, sealevel, tectonic.
Meshing module for unstructured eSCAPE grid generation.
Unstructured Mesh¶
-
class
eSCAPE.mesher.unstructuredmesh.
UnstMesh
(filename, dim=2)[source]¶ Creating a distributed DMPlex and global vector from it based on triangulated mesh
-
applyForces
()[source]¶ Find the different values for climatic and tectonic forces that will be applied to the considered time interval
-
Landscape evolution¶
Main functions used to compute surface erosion/deposition. This encompasses both river and hillslope processes.
Surface process module for hillslope and stream erosion/deposition.
Pit filling¶
Parallel priority-flood algorithm for unstructured mesh based on Barnes, 2016
Depressions filling module for pits determination based on priority flooding algorithm.