Equation

class dolfin.cpp.fem.Equation(*args)

Bases: object

This class represents a variational equation lhs == rhs. The equation can be either linear or nonlinear:

  1. Linear (a == L), in which case a must be a bilinear form and L must be a linear form.
  2. Nonlinear (F == 0), in which case F must be a linear form.

Create equation F == 0

Parameters:
  • const Form > F (std::shared_ptr<) – (Form ) [direction=in]
  • rhs (int) – (int) [direction=in]
is_linear()

Check whether equation is linear

Return type:bool
Returns:bool
lhs()

Return form for left-hand side

Return type:std::shared_ptr< const Form >
Returns:Form LHS form
rhs()

Return form for right-hand side

Return type:std::shared_ptr< const Form >
Returns:Form RHS form
rhs_int()

Return value for right-hand side

Return type:int
Returns:int
thisown

The membership flag