sim1D.final: Final state of a 'sim1D' object

Description Usage Arguments Value Author(s) Examples

Description

Extract data from object of Class 'sim1D' for the very last time step

Usage

1

Arguments

obj

Object created with sim1D.create.

Value

A numeric matrix where rows represent boxes/layers. There is one column for each item and columns are named accordingly. Rows are unnamed but the following attributes are set:

Author(s)

David Kneis david.kneis@tu-dresden.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)
sim1D.final(obj)

dkneis/diatools documentation built on May 15, 2019, 9:12 a.m.