Helmholtz Equation#
Module for defining the Helmholtz equation.
- class HelmholtzEquation(k, forcing_term)[source]#
Bases:
EquationImplementation of the Helmholtz equation, defined as follows:
\[\Delta u + k u - f = 0\]Here, \(k\) is the squared wavenumber, while \(f\) is the forcing term.
- Example:
>>> from pina.equation import HelmholtzEquation >>> eq = HelmholtzEquation(k=1.0, forcing_term=lambda x: x**2) >>> # Use within a Condition: >>> # condition = Condition(domain=domain, equation=eq)
Initialization of the
HelmholtzEquationclass.