spectre.Spectral¶
- class spectre.Spectral._Pybindings.Basis¶
Members:
Legendre
Chebyshev
FiniteDifference
SphericalHarmonic
- Chebyshev = <Basis.Chebyshev: 16>¶
- FiniteDifference = <Basis.FiniteDifference: 48>¶
- Legendre = <Basis.Legendre: 32>¶
- SphericalHarmonic = <Basis.SphericalHarmonic: 64>¶
- property name¶
- property value¶
- class spectre.Spectral._Pybindings.ChildSize¶
Members:
Uninitialized
Full
UpperHalf
LowerHalf
- Full = <ChildSize.Full: 1>¶
- LowerHalf = <ChildSize.LowerHalf: 3>¶
- Uninitialized = <ChildSize.Uninitialized: 0>¶
- UpperHalf = <ChildSize.UpperHalf: 2>¶
- property name¶
- property value¶
- class spectre.Spectral._Pybindings.Mesh1D¶
- basis(*args, **kwargs)¶
Overloaded function.
basis(self: spectre.Spectral._Pybindings.Mesh1D) -> Annotated[list[spectre.Spectral._Pybindings.Basis], FixedSize(1)]
The basis chosen in each dimension of the grid.
basis(self: spectre.Spectral._Pybindings.Mesh1D, d: int) -> spectre.Spectral._Pybindings.Basis
The basis chosen in the requested dimension of the grid.
- dim = 1¶
- extents(*args, **kwargs)¶
Overloaded function.
extents(self: spectre.Spectral._Pybindings.Mesh1D) -> spectre.DataStructures._Pybindings.Index1D
The number of grid points in each dimension of the grid.
extents(self: spectre.Spectral._Pybindings.Mesh1D, d: int) -> int
The number of grid points in the requested dimension of the grid.
- number_of_grid_points(self: spectre.Spectral._Pybindings.Mesh1D) int ¶
The total number of grid points in all dimensions.
- quadrature(*args, **kwargs)¶
Overloaded function.
quadrature(self: spectre.Spectral._Pybindings.Mesh1D) -> Annotated[list[spectre.Spectral._Pybindings.Quadrature], FixedSize(1)]
The quadrature chosen in each dimension of the grid.
quadrature(self: spectre.Spectral._Pybindings.Mesh1D, d: int) -> spectre.Spectral._Pybindings.Quadrature
The quadrature chosen in the requested dimension of the grid.
- slices(self: spectre.Spectral._Pybindings.Mesh1D) Annotated[list[spectre.Spectral._Pybindings.Mesh1D], FixedSize(1)] ¶
Returns the Meshes representing 1D slices of this Mesh.
- class spectre.Spectral._Pybindings.Mesh2D¶
- basis(*args, **kwargs)¶
Overloaded function.
basis(self: spectre.Spectral._Pybindings.Mesh2D) -> Annotated[list[spectre.Spectral._Pybindings.Basis], FixedSize(2)]
The basis chosen in each dimension of the grid.
basis(self: spectre.Spectral._Pybindings.Mesh2D, d: int) -> spectre.Spectral._Pybindings.Basis
The basis chosen in the requested dimension of the grid.
- dim = 2¶
- extents(*args, **kwargs)¶
Overloaded function.
extents(self: spectre.Spectral._Pybindings.Mesh2D) -> spectre.DataStructures._Pybindings.Index2D
The number of grid points in each dimension of the grid.
extents(self: spectre.Spectral._Pybindings.Mesh2D, d: int) -> int
The number of grid points in the requested dimension of the grid.
- number_of_grid_points(self: spectre.Spectral._Pybindings.Mesh2D) int ¶
The total number of grid points in all dimensions.
- quadrature(*args, **kwargs)¶
Overloaded function.
quadrature(self: spectre.Spectral._Pybindings.Mesh2D) -> Annotated[list[spectre.Spectral._Pybindings.Quadrature], FixedSize(2)]
The quadrature chosen in each dimension of the grid.
quadrature(self: spectre.Spectral._Pybindings.Mesh2D, d: int) -> spectre.Spectral._Pybindings.Quadrature
The quadrature chosen in the requested dimension of the grid.
- slices(self: spectre.Spectral._Pybindings.Mesh2D) Annotated[list[spectre.Spectral._Pybindings.Mesh1D], FixedSize(2)] ¶
Returns the Meshes representing 1D slices of this Mesh.
- class spectre.Spectral._Pybindings.Mesh3D¶
- basis(*args, **kwargs)¶
Overloaded function.
basis(self: spectre.Spectral._Pybindings.Mesh3D) -> Annotated[list[spectre.Spectral._Pybindings.Basis], FixedSize(3)]
The basis chosen in each dimension of the grid.
basis(self: spectre.Spectral._Pybindings.Mesh3D, d: int) -> spectre.Spectral._Pybindings.Basis
The basis chosen in the requested dimension of the grid.
- dim = 3¶
- extents(*args, **kwargs)¶
Overloaded function.
extents(self: spectre.Spectral._Pybindings.Mesh3D) -> spectre.DataStructures._Pybindings.Index3D
The number of grid points in each dimension of the grid.
extents(self: spectre.Spectral._Pybindings.Mesh3D, d: int) -> int
The number of grid points in the requested dimension of the grid.
- number_of_grid_points(self: spectre.Spectral._Pybindings.Mesh3D) int ¶
The total number of grid points in all dimensions.
- quadrature(*args, **kwargs)¶
Overloaded function.
quadrature(self: spectre.Spectral._Pybindings.Mesh3D) -> Annotated[list[spectre.Spectral._Pybindings.Quadrature], FixedSize(3)]
The quadrature chosen in each dimension of the grid.
quadrature(self: spectre.Spectral._Pybindings.Mesh3D, d: int) -> spectre.Spectral._Pybindings.Quadrature
The quadrature chosen in the requested dimension of the grid.
- slices(self: spectre.Spectral._Pybindings.Mesh3D) Annotated[list[spectre.Spectral._Pybindings.Mesh1D], FixedSize(3)] ¶
Returns the Meshes representing 1D slices of this Mesh.
- class spectre.Spectral._Pybindings.Quadrature¶
Members:
Gauss
GaussLobatto
CellCentered
FaceCentered
Equiangular
- CellCentered = <Quadrature.CellCentered: 3>¶
- Equiangular = <Quadrature.Equiangular: 5>¶
- FaceCentered = <Quadrature.FaceCentered: 4>¶
- Gauss = <Quadrature.Gauss: 1>¶
- GaussLobatto = <Quadrature.GaussLobatto: 2>¶
- property name¶
- property value¶
- spectre.Spectral._Pybindings.collocation_points(mesh: Mesh<1ul>) spectre.DataStructures._Pybindings.DataVector ¶
Collocation points for a one-dimensional mesh.
- spectre.Spectral._Pybindings.differentiation_matrix(mesh: Mesh<1ul>) spectre.DataStructures._Pybindings.Matrix ¶
- spectre.Spectral._Pybindings.exponential_filter(mesh: spectre.Spectral._Pybindings.Mesh1D, alpha: float, half_power: int) spectre.DataStructures._Pybindings.Matrix ¶
- spectre.Spectral._Pybindings.interpolation_matrix(mesh: Mesh<1ul>, target_points: list[float]) spectre.DataStructures._Pybindings.Matrix ¶
- spectre.Spectral._Pybindings.logical_coordinates(*args, **kwargs)¶
Overloaded function.
logical_coordinates(mesh: Mesh<1ul>) -> spectre.DataStructures.Tensor._Pybindings.TensorIDV1ElementLogical
logical_coordinates(mesh: Mesh<2ul>) -> spectre.DataStructures.Tensor._Pybindings.TensorIDV2ElementLogical
logical_coordinates(mesh: Mesh<3ul>) -> spectre.DataStructures.Tensor._Pybindings.TensorIDV3ElementLogical
- spectre.Spectral._Pybindings.modal_to_nodal_matrix(mesh: Mesh<1ul>) spectre.DataStructures._Pybindings.Matrix ¶
Transformation matrix from modal to nodal coefficients for a one-dimensional mesh.
- spectre.Spectral._Pybindings.nodal_to_modal_matrix(mesh: Mesh<1ul>) spectre.DataStructures._Pybindings.Matrix ¶
Transformation matrix from nodal to modal coefficients for a one-dimensional mesh.
- spectre.Spectral._Pybindings.projection_matrix_child_to_parent(child_mesh: spectre.Spectral._Pybindings.Mesh1D, parent_mesh: spectre.Spectral._Pybindings.Mesh1D, size: spectre.Spectral._Pybindings.ChildSize, operand_is_massive: bool) spectre.DataStructures._Pybindings.Matrix ¶
- spectre.Spectral._Pybindings.projection_matrix_parent_to_child(parent_mesh: spectre.Spectral._Pybindings.Mesh1D, child_mesh: spectre.Spectral._Pybindings.Mesh1D, size: spectre.Spectral._Pybindings.ChildSize) spectre.DataStructures._Pybindings.Matrix ¶
- spectre.Spectral._Pybindings.quadrature_weights(mesh: Mesh<1ul>) spectre.DataStructures._Pybindings.DataVector ¶
- spectre.Spectral._Pybindings.zero_lowest_modes(mesh: spectre.Spectral._Pybindings.Mesh1D, number_of_modes_to_zero: int) spectre.DataStructures._Pybindings.Matrix ¶