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, Wellslinear combinations of basis functions:v =N∑v i φ i , (5.1)i=1where {φ i } N i=1 is the global basis of the finite element space defined by theMesh and the FiniteElement, and the nodal values {v i } N i=1 are given by thevalues of a Vector.Note that a discrete Function may not be evaluated at arbitrary points (onlyat each Vertex of a Mesh).5.2.1 Creating a discrete functionA discrete Function can be initialized in several ways. In the simplest case,only a Vector x of nodal values needs to be specified:Vector x;Function f(x);If possible, <strong>DOLFIN</strong> will then automatically try to determine the Mesh andthe FiniteElement.In some cases, it is necessary to also supply a Mesh when initializing a discreteFunction:Vector x;Mesh mesh;Function f(x, mesh);If possible, <strong>DOLFIN</strong> will then automatically try to determine the FiniteElement.37

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

Saved successfully!

Ooh no, something went wrong!