FoamToTecplot360
Contents
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
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
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.
- Start Tecplot, and then execute "File->Load Data File(s)".
- Select "Tecplot data loader" as the data format and continue to the file selection dialogue.
- 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.
- 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:
- Start Tecplot, and then execute "File->Load Data File(s)".
- Select "OpenFOAM Loader" as the data format and continue to the file selection dialogue.
- Click on the "..." button to open your controlDict file in your system folder.
- Click the OK button.