---
name: "ufl-convert-3"
section: "1"
platform: "linux"
package: "python3-ufl"
version: "2016.2.0-2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ufl-convert-3"
---

# ufl-convert-3(1)

Convert a .ufl file to some other format.

## NAME

ufl-convert - Convert a .ufl file to some other format.

## SYNOPSIS

**ufl-convert** \[*OPTIONS*\] input.ufl

## OPTIONS

- **-h**, **--help**

  Display help text and exit.

- **-o** OUTPUTDIR, **--outputdir**=OUTPUTDIR

  Output directory.

- **-i** INPUTDIR, **--inputdir**=INPUTDIR

  Output directory.

- **-c** COMPILE, **--compile**=COMPILE

  ´Compile´ forms: apply expression transformations like in a quadrature based form compilation.

- **-f** FORMAT, **--format**=FORMAT

  Rendering format (str, repr, tree, dot, latex).

- **-t** FILETYPE, **--filetype**=FILETYPE

  Output file type (txt, py, dot, tex, ps, pdf, png).

- **-s** SHOW, **--show**=SHOW

  Open in an external viewer.

## EXAMPLES

- ufl-convert -omydir -iyourdir -c -f -tpdf -s mass.ufl

  ## BUGS

- See https://fenicsproject.org/support/ for channels to send comments,

  questions, bug reports etc.

## LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program.  If not, see \<http://www.gnu.org/licenses/\>.

## AUTHOR

ufl-convert was written by Martin Sandve Alnæs \<martinal@simula.no\>.

This manual page was written by Johannes Ring \<johannr@simula.no\>.
