scimba_torch.physical_models.temporal_pde.abstract_temporal_pde¶
Module for abstract temporal PDEs.
Classes
|
Base class for representing elliptic Partial Differential Equations (PDEs). |
|
Base class for representing elliptic Partial Differential Equations (PDEs). |
|
Base class for representing elliptic Partial Differential Equations (PDEs). |
- class TemporalPDE(space, linear=False, **kwargs)[source]¶
Bases:
ABCBase class for representing elliptic Partial Differential Equations (PDEs).
- Parameters:
space (
AbstractApproxSpace) – Approximation space used for the PDElinear (
bool) – Whether the PDE is linear**kwargs – Additional keyword arguments
- grad(w, y)[source]¶
Compute the gradient of the tensor w with respect to the tensor y.
- Parameters:
w (
Tensor|MultiLabelTensor) – Input tensory (
Tensor|LabelTensor) – Tensor with respect to which the gradient is computed
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Gradient tensor
- abstract rhs(w, t, x, mu)[source]¶
Compute the right-hand side (RHS) of the PDE.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
RHS tensor
- abstract space_operator(w, t, x, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor
- abstract time_operator(w, t, x, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor
- operator(w, t, x, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor
- abstract bc_rhs(w, t, x, n, mu)[source]¶
Compute the boundary condition RHS.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorn (
LabelTensor) – Normal vector tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor- Returns:
Boundary condition RHS tensor
- abstract bc_operator(w, t, x, n, mu)[source]¶
Apply the boundary condition operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorn (
LabelTensor) – Normal vector tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor- Returns:
Boundary condition operator tensor
- abstract initial_condition(x, mu)[source]¶
Compute the initial condition.
- Parameters:
x (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
tuple[Tensor,...]- Returns:
Initial condition tensor
- class FirstOrderTemporalPDE(space, linear=False, **kwargs)[source]¶
Bases:
TemporalPDEBase class for representing elliptic Partial Differential Equations (PDEs).
- Parameters:
space (
AbstractApproxSpace) – Approximation space used for the PDElinear (
bool) – Whether the PDE is linear**kwargs – Additional keyword arguments
- time_operator(w, t, x, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor
- class SecondOrderTemporalPDE(space, linear=False, **kwargs)[source]¶
Bases:
TemporalPDEBase class for representing elliptic Partial Differential Equations (PDEs).
- Parameters:
space (
AbstractApproxSpace) – Approximation space used for the PDElinear (
bool) – Whether the PDE is linear**kwargs – Additional keyword arguments
- time_operator(w, t, x, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor|tuple[Tensor,...]- Returns:
Operator tensor