13.07.2015 Views

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

UFL Specification and User Manual 0.3 - FEniCS Project

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

<strong>UFL</strong> <strong>Specification</strong> <strong>and</strong> <strong>User</strong> <strong>Manual</strong> <strong>0.3</strong>Martin S. Alnæs, Anders Logg4.2.3 cellu.cell() returns the first Cell instance found in u. It is currently assumedin<strong>UFL</strong>thatnotwodifferentcellsareusedinasingleform. Notallexpressiondefine a cell, in which case this returns None <strong>and</strong> u is spatially constant. Notethat this property is used in some algorithms.4.2.4 shapeu.shape() returns a tuple of integers, which is the tensor shape of u.4.2.5 free indicesu.free indices() returns a tuple of Index objects, which are the unassigned,free indices of u.4.2.6 index dimensionsu.index dimensions() returns a dict mapping from each Index instancein u.free indices() to the integer dimension of the value space each indexcan range over.4.2.7 str(u)str(u) returns a human-readable string representation of u.4.2.8 repr(u)repr(u)returnsaPythonstringrepresentationof u,suchthateval(repr(u))== u holds in Python.77

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

Saved successfully!

Ooh no, something went wrong!