12.07.2015 Views

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

DOLFIN User Manual - FEniCS Project

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DOLFIN</strong> <strong>User</strong> <strong>Manual</strong>Hoffman, Jansson, Logg, Wellswhich generates a file Heat.h when compiled with FFC. To initializationsthe corresponding forms we write:real k;Vector x0;Function U0(x0, mesh);// time step// vector containing dofs for u0// solution at previous time stepHeat::BilinearForm a(k);Heat::LinearForm L(U0, f, k);51

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

Saved successfully!

Ooh no, something went wrong!