tlm_adjoint.fenics.expr
Symbolic expression functionality.
Module Contents
- class tlm_adjoint.fenics.expr.Zero
Mixin for defining a zero-valued variable. Used for zero-valued variables for which UFL zero elimination should not be applied.
- tlm_adjoint.fenics.expr.eliminate_zeros(expr)
Apply zero elimination for
Zeroobjects in the suppliedufl.core.expr.Exprorufl.Form.- Parameters:
expr – A
ufl.core.expr.Exprorufl.Form.- Returns:
A
ufl.core.expr.Exprorufl.Formwith zero elimination applied. May return expr.
- class tlm_adjoint.fenics.expr.Replacement(x, count)
Represents a symbolic variable but with no value.