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...
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 Loggpost traversalTODO: traversal.pypre traversalTODO: traversal.pywalkTODO: traversal.pytraverse terminalsTODO: traversal.py5.2.2 Extracting informationTODO: analysis.py5.2.3 Transforming expressionsSo far the algorithms presented has been about inspecting expressions in variousways. Some recurring patterns occur when writing algorithms to modifyexpressions, either to apply mathematical transformations or to change theirrepresentation. Usually, different expression node types need different treatment.To assist in such algorithms, <strong>UFL</strong> provides the Transformer class. This implementsa variant of the Visitor pattern to enable easy definition of trans-84