Burgers’ Equation#
Module for defining the Burgers equation.
- class BurgersEquation(nu)[source]#
Bases:
EquationImplementation of the N-dimensional Burgers’ equation, defined as follows:
\[\frac{\partial u}{\partial t} + u \cdot \nabla u = \nu \Delta u\]Here, \(\nu\) is the viscosity coefficient.
- Example:
>>> from pina.equation import BurgersEquation >>> eq = BurgersEquation(nu=0.01) >>> # Use within a Condition: >>> # condition = Condition(domain=domain, equation=eq)
Initialization of the
BurgersEquationclass.- Parameters:
- Raises:
ValueError – If
nuis not a float or an int.ValueError – If
nuis negative.