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 @param[in] a (Form)

Form representing the LHS
@param[in] L (Form)
Form representing the RHS
Equation(std::shared_ptr<const Form> F, int rhs)

Create equation F == 0 @param[in] F (Form) @param[in] rhs (int)

bool is_linear() const

Check whether equation is linear @return bool

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

Return form for left-hand side @return Form LHS form

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

Return form for right-hand side @return Form RHS form

int rhs_int() const

Return value for right-hand side @return int