Fixed Value#
Module for defining the fixed value equation.
- class FixedValue(value, components=None)[source]#
Bases:
EquationEquation to enforce a fixed value. Can be used to enforce Dirichlet Boundary conditions.
- Example:
>>> from pina.equation import FixedValue >>> eq = FixedValue(value=0.0) >>> # Use within a Condition: >>> # condition = Condition(domain=domain, equation=eq)
Initialization of the
FixedValueclass.- Parameters:
- Raises:
ValueError – If
valueis neither a float nor an integer.ValueError – If, when provided,
componentsis neither a string nor a list of strings.