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 LoggTo try this tool, go to the demo/ directory of the <strong>UFL</strong> source tree. Some ofthe features to try are basic printing of str <strong>and</strong> repr string representationsof each form:# ufl-convert --format=str stiffness.ufl# ufl-convert --format=repr stiffness.uflcompilation of forms to mathematical notation in L A TEX:# ufl-convert --filetype=pdf --format=tex --show=1 stiffness.uflL A TEX output of forms after processing with <strong>UFL</strong> compiler utilities:# ufl-convert -tpdf -ftex -s1 --compile=1 stiffness.ufl<strong>and</strong> visualization of expression trees using graphviz via compilation of formsto the dot format:# ufl-convert -tpdf -fdot -s1 stiffness.uflType ufl-convert --help for more details.A.3 Conversion from FFC form files: form2uflThe comm<strong>and</strong> form2ufl can be used to convert old FFC .form files to <strong>UFL</strong>format. To convert a form file named myform.form to <strong>UFL</strong> format, simplytype# form2ufl myform.uflNote that although, the form2ufl script may be helpful as a guide to convertingold FFC .form files, it is not foolproof <strong>and</strong> may not always yieldvalid <strong>UFL</strong> files.96

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

Saved successfully!

Ooh no, something went wrong!