... | ... | @@ -44,9 +44,9 @@ Reading from file |
|
|
|
|
|
Block transformation
|
|
|
--------------------
|
|
|
* blkSlice(b, normal, coord) - "Returns a 2d slice from 3d block at a given position. Does not interpolate, just finds the closest coordinate and copies the data. Args: b is block number, normal is direction of the normal to the slicing plane, coord is a coordinate of the slicing plane. Ret: npa(dir1, dir2).
|
|
|
* blkIntegrate(b, normal, rng)
|
|
|
* blkToRefLevel(blk, rlDiff, axes)
|
|
|
* blkSlice(b, normal, coord) - Returns a 2d slice from 3d block at a given position. Does not interpolate, just finds the closest coordinate and copies the data. Args: b is block number, normal is direction of the normal to the slicing plane, coord is a coordinate of the slicing plane. Ret: npa(dir1, dir2).
|
|
|
* blkIntegrate(b, normal, rng) -
|
|
|
* blkToRefLevel(blk, rlDiff, axes) - Converts block blk to a different resolution by changing its size by a power of 2 (both shrink and grow). The values are simply copied or deleted, no interpolation is made. Args: blk is a block (npa with appropriat dimension + 1), rlDiff is a difference in the refinement level (integer), argument axes defines along which coords the growth/shrinking should be made. Ret: new block (npa with the same dim as blk.
|
|
|
|
|
|
|
|
|
Interaction with uniform grid
|
... | ... | |