... | ... | @@ -47,9 +47,9 @@ Block transformation |
|
|
|
|
|
Interaction with uniform grid
|
|
|
-----------------------------
|
|
|
* createUniformGrid(dim, direction, pos, reflevel, quans, bbox)
|
|
|
* insRanges(axis, bounds, ncells)
|
|
|
* createUniformGrid(dim, direction, pos, reflevel, quans, bbox) - Creates a uniform grid (class CUniformGrid) covering the AMR grid, with coordinates aligned with it, restricted with given arguments. Args: dim - dimension (1, 2 or 3); direction - normal to the plane (for 2d) or direction vector (for 1d); pos - position of the plane (2d, one coordinate) or the line segment (1d, two coma-separated coordines); reflevel - refinement level determining size of UG cells; quans - quantities to be stored in the UG, encapsulated in the CQuans object; bbox - bounding box, npa(dir,LO/HI).
|
|
|
* insRanges(axis, bounds, ncells) - Determines sets of indices in a block (bIdx) and in an axis (aIdx) for the situation when a block (defined with bounds and ncells) is inserted into a uniform grid (defined with axis). Args: axis - axis of a uniform grid; bounds - min & max of an inserted block along the given axis; ncells - number of cells of a block in a given direction. Ret: tuple of two npa - bIdx and aIdx.
|
|
|
* fillPlane(plane)
|
|
|
* ugAxis(direction, reflevel, bounds)
|
|
|
* ugAxis(direction, reflevel, bounds) - Creates an np array with grid cells coords along certain direction (0,1,2 = x, y, z), at a certain refinement level and restricted with bounds npa(2) - min, max).
|
|
|
|
|
|
|