DiscreteOperators_build_gradient

dolfin.cpp.fem.DiscreteOperators_build_gradient()

Build the discrete gradient operator A that takes a \(w \in H^1\) (P1, nodal Lagrange ) to \(v \in H(curl)\) (lowest order Nedelec), i.e. v = Aw. V0 is the H(curl) space, and V1 is the P1 Lagrange space.

Parameters:
  • FunctionSpace & V0 (const) – (FunctionSpace &) H(curl) space [direction=in]
  • FunctionSpace & V1 (const) – (FunctionSpace &) P1 Lagrange space [direction=in]
Return type:

std::shared_ptr< GenericMatrix >

Returns:

GenericMatrix