dedalus.core.domain

Class for problem domain.

Module Contents

logger
class Domain(bases, grid_dtype=np.complex128, comm=None, mesh=None)

Problem domain composed of orthogonal bases.

Parameters:
  • bases (list of basis objects) – Bases composing the domain
  • grid_dtype (dtype) – Grid data type
  • mesh (tuple of ints, optional) – Process mesh for parallelization (default: 1-D mesh of available processes)
Variables:
  • dim (int) – Dimension of domain, equal to length of bases list
  • distributor (distributor object) – Data distribution controller
global_grid_shape(self, scales=None)
local_grid_shape(self, scales=None)
get_basis_object(self, basis_like)

Return basis from a related object.

grids(self, scales=None)

Return list of local grids along each axis.

grid(self, axis, scales=None)

Return local grid along one axis.

elements(self, axis)

Return local elements along one axis.

grid_spacing(self, axis, scales=None)

Compute grid spacings along one axis.

new_data(self, type, **kw)
new_field(self, **kw)
new_fields(self, nfields, **kw)
remedy_scales(self, scales)
class EmptyDomain(grid_dtype=np.complex128)
get_basis_object(self, basis_like)

Return basis from a related object.

new_data(self, type, **kw)
combine_domains(*domains)