---
name: "foamToEnsight"
section: "1"
platform: "linux"
package: "openfoam"
version: "1912.200626-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/foamToEnsight"
---

# foamToEnsight(1)

part of OpenFOAM (The Open Source CFD Toolbox).

## NAME

foamToEnsight - part of **OpenFOAM** (The Open Source CFD Toolbox).

## SYNOPSIS

**foamToEnsight** \[*OPTIONS*\]

## DESCRIPTION

```
Translate OpenFOAM data to Ensight format with a part for the internalMesh and
for each patch.
```

## OPTIONS

- **-ascii**

  Write in ASCII format instead of 'C Binary'

- **-case** *dir*

  Specify case directory to use (instead of the cwd)

- **-cellZone** *word*

  Specify cellZone to write

- **-constant**

  Include the 'constant/' dir in the times list

- **-faceZones** *wordRes*

  Specify single or multiple faceZones to write Eg, 'cells' or '( slice "mfp-.\*" )'.

- **-fields** *wordRes*

  Specify single or multiple fields to write (all by default) Eg, 'T' or '( "U.\*" )'

- **-latestTime**

  Select the latest time

- **-name** *subdir*

  Sub-directory name for Ensight output (default: 'EnSight')

- **-no-boundary**

  Suppress writing any patches

- **-no-internal**

  Suppress writing the internal mesh

- **-no-lagrangian**

  Suppress writing lagrangian positions and fields

- **-noZero**

  Exclude the '0/' dir from the times list

- **-nodeValues**

  Write values at nodes

- **-parallel**

  Run in parallel **\[Parallel option\]**

- **-patches** *wordRes*

  Specify single patch or multiple patches to write Eg, 'inlet' or '(outlet "inlet.\*")'

- **-region** *name*

  Specify alternative mesh region

- **-time** *ranges*

  List of ranges. Eg, ':10,20 40:70 1000:', 'none', etc

- **-width** *n*

  Width of Ensight data subdir

- **-doc**

  Display documentation in browser

- **-help**

  Display short help and exit

- **-help-full**

  Display full help and exit

### ADVANCED OPTIONS

- **-debug-switch** *name=val*

  Specify the value of a registered debug switch. Default is 1 if the value is omitted. (Can be used multiple times)

- **-decomposeParDict** *file*

  Use specified file for decomposePar dictionary

- **-fileHandler** *handler*

  Override the file handler type

- **-hostRoots** *((host1 dir1) .. (hostN dirN))*

  Per-host slave root directories for distributed running. The host specification can be a regex. **\[Parallel option\]**

- **-info-switch** *name=val*

  Specify the value of a registered info switch. Default is 1 if the value is omitted. (Can be used multiple times)

- **-lib** *name*

  Additional library or library list to load (can be used multiple times)

- **-noFunctionObjects**

  Do not execute function objects

- **-opt-switch** *name=val*

  Specify the value of a registered optimisation switch (int/bool). Default is 1 if the value is omitted. (Can be used multiple times)

- **-roots** *(dir1 .. dirN)*

  Slave root directories for distributed running **\[Parallel option\]**

- **-doc-source**

  Display source code in browser

- **-help-compat**

  Display compatibility options and exit

- **-help-man**

  Display full help (manpage format) and exit

- **-help-notes**

  Display help notes (description) and exit

### COMPATIBILITY OPTIONS

- **-noLagrangian** (now **-no-lagrangian**)

  The option was last used in 1806.

- **-noPatches** (now **-no-boundary**)

  The option was last used in 1806.

## SEE ALSO

Online documentation https://www.openfoam.com/documentation/

## COPYRIGHT

Copyright © 2018-2019 OpenCFD Ltd.
