... | ... | @@ -33,6 +33,7 @@ Calculating various values from metadata |
|
|
----------------------------------------
|
|
|
|
|
|
* blkCellCoords(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. Ret: npa(cell).
|
|
|
* blkCellCoords3d(b, coordType) - Calculates cell coordinates and other quantities derived from them and returns npa with the same shape as the block filled with the generalised coordinate. The possible generalised coordinates are: 'x', 'y', 'z', 'vol', 'r3', 'r2x', 'r2y', and 'r2z'. Args: b is block number; coordType is a string denoting the coordinate type. Ret: npa(XAXIS,YAXIS,ZAXIS).
|
|
|
* 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', ...
|
... | ... | |