boxkit.library._block module

Module with implementation of the Block class.

class boxkit.library._block.Block(data=None, **attributes)

Bases: object

Class for storing block metadata

Parameters
  • data (Boxkit Data object) –

  • attributes (Dictionary of attributes) –

    'dx'   : grid spacing x direction
    'dy'   : grid spacing y direction
    'dz'   : grid spacing z direction
    'xmin' : low  bound x direction
    'ymin' : low  bound y direction
    'zmin' : low  bound z direction
    'xmax' : high bound x direction
    'ymax' : high bound y direction
    'zmax' : high bound z direction
    'tag'  : block ID
    

_map_data(data)

Private method for initialization

_set_attributes(attributes)

Private method for intialization

_set_neighdict_2d()

class property python Return neighbor tags

order - imins,iplus,jmins,jplus

_set_neighdict_3d()

Return neighbor tags

order - xmins,xplus,ymins,yplus,zmins,zplus

exchange_neighdata(varkey)

Exchange information

static get_center_loc(min_val, max_val, delta, num_points)

Private method for center location

static get_node_loc(min_val, max_val, delta, num_points)

Private method for face location

get_relative_loc(origin)

Get offset from origin

neighdata(varkey, neighkey)

Get neighbor data

read_neighbuffer(varkey)

Read neighbor buffer and perform halo exchange

type_ = 'default'
write_neighbuffer(varkey)

Write block data to buffer for halo exchange

xrange(location)

Get xrange of the block

yrange(location)

Get yrange of the block

zrange(location)

Get zrange of the block