scimba_torch.integration.mesh_based_quadrature¶
Implements the rectangle method for cube-like domains.
Classes
|
Implements the rectangle method for cube-like domains. |
- class RectangleMethod(domain, **kwargs)[source]¶
Bases:
objectImplements the rectangle method for cube-like domains.
This sampler manages a primary volumetric sampler. At the moment, boundary samplers are not supported.
- Parameters:
domain (
Cuboid) – The volumetric domain to sample.**kwargs (
Any) – Additional configuration options.
- domain¶
The volumetric domain to be sampled.
- get_list_of_labels()[source]¶
Returns the list of labels for the domain.
- Return type:
list[int]- Returns:
the list of labels of the domain.
- get_list_of_bc_labels()[source]¶
Returns the list of labels for the boundaries of the domain.
- Return type:
list[int]- Returns:
the list of labels for the boundaries of the domain
- Raises:
NotImplementedError – Get list of bc labels is not supported for the rectangle method.
- sample(n)[source]¶
Get equidistant points in the domain.
- Parameters:
n (
int) – The number of points.- Return type:
- Returns:
The points.