scimba_torch.physical_models.kinetic_pde.radiative_transfer

Model for the kinetic radiative transfer equation.

Classes

RadiativeTransfer(space, field, init, f, g, ...)

Base class for representing Radiative Transfer PDEs.

class RadiativeTransfer(space, field, init, f, g, **kwargs)[source]

Bases: KineticPDE

Base class for representing Radiative Transfer PDEs.

Parameters:
  • space (AbstractApproxSpace) – Approximation space used for the PDE

  • field (EllipticPDE | TemporalPDE) – Field of the PDE

  • init (Callable) – Callable for the initial condition

  • f (Callable) – Callable for the source term

  • g (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:
Return type:

Tensor

Returns:

RHS tensor

space_operator(w, t, x, v, mu)[source]

Apply the PDE operator.

Parameters:
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:
Return type:

LabelTensor

Returns:

Boundary condition RHS tensor

bc_operator(w, t, x, v, n, mu)[source]

Apply the boundary condition operator.

Parameters:
Return type:

LabelTensor

Returns:

Boundary condition operator tensor

initial_condition(x, v, mu)[source]

Compute the initial condition.

Parameters:
Return type:

Tensor

Returns:

Initial condition tensor