... | ... | @@ -27,7 +27,7 @@ Properties of the grid that can be derived from the above basic grid properties. |
|
|
Calculating various values from metadata
|
|
|
----------------------------------------
|
|
|
|
|
|
* blockCellCoords(b, direction) - Calculates coordinates for all cells of a blocks along a given direction. Args: b is block number, direction is XAXIS, YAXIS or ZAXIS. 1dim: cels.
|
|
|
* blockCellCoords(b, direction) - Calculates coordinates for all cells of a blocks along a given direction. Args: b is block number, direction is XAXIS, YAXIS or ZAXIS. 1dim: cell.
|
|
|
* blocksIntersectingBox(box) - Returns list of blocks intersecting with a given box. box is 3x2 (dim, LO/HI) numpy array.
|
|
|
* csrl - Size of a cell at given refinement level. 1dim: direction.
|
|
|
* getDict - Returns dictionary various grid properties assigned actual values. 'xmin', 'xmax', 'xcen', 'ymin', ...
|
... | ... | @@ -40,8 +40,16 @@ 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)
|
|
|
|
|
|
|
|
|
Interaction with uniform grid
|
|
|
-----------------------------
|
|
|
* createUniformGrid(self, dim, direction, pos, reflevel, quans, bbox):
|
|
|
* GetAxis(self, direction, reflevel, bounds):
|
|
|
* GetInsertRanges(self, axis, bounds, ncells):
|
|
|
* plane(self, plane):
|
|
|
|
|
|
|