4.1.5.1.1 pde.backends.torch.operators.cartesian module
This module implements differential operators on Cartesian grids.
Cartesian Laplace using torch. |
|
Cartesian gradient operator using torch. |
|
Cartesian gradient squared operator using torch. |
|
Cartesian divergence operator using torch. |
|
Cartesian vector gradient operator using torch. |
|
Cartesian vector Laplacian operator using torch. |
|
Cartesian tensor divergence operator using torch. |
- class CartesianDivergence(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian divergence operator using torch.
Initialize the Cartesian divergence operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field
- class CartesianGradient(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian gradient operator using torch.
Initialize the Cartesian gradient operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field
- class CartesianGradientSquared(grid, bcs, *, central=True, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian gradient squared operator using torch.
Initialize the Cartesian gradient squared operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.central (bool) – Whether to use central differences. If False, forward and backward differences are used.
dtype (AnyDType) – The data type of the field
- class CartesianLaplacian(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian Laplace using torch.
Initialize the Cartesian Laplacian operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field
- class CartesianTensorDivergence(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian tensor divergence operator using torch.
Initialize the Cartesian tensor divergence operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field
- class CartesianVectorGradient(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian vector gradient operator using torch.
Initialize the Cartesian vector gradient operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field
- class CartesianVectorLaplacian(grid, bcs, *, dtype=<class 'numpy.float64'>)[source]
Bases:
TorchOperatorCartesian vector Laplacian operator using torch.
Initialize the Cartesian vector Laplacian operator.
- Parameters:
grid (
GridBase) – The grid on which the operator actsbcs (
BoundariesListor None) – The boundary conditions applied to the field. If None, no boundary conditions are enforced.dtype (AnyDType) – The data type of the field