7.15. cape-uh3d2tri: Convert UH3D triangulation to Cart3D format

Convert a .uh3d file to a Cart3D triangulation format.

If the name of the output file is not specified, it will just add ‘.tri’ as the extension to the input (deleting ‘.uh3d’ if possible).

Usage:
$ cape-uh3d2tri UH3D [OPTIONS]
$ cape-uh3d2tri UH3D TRI [OPTIONS]
$ cape-uh3d2tri [OPTIONS]
Inputs:
  • UH3D: Name of input ‘.uh3d’ file

  • TRI: Name of output ‘.tri’ file

Options:
-h, --help

Display this help message and exit

-i UH3D

Use UH3D as input file

-o TRI

Use TRI as name of created output file

-c CONFIGFILE

Use file CONFIGFILE to map component ID numbers; guess type based on file name

--xml XML

Use file XML as config file with XML format

--json JSON

Use file JSON as JSON-style surface config file

--mixsur MIXSUR

Use file MIXSUR to label surfaces assuming mixsur or usurp input file format

--ascii

Write TRI as an ASCII file (default)

--binary, --bin

Write TRI as an unformatted Fortran binary file

--byteorder BO, --endian BO

Override system byte order using either ‘big’ or ‘little’

--bytecount PREC

Use a PREC of 4 for single- or 8 for double-precision

--xtol XTOL

Truncate nodal coordinates within XTOL of x=0 plane to zero

--ytol YTOL

Truncate nodal coordinates within YTOL of y=0 plane to zero

--ztol ZTOL

Truncate nodal coordinates within ZTOL of z=0 plane to zero

--dx DX

Translate all nodes by DX in x direction

--dy DY

Translate all nodes by DY in y direction

--dz DZ

Translate all nodes by DZ in z direction

Versions:
  • 2014-06-12 @ddalle: Version 1.0

  • 2015-10-09 @ddalle: Version 1.1
    • Add tolerances and Config.xml processing

    • Add dx, dy, dz translation options