Bases: timedomain
Class for solving spatio-temporal (1+N) problems on N dimensional ellipsoids
__init__(dim, center, semilengths, timeRange)
Constructor for class
| Parameters: |
-
dim
(int)
–
Spatial dimension of domain.
-
center
(list)
–
Center of ellipsoid in list for, e.g, [0, 0].
-
semilengths
(list)
–
semi-axi lengths of ellipsoid, 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 ellipsoid
|
| Returns: |
-
bool
–
True if point is interior to the ellipsoid, False otherwise
|
onBoundary(timepoint)
| Parameters: |
-
timepoint
(list)
–
Point in time+spatial dimensions of the ellipsoid
|
| Returns: |
-
bool
–
True if point is on the boundary of the ellipsoid, False otherwise
|
sampleBoundary(n_bc)
Samples boundary of ellipsoid
| 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 ellipsoid
| Parameters: |
-
n_clp
(int)
–
Number of points to sample in the interior of the ellipsoid.
|
| Returns: |
-
tensor
–
Sampled time+interior points.
|