scimba_torch.physical_models.kinetic_pde.radiative_transfer¶
Model for the kinetic radiative transfer equation.
Classes
|
Base class for representing Radiative Transfer PDEs. |
- class RadiativeTransfer(space, field, init, f, g, **kwargs)[source]¶
Bases:
KineticPDEBase class for representing Radiative Transfer PDEs.
- Parameters:
space (
AbstractApproxSpace) – Approximation space used for the PDEfield (
EllipticPDE|TemporalPDE) – Field of the PDEinit (
Callable) – Callable for the initial conditionf (
Callable) – Callable for the source termg (
Callable) – Callable for the boundary condition**kwargs – Additional keyword arguments
- rhs(w, t, x, v, mu)[source]¶
Compute the right-hand side (RHS) of the PDE.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorv (
LabelTensor) – Velocity coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor- Returns:
RHS tensor
- space_operator(w, t, x, v, mu)[source]¶
Apply the PDE operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorv (
LabelTensor) – Velocity coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor- Returns:
Operator tensor
- Raises:
NotImplementedError – If x.dim is not 2 or 3.
- bc_rhs(w, t, x, v, n, mu)[source]¶
Compute the boundary condition RHS.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorv (
LabelTensor) – Velocity coordinate tensorn (
LabelTensor) – Normal vector tensormu (
LabelTensor) – Parameter tensor
- Return type:
- Returns:
Boundary condition RHS tensor
- bc_operator(w, t, x, v, n, mu)[source]¶
Apply the boundary condition operator.
- Parameters:
w (
MultiLabelTensor) – Solution tensort (
LabelTensor) – Temporal coordinate tensorx (
LabelTensor) – Spatial coordinate tensorv (
LabelTensor) – Velocity coordinate tensorn (
LabelTensor) – Normal vector tensormu (
LabelTensor) – Parameter tensor
- Return type:
- Returns:
Boundary condition operator tensor
- initial_condition(x, v, mu)[source]¶
Compute the initial condition.
- Parameters:
x (
LabelTensor) – Spatial coordinate tensorv (
LabelTensor) – Velocity coordinate tensormu (
LabelTensor) – Parameter tensor
- Return type:
Tensor- Returns:
Initial condition tensor