domain Module

class domain.BaseDomainHalo(extent=None, cell_count=1, periods=(1, 1, 1))

Bases: object

A cell based domain for mpi/private memory. Creates a shell of halos cells around each processes internal cells as halos.

boundary

Return local domain boundary

boundary_outer

Return local domain boundary

cell_array

Return cell array.

cell_count

Return cell count for domain.

cell_decompose(cell_width=None)
cell_edge_lengths

Return cell edge lengths.

extent

Returns list of domain extents including halo regions.

extent_internal

Returns list of domain extents.

get_boundary_cells()

Return a host.Array containing the boundary cell indices of the domain.

get_shift()
halos
mpi_decompose(mpi_grid=None)
set_extent(new_extent=array([ 1., 1., 1.]))

Set domain extents

Parameters:new_extent (np.array(3,1)) – New extents.
volume

Return domain volume.

class domain.BoundaryTypePeriodic(state_in=None)

Bases: object

Class to hold and perform periodic boundary conditions.

Parameters:state_in – State on which to apply periodic boundaries to.
apply()

Enforce the boundary conditions on the held state.

set_state(state_in=None)
domain.factor(n)
domain.pfactor(n)

Previous topic

data Module

Next topic

halo Module

This Page