... | ... | @@ -27,20 +27,17 @@ 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.
|
|
|
* 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.
|
|
|
* 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', ...
|
|
|
|
|
|
* blocksIntersectingBox
|
|
|
* csrl
|
|
|
* getDict
|
|
|
|
|
|
Reading from file
|
|
|
-----------------
|
|
|
* [readPFMetadata(fn)](https://projects.asu.cas.cz/wunsch/flashscripts/-/blob/master/flashscripts/libgrid.py#L15) - Reads metadata defining the grid using the plotfile object. Argument "fn" denotes the filename. Currently uses flashpf Plotfile class based on the pytables library to interact with the hdf file.
|
|
|
* [readBlocks(blocks, quans)](https://projects.asu.cas.cz/wunsch/flashscripts/-/blob/master/flashscripts/libgrid.py#L15) - Reads selected blocks and selected quantities into memory. Creates/updates array bIdx and dictionary qIdx providing indeces of a given block and quantity into the 'data' array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Block transformation
|
|
|
--------------------
|
|
|
|
... | ... | |