12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!