DOLFIN User Manual - FEniCS Project
DOLFIN User Manual - FEniCS Project
DOLFIN User Manual - FEniCS Project
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, Wellsclass MyNonlinearFunction : public NonlinearFunction{public:// ConstructorMyNonlinearFunction() : NonlinearFunction(){}// Compute F(u)void F(Vector& b, const Vector& x){// Insert F(u) into the vector b}// Compute Jvoid J(Matrix& A, const Vector& x){// Insert the Jacobian into the matrix A}dolfin::uint size(){// Return the dimension of the Jacobian matrix}dolfin::uint nzsize(){// Return the maximum number of zeroes per row of J}private:// Pointers to objects with which F(u) is defined};54