4.1.6.1.3 pde.backends.torch.operators.cylindrical_sym module
This module implements differential operators on spherical grids.
Cylindrical Laplace using torch. |
|
Cylindrical gradient operator using torch. |
|
Cylindrical gradient squared operator using torch. |
|
Cylindrical divergence operator using torch. |
|
Cylindrical vector gradient operator using torch. |
|
Cylindrical vector Laplacian operator using torch. |
|
Cylindrical tensor divergence operator using torch. |
- class CylindricalDivergence(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical divergence operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalGradient(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical gradient operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalGradientSquared(grid, bcs, *, central=True, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical gradient squared operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalLaplacian(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical Laplace using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalTensorDivergence(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical tensor divergence operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalVectorGradient(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical vector gradient operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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 CylindricalVectorLaplacian(grid, bcs, *, dtype)[source]
Bases:
TorchDifferentialOperatorCylindrical vector Laplacian operator using torch.
The cylindrical grid assumes polar symmetry, so that fields only depend on the radial coordinate r and the axial coordinate z. Here, the first axis is along the radius, while the second axis is along the axis of the cylinder. The radial discretization is defined as \(r_i = (i + \frac12) \Delta r\) for \(i=0, \ldots, N_r-1\).
Initialize the Cylindrical 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