Equation.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class Equation

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.
Equation(std::shared_ptr<const Form> a, std::shared_ptr<const Form> L)

Create equation a == L

Equation(std::shared_ptr<const Form> F, int rhs)

Create equation F == 0

bool is_linear() const

Check whether equation is linear

std::shared_ptr<const Form> lhs() const

Return form for left-hand side

std::shared_ptr<const Form> rhs() const

Return form for right-hand side

int rhs_int() const

Return value for right-hand side