DiffusionReactionProblem#

Formulation of the diffusion-reaction problem.

class DiffusionReactionProblem[source]#

Bases: TimeDependentProblem, SpatialProblem

Implementation of the diffusion-reaction problem in the spatial interval \([-\pi, \pi]\) and temporal interval \([0, 1]\).

See also

Original reference: Si, Chenhao, et al. Complex Physics-Informed Neural Network. arXiv preprint arXiv:2502.04917 (2025). DOI: arXiv:2502.04917.

Example:
>>> problem = DiffusionReactionProblem()

Initialization of the AbstractProblem class.

solution(pts)[source]#

Implementation of the analytical solution of the diffusion-reaction problem.

Parameters:

pts (LabelTensor) – Points where the solution is evaluated.

Returns:

The analytical solution of the diffusion-reaction problem.

Return type:

LabelTensor