esys.ripley.MultiResolutionDomain Package¶
Classes¶
-
class
esys.ripley.MultiResolutionDomain.
MultiResolutionDomain
(dim, **kwargs)¶ Constructs domains of varying resolutions that are guaranteed to be compatible for cross-domain interpolation. The parameters supplied will be used to construct the coarsest resolution. No coarser domain can be constructed.
Each domain of finer resolution will have the number of elements in every axis of the coarsest domain multiplied by
2**n
, wheren
is the level of subdivision.-
__init__
(dim, **kwargs)¶ - Parameters
dim (
int
) – the spatial dimension of the domain to createkwargs – the arguments normally passed to a constructor of Rectangle or Brick, including as the number of elements
n0=...
,n1=...
, etc.
-
getLevel
(level)¶ Returns a domain with each element subdivided
level
times- Parameters
level (
int
) – the number of times to subdivide each element
-
getMaxDepth
()¶ Returns the level of the finest domain created so far
-
Functions¶
-
esys.ripley.MultiResolutionDomain.
MultiBrick
((float)n0, (float)n1, (float)n2[, (object)l0=1.0[, (object)l1=1.0[, (object)l2=1.0[, (int)d0=-1[, (int)d1=-1[, (int)d2=-1[, (object)diracPoints=[][, (object)diracTags=[][, (SubWorld)escriptworld=None[, (int)multiplier=1]]]]]]]]]]) → Domain :¶ Creates a hexagonal mesh with n0 x n1 x n2 parent elements over the brick [0,l0] x [0,l1] x [0,l2], each parent element is divided
multiplier
times.- Parameters
n0 (
int
) – number of elements in direction 0n1 (
int
) – number of elements in direction 1n2 (
int
) – number of elements in direction 2l0 (
float
ortuple
) – length of side 0 or coordinate range of side 0l1 (
float
ortuple
) – length of side 1 or coordinate range of side 1l2 (
float
ortuple
) – length of side 2 or coordinate range of side 2d0 (
int
) – number of subdivisions in direction 0d1 (
int
) – number of subdivisions in direction 1d2 (
int
:param multiplier: size of overlap) – number of subdivisions in direction 2
-
esys.ripley.MultiResolutionDomain.
MultiRectangle
((float)n0, (float)n1[, (object)l0=1.0[, (object)l1=1.0[, (int)d0=-1[, (int)d1=-1[, (object)diracPoints=[][, (object)diracTags=[][, (SubWorld)escriptworld=None[, (int)multiplier=1]]]]]]]]) → Domain :¶ Creates a rectangular mesh with n0 x n1 parent elements over the rectangle [0,l0] x [0,l1], each parent element is divided
multiplier
times.- Parameters
n0 (
int
) – number of elements in direction 0n1 (
int
) – number of elements in direction 1l0 (
float
ortuple
) – length of side 0 or coordinate range of side 0l1 (
float
ortuple
) – length of side 1 or coordinate range of side 1d0 (
int
) – number of subdivisions in direction 0d1 (
int
) – number of subdivisions in direction 1multiplier (
unsigned int
) – size of overlap