FoamToTecplot360

From OpenFOAMWiki

1 Name

foamToTecplot360 - Converts OpenFOAM mesh and data to Tecplot 360 format. For more about Tecplot, visit the associated wiki page Tecplot.

Note: As of Tecplot 360 2011 R2, it is possible to load OpenFOAM data directly from inside Tecplot, as explained on this thread: Tecplot 360 2011 R2 preview with OpenFOAM data loader available for evaluation

Valid versions: OF Version 21.png OF Version 22.png

2 Synopsis

ccm26ToFoam [OPTIONS] MESHFILE

3 Description

Converts OpenFOAM mesh and data to Tecplot 360 format.

-case DIR

Execute the command on the case directory DIR. If omitted, use the current directory

-noFunctionObjects

Skip the execution of the functionObjects

-cellSet NAME

Restrict conversion to the specified cellSet named NAME

-constant

Include the constant/ directory in the times list

-excludePatches PATCHES

Example:
-excludePatches '(movingWall fixedWalls frontAndBack)'

-faceSet NAME

Restrict conversion to the specified cellSet named NAME

-fields NAMES

Convert selected fields only. Example:
'(p T U)'

-latestTime

Select the latest time

-nearCellValue

Output cell value on patches instead of patch value itself

-noFaceZones

No faceZones

-noInternal

Do not generate file for mesh, only for patches

-noPointValues

No pointFields

-noZero

Exclude the 0/ directory from the times list. Has precedence over the -zeroTime option

-parallel

Run in parallel

-region NAME

Specify alternative mesh region named NAME

-roots <(dir1 .. dirN)>

Slave root directories for distributed running

-time <ranges>

Comma-separated time ranges. Example:
':10,20,40:70,1000:'

-help

Display the help and exit


LICENSE WARNING - foamToTecplot360 needs the library libtecio which is available for free at Tecplot's website here: TecIO Library

4 Installation

Valid versions: OF version 17.png OF Version 20.png OF Version 21.png OF Version 22.png OF Version 23.png OF Version 24.png OF Version 30.png

Have a look into the following thread: foamToTecplot360

Or follow the instructions available here: localFoamToTecplot360


5 Usage

5.1 Using the foamToTecplot360 utility

To convert OpenFOAM data to Tecplot, run the foamToTecplot360 utility. This will create a subdirectory Tecplot360, in which a .plt file will be created for every time step, plus an additional caseName_grid_0.plt file that contains the mesh information.

  1. Start Tecplot, and then execute "File->Load Data File(s)".
  2. Select "Tecplot data loader" as the data format and continue to the file selection dialogue.
  3. Click the command button "Multiple Files". Do this even if you just want to load a single time step, because you'll need both the data and the grid file.
  4. Now, make sure the first file you add to the list of files to load is the previously mentioned mesh file (caseName_grid_0.plt), then add the rest of the files you wish to view (as usual selection of multiple files can be done using Shift/Ctrl + Click) and hit "OK".


5.2 Using Tecplot to open the case directly

As of Tecplot 360 2011 R2, it is possible to load OpenFOAM data directly from inside Tecplot, as explained on this thread: Tecplot 360 2011 R2 preview with OpenFOAM data loader available for evaluation

Steps:

  1. Start Tecplot, and then execute "File->Load Data File(s)".
  2. Select "OpenFOAM Loader" as the data format and continue to the file selection dialogue.
  3. Click on the "..." button to open your controlDict file in your system folder.
  4. Click the OK button.