Advection Equation#

Module for defining the advection equation.

class AdvectionEquation(c)[source]#

Bases: Equation

Implementation of the N-dimensional advection equation with constant velocity parameter. The equation is defined as follows:

\[\frac{\partial u}{\partial t} + c \cdot \nabla u = 0\]

Here, \(c\) is the advection velocity parameter.

Initialization of the AdvectionEquation class.

Parameters:

c (float | int | List[float] | List[int]) – The advection velocity. If a scalar is provided, the same velocity is applied to all spatial dimensions. If a list is provided, it must contain one value per spatial dimension.

Raises:

ValueError – If c is an empty list.