Description Usage Arguments Value Author(s) Examples
Create an object of class 'sim1D' from the output of a dynamic, 1D model.
1 2 3 |
dyn |
Numeric matrix output by the ODE solver
(e.g. |
namesVars |
Names of the state variables in |
namesPros |
Names of the processes in |
xMin |
Minimum coordinates of the spatial boxes, e.g. top layer boundaries in a vertical 1D model. |
xMax |
Maximum coordinates of the spatial boxes, e.g. bottom layer boundaries in a vertical 1D model. |
keepItems |
Names of the items to be kept. Must be names of state variables or processes existing in the model. |
sep |
The character used in the column names of |
rangeT |
Time range. Data outside this range are dropped. |
rangeX |
Range of spatial coordinates (e.g. depths). Data outside this range are dropped. |
nsig |
Number of significant digits to retain (integer). |
An object of class 'sim1D'. Use sim1D.query
to extract data
from such objects.
David Kneis david.kneis@tu-dresden.de
1 2 3 4 5 6 7 8 9 10 | gr <- makeGrid(dz0=0.01, dzMax=0.02, zMax=0.1, beta=1)
times <- 0:2
vars <- c("A","B")
pros <- c("X","Y")
values <- matrix(1:(length(times)*nrow(gr)*(length(vars)+length(pros))),
nrow=length(times))
dyn <- cbind(times, values)
colnames(dyn) <- c("time", paste(rep(vars, each=nrow(gr)), 1:nrow(gr),sep="."),
paste(rep(pros, each=nrow(gr)), 1:nrow(gr),sep="."))
obj <- sim1D.create(dyn, namesVars=vars, namesPros=pros, xMin=gr$zUp, xMax=gr$zLw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.