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, WellsDepending on the actual underlying representation of a Function, it mayalso be possible to evaluate a Function at any given Point.5.1.1 RepresentationCurrently supported representations of Functions include discrete Functionsand user-defined Functions. These are discussed in detail below.5.1.2 EvaluationAll Functions can be evaluated at the Vertices of a Mesh. The followingexample illustrates how to evaluate a scalar Function at each Vertex of agiven Mesh:Function f;Mesh mesh;for (VertexIterator vertex(mesh); !vertex.end(); ++vertex)cout

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

Saved successfully!

Ooh no, something went wrong!