4.1.6.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)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianGradient(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianGradientSquared(grid, bcs, *, central=True, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianLaplacian(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianTensorDivergence(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianVectorGradient(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field
- class CartesianVectorLaplacian(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCartesian 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 (np.dtype) – The data type of the field