Bases: timedomain
Class for solving purely spatial problems on N dimensional hyperrectangles
__init__(dim, xmins, xmaxs, timeRange)
Constructor for class
| Parameters: |
-
dim
(int)
–
Spatial dimension of domain.
-
xmins
(list)
–
Minimum values along each dimension, e.g, [-1, -1].
-
xmaxs
(list)
–
Maximum values along each dimension, e.g, [1, 1].
-
timeRange
(list)
–
Range of time to solve equation over, e.g, [0, 1].
|
isInside(timepoint)
| Parameters: |
-
timepoint
(list)
–
Point in time+spatial dimensions of the hyperrectangle
|
| Returns: |
-
bool
–
True if point is interior to the hyperrectangle, False otherwise
|
onBoundary(timepoint)
| Parameters: |
-
timepoint
(list)
–
Point in time+spatial dimensions of the hyperrectangle
|
| Returns: |
-
bool
–
True if point is on the boundary of the hyperrectangle, False otherwise
|
sampleBoundary(n_bc)
Samples boundary of hyperrectangle.
| Parameters: |
-
n_bc
(int)
–
Number of points to sample in the boundary.
|
| Returns: |
-
tensor
–
Sampled time+boundary points.
|
onInitial(timepoint)
| Parameters: |
-
timepoint
(list)
–
Point in time+spatial dimensions of domain.
|
| Returns: |
-
bool
–
True if point is an initial point, False otherwise.
|
sampleDomain(n_clp)
Samples interior of hyperrectangle.
| Parameters: |
-
n_clp
(int)
–
Number of points to sample in the interior of the ellipsoid.
|
| Returns: |
-
tensor
–
Sampled time+interior points.
|