tlm_adjoint.fenics.projection

Projection operations with FEniCS.

Module Contents

class tlm_adjoint.fenics.projection.Projection(x, rhs, *args, **kwargs)

Represents the solution of a finite element variational problem performing a projection onto the space for x.

Parameters:
  • x – A DOLFIN Function defining the forward solution.

  • rhs – A ufl.core.expr.Expr defining the expression to project onto the space for x. Should not depend on x.

Remaining arguments are passed to the tlm_adjoint.fenics.solve.EquationSolver constructor.

class tlm_adjoint.fenics.projection.LocalProjection(x, rhs, *args, **kwargs)

Represents the solution of a finite element variational problem performing a projection onto the space for x, for the case where the mass matrix is element-wise local block diagonal.

Parameters:
  • x – A DOLFIN Function defining the forward solution.

  • rhs – A ufl.core.expr.Expr defining the expression to project onto the space for x. Should not depend on x.

Remaining arguments are passed to the tlm_adjoint.fenics.solve.LocalEquationSolver constructor.