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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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.9 hash(u)hash(u) returns a hash code for u, which is used extensively (indirectly) inalgorithms whenever u is placed in a Python dict or set.4.2.10 u == vu == v returns true if <strong>and</strong> only if u <strong>and</strong> v represents the same expressionin the exact same way. This is used extensively (indirectly) in algorithmswhenever u is placed in a Python dict or set.4.2.11 About other relational operatorsIn general, <strong>UFL</strong> expressions are not possible to fully evaluate since the cell<strong>and</strong> the values of form arguments are not available. Implementing relationaloperators for immediate evaluation is therefore impossible.Overloadingrelationaloperatorsasapartoftheformlanguageisnotpossibleeither, since it interferes with the correct use of container types in Pythonlike dict or set.4.3 ElementsAll finite element classes have a common base class FiniteElementBase.The class hierarchy looks like this:TODO: Class figure.TODO: Describe all FiniteElementBase subclasses here.78

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

Saved successfully!

Ooh no, something went wrong!