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
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 4Internal Representation DetailsThis chapter explains how <strong>UFL</strong> forms <strong>and</strong> expressions are represented indetail. Most operations are mirrored by a representation class, e.g., Sum <strong>and</strong>Product, all which are subclasses of Expr. You can import all of them fromthe submodule ufl.classes byfrom ufl.classes import *TODO: Automate the construction of class hierarchy figures using ptex2tex.4.1 Structure of a FormTODO: Add class relations figure with Form, Integral, Expr, Terminal, Operator.EachFormownsmultipleIntegralinstances,eachassociatedwithadifferentMeasure. An Integral owns a Measure <strong>and</strong> an Expr, which represents theintegr<strong>and</strong> expression. The Expr is the base class of all expressions. It hastwo direct subclasses Terminal <strong>and</strong> Operator.75