Description Usage Arguments Examples
Computes field values for grid
1 | cmf_fval_grid(ft, mol, alpha, grid, verbose=1)
|
ft |
|
mol |
|
alpha |
|
grid |
|
verbose |
1 |
x |
|
x |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
cmf_fval_grid <- function(ft, mol, alpha, grid, verbose=1) {
for (igridx in 1:grid$ngridx) {
if (verbose) {cat("."); flush.console()}
x <- grid$gridx[igridx]
for (igridy in 1:grid$ngridy) {
y <- grid$gridy[igridy]
for (igridz in 1:grid$ngridz) {
z <- grid$gridz[igridz]
grid$val[igridx,igridy,igridz] <- cmf_fval_xyz(ft, mol,alpha,x,y,z)
}
}
}
if (verbose) {cat("\n"); flush.console()}
grid
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.