foamToEnsight.C File Reference

Translate OpenFOAM data to EnSight format. An Ensight part is created for cellZones (unzoned cells are "internalMesh") and patches. More...

Go to the source code of this file.

Detailed Description

Translate OpenFOAM data to EnSight format. An Ensight part is created for cellZones (unzoned cells are "internalMesh") and patches.

Original source file foamToEnsight.C

  • Handles volume fields, dimensioned fields, point fields
  • Handles mesh topology changes.
Usage
foamToEnsight [OPTION]

Options:

  • -ascii
    Write Ensight data in ASCII format instead of "C Binary"
  • -fields <fields>
    Specify single or multiple fields to write (all by default) For example,
          -fields T
          -fields '(p T U \"alpha.*\")'
    The quoting is required to avoid shell expansions and to pass the information as a single argument.
  • -nearCellValue
    Use zero-gradient cell values on patches
  • -nodeValues
    Force interpolation of values to nodes
  • -no-boundary
    Suppress output for all boundary patches
  • -no-internal
    Suppress output for internal (volume) mesh
  • -no-cellZones
    Suppress cellZone handling
  • -no-lagrangian
    Suppress writing lagrangian positions and fields.
  • -no-mesh
    Suppress writing the geometry. Can be useful for converting partial results for a static geometry.
  • -no-point-data
    Suppress conversion of pointFields. No interpolated PointData.
  • -noZero
    Exclude the often incomplete initial conditions.
  • -index <start>
    Use consecutive indexing for data/######## files with the specified start index. Ignore the time index contained in the uniform/time file.
  • -name <subdir>
    Define sub-directory name to use for Ensight data (default: "EnSight")
  • -width <n>
    Width of Ensight data subdir (default: 8)
  • -cellZones NAME | LIST
    Specify single zone or multiple cell zones (name or regex) to write
  • -faceZones NAME | LIST
    Specify single zone or multiple face zones (name or regex) to write
  • -patches NAME | LIST
    Specify single patch or multiple patches (name or regex) to write For example,
          -patches top
          -patches '( front \".*back\" )'
  • -exclude-patches NAME | LIST
    Exclude single or multiple patches (name or regex) from writing. For example,
          -exclude-patches '( inlet_1 inlet_2 "proc.*" )'

Definition in file foamToEnsight.C.