From 6a247c6ec2f608b984ffeeca8ce02f9acd2463ac Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 1 Dec 2009 19:10:15 +0000 Subject: [PATCH] foam to Tecplot360 converter --- .../dataConversion/foamToTecplot360/Allwmake | 14 + .../dataConversion/foamToTecplot360/Make/files | 5 + .../dataConversion/foamToTecplot360/Make/options | 12 + .../foamToTecplot360/foamToTecplot360.C | 1366 ++++ .../dataConversion/foamToTecplot360/readFields.C | 87 + .../dataConversion/foamToTecplot360/readFields.H | 71 + .../dataConversion/foamToTecplot360/tecio/Runmake | 277 + .../tecio/examples/arrow/Arrow.plt | Bin 0 -> 1412 bytes .../foamToTecplot360/tecio/examples/arrow/Makefile | 11 + .../tecio/examples/arrow/arrow.cpp | 530 ++ .../tecio/examples/arrow/arrow.vcproj | 172 + .../tecio/examples/comtest/Makefile | 11 + .../tecio/examples/comtest/comtest.c | 492 ++ .../tecio/examples/comtest/comtest.f | 467 ++ .../tecio/examples/comtest/comtest.f90 | 467 ++ .../tecio/examples/comtest/comtestc.vcproj | 346 + .../tecio/examples/comtest/comtestf.vfproj | 26 + .../tecio/examples/faceneighbors/FaceNeighbors.plt | Bin 0 -> 756 bytes .../tecio/examples/faceneighbors/Makefile | 11 + .../tecio/examples/faceneighbors/faceneighbors.cpp | 354 + .../examples/faceneighbors/faceneighbors.vcproj | 172 + .../tecio/examples/gridsolution/Makefile | 11 + .../tecio/examples/gridsolution/gridsolution.cpp | 376 + .../examples/gridsolution/gridsolution.vcproj | 321 + .../tecio/examples/ij_ordered/Makefile | 11 + .../tecio/examples/ij_ordered/ij_ordered.cpp | 149 + .../tecio/examples/ij_ordered/ij_ordered.plt | Bin 0 -> 584 bytes .../tecio/examples/ij_ordered/ij_ordered.vcproj | 172 + .../tecio/examples/multiplefiles/Makefile | 11 + .../tecio/examples/multiplefiles/file1.plt | Bin 0 -> 448 bytes .../tecio/examples/multiplefiles/file2.plt | Bin 0 -> 356 bytes .../tecio/examples/multiplefiles/multiplefiles.cpp | 214 + .../examples/multiplefiles/multiplefiles.vcproj | 172 + .../multiplepolygons/HexagonsAndOctagon.plt | Bin 0 -> 1480 bytes .../tecio/examples/multiplepolygons/Makefile | 11 + .../examples/multiplepolygons/multiplepolygons.cpp | 569 ++ .../multiplepolygons/multiplepolygons.vcproj | 172 + .../tecio/examples/octagon/Makefile | 11 + .../tecio/examples/octagon/Octagon.plt | Bin 0 -> 520 bytes .../tecio/examples/octagon/octagon.cpp | 248 + .../tecio/examples/octagon/octagon.vcproj | 172 + .../tecio/examples/pyramid/Makefile | 11 + .../tecio/examples/pyramid/pyramid.cpp | 222 + .../tecio/examples/pyramid/pyramid.plt | Bin 0 -> 600 bytes .../tecio/examples/pyramid/pyramid.vcproj | 172 + .../tecio/examples/simtest/Makefile | 11 + .../tecio/examples/simtest/simtest.c | 100 + .../tecio/examples/simtest/simtest.f | 98 + .../tecio/examples/simtest/simtest.f90 | 98 + .../tecio/examples/simtest/simtestc.vcproj | 346 + .../tecio/examples/simtest/simtestf.vfproj | 26 + .../tecio/examples/squares/Makefile | 11 + .../tecio/examples/squares/squares.cpp | 124 + .../tecio/examples/squares/squares.plt | Bin 0 -> 1304 bytes .../tecio/examples/squares/squares.vcproj | 172 + .../foamToTecplot360/tecio/examples/text/Makefile | 11 + .../foamToTecplot360/tecio/examples/text/text.cpp | 112 + .../foamToTecplot360/tecio/examples/text/text.plt | Bin 0 -> 264 bytes .../tecio/examples/text/text.vcproj | 172 + .../foamToTecplot360/tecio/pltview.cpp | 559 ++ .../foamToTecplot360/tecio/readme.txt | 51 + .../foamToTecplot360/tecio/tecsrc/ALLOC.h | 205 + .../foamToTecplot360/tecio/tecsrc/ARRLIST.h | 626 ++ .../foamToTecplot360/tecio/tecsrc/AUXDATA.h | 130 + .../foamToTecplot360/tecio/tecsrc/DATAIO.h | 63 + .../foamToTecplot360/tecio/tecsrc/DATAIO4.h | 213 + .../foamToTecplot360/tecio/tecsrc/DATASET.h | 90 + .../foamToTecplot360/tecio/tecsrc/DATASET0.h | 404 ++ .../foamToTecplot360/tecio/tecsrc/DATASHR.h | 70 + .../foamToTecplot360/tecio/tecsrc/DATAUTIL.h | 116 + .../foamToTecplot360/tecio/tecsrc/FACE.h | 149 + .../foamToTecplot360/tecio/tecsrc/FILESTREAM.h | 75 + .../foamToTecplot360/tecio/tecsrc/GEOM.h | 71 + .../foamToTecplot360/tecio/tecsrc/GEOM2.h | 46 + .../foamToTecplot360/tecio/tecsrc/GLOBAL.h | 7271 ++++++++++++++++++++ .../foamToTecplot360/tecio/tecsrc/INPUT.h | 196 + .../foamToTecplot360/tecio/tecsrc/MASTER.h | 684 ++ .../foamToTecplot360/tecio/tecsrc/Make/files | 21 + .../foamToTecplot360/tecio/tecsrc/Make/options | 4 + .../foamToTecplot360/tecio/tecsrc/Q_MSG.h | 72 + .../foamToTecplot360/tecio/tecsrc/Q_UNICODE.h | 93 + .../foamToTecplot360/tecio/tecsrc/SET.h | 283 + .../foamToTecplot360/tecio/tecsrc/STRLIST.h | 122 + .../foamToTecplot360/tecio/tecsrc/STRUTIL.h | 218 + .../foamToTecplot360/tecio/tecsrc/SYSTEM.h | 67 + .../foamToTecplot360/tecio/tecsrc/TASSERT.h | 513 ++ .../foamToTecplot360/tecio/tecsrc/TECIO.h | 24 + .../foamToTecplot360/tecio/tecsrc/TECXXX.h | 698 ++ .../foamToTecplot360/tecio/tecsrc/TEXT.h | 62 + .../tecio/tecsrc/TranslatedString.cpp | 362 + .../tecio/tecsrc/TranslatedString.h | 293 + .../foamToTecplot360/tecio/tecsrc/VERSION.h | 23 + .../foamToTecplot360/tecio/tecsrc/alloc.cpp | 161 + .../foamToTecplot360/tecio/tecsrc/arrlist.cpp | 1671 +++++ .../foamToTecplot360/tecio/tecsrc/auxdata.cpp | 809 +++ .../foamToTecplot360/tecio/tecsrc/dataio.cpp | 695 ++ .../foamToTecplot360/tecio/tecsrc/dataio4.cpp | 3357 +++++++++ .../foamToTecplot360/tecio/tecsrc/dataset.cpp | 283 + .../foamToTecplot360/tecio/tecsrc/dataset0.cpp | 1668 +++++ .../foamToTecplot360/tecio/tecsrc/datautil.cpp | 941 +++ .../foamToTecplot360/tecio/tecsrc/filestream.cpp | 78 + .../foamToTecplot360/tecio/tecsrc/geom2.cpp | 89 + .../foamToTecplot360/tecio/tecsrc/q_msg.cpp | 415 ++ .../foamToTecplot360/tecio/tecsrc/q_unicode.cpp | 447 ++ .../foamToTecplot360/tecio/tecsrc/set.cpp | 696 ++ .../foamToTecplot360/tecio/tecsrc/stdafx.h | 163 + .../foamToTecplot360/tecio/tecsrc/strlist.cpp | 1065 +++ .../foamToTecplot360/tecio/tecsrc/strutil.cpp | 936 +++ .../foamToTecplot360/tecio/tecsrc/tassert.cpp | 261 + .../foamToTecplot360/tecio/tecsrc/tecxxx.cpp | 4812 +++++++++++++ .../foamToTecplot360/tecplotWriter.C | 516 ++ .../foamToTecplot360/tecplotWriter.H | 179 + .../foamToTecplot360/tecplotWriterTemplates.C | 199 + .../dataConversion/foamToTecplot360/vtkMesh.C | 84 + .../dataConversion/foamToTecplot360/vtkMesh.H | 179 + 115 files changed, 42775 insertions(+) create mode 100755 applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/files create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/options create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/readFields.C create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/readFields.H create mode 100755 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/Runmake create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/Arrow.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.c create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f90 create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestc.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestf.vfproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/FaceNeighbors.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/faceneighbors.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/faceneighbors.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/ij_ordered.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/ij_ordered.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/ij_ordered.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/file1.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/file2.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/multiplefiles.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/multiplefiles.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/HexagonsAndOctagon.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/Octagon.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.c create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f90 create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestc.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestf.vfproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/squares.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/squares.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/squares.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/Makefile create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/text.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/text.plt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/text.vcproj create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/pltview.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/readme.txt create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ALLOC.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ARRLIST.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/AUXDATA.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO4.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET0.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASHR.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAUTIL.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FACE.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FILESTREAM.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM2.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GLOBAL.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/INPUT.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/MASTER.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Make/files create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Make/options create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Q_MSG.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/Q_UNICODE.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/SET.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/STRLIST.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/STRUTIL.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/SYSTEM.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TASSERT.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TECIO.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TECXXX.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TEXT.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TranslatedString.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/TranslatedString.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/VERSION.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/alloc.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/arrlist.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/auxdata.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/dataio.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/dataio4.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/dataset.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/dataset0.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/datautil.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/filestream.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/geom2.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/q_msg.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/q_unicode.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/set.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/stdafx.h create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/strlist.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/strutil.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/tassert.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/tecxxx.cpp create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.C create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.H create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriterTemplates.C create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/vtkMesh.C create mode 100644 applications/utilities/postProcessing/dataConversion/foamToTecplot360/vtkMesh.H diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake new file mode 100755 index 00000000..935e8e39 --- /dev/null +++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Build optional components (eg, may depend on third-party libraries) +# ----------------------------------------------------------------------------- +cd ${0%/*} || exit 1 # run from this directory +set -x + +# build tecio +wmake libso tecio/tecsrc + +# build converter +wmake + +# ----------------------------------------------------------------- end-of-file diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/files b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/files new file mode 100644 index 00000000..270e8493 --- /dev/null +++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/files @@ -0,0 +1,5 @@ +tecplotWriter.C +vtkMesh.C +foamToTecplot360.C + +EXE = $(FOAM_APPBIN)/foamToTecplot360 diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/options b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/options new file mode 100644 index 00000000..0c2c8b72 --- /dev/null +++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/Make/options @@ -0,0 +1,12 @@ +EXE_INC = \ + -I$(WM_THIRD_PARTY_DIR)/tecio/tecsrc/lnInclude \ + -I$(LIB_SRC)/lagrangian/basic/lnInclude \ + -I$(LIB_SRC)/finiteVolume/lnInclude \ + -I$(LIB_SRC)/meshTools/lnInclude + + +EXE_LIBS = \ + -ltecio \ + -llagrangian \ + -lfiniteVolume \ + -lmeshTools diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C new file mode 100644 index 00000000..8ed17ebf --- /dev/null +++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C @@ -0,0 +1,1366 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Application + foamToTecplot360 + +Description + Tecplot binary file format writer. + +Usage + + - foamToTecplot360 [OPTION] + + @param -fields \\n + Convert selected fields only. For example, + @verbatim + -fields '( p T U )' + @endverbatim + The quoting is required to avoid shell expansions and to pass the + information as a single argument. + + @param -cellSet \\n + @param -faceSet \\n + Restrict conversion to the cellSet, faceSet. + + @param -nearCellValue \n + Output cell value on patches instead of patch value itself + + @param -noInternal \n + Do not generate file for mesh, only for patches + + @param -noPointValues \n + No pointFields + + @param -noFaceZones \n + No faceZones + + @param -excludePatches \\n + Specify patches (wildcards) to exclude. For example, + @verbatim + -excludePatches '( inlet_1 inlet_2 "proc.*")' + @endverbatim + The quoting is required to avoid shell expansions and to pass the + information as a single argument. The double quotes denote a regular + expression. + + @param -useTimeName \n + use the time index in the VTK file name instead of the time index + +\*---------------------------------------------------------------------------*/ + +#include "pointMesh.H" +#include "volPointInterpolation.H" +#include "emptyPolyPatch.H" +#include "labelIOField.H" +#include "scalarIOField.H" +#include "sphericalTensorIOField.H" +#include "symmTensorIOField.H" +#include "tensorIOField.H" +#include "passiveParticleCloud.H" +#include "faceSet.H" +#include "stringListOps.H" +#include "wordRe.H" + +#include "vtkMesh.H" +#include "readFields.H" +#include "tecplotWriter.H" + +#include "TECIO.h" + +// Note: needs to be after TECIO to prevent Foam::Time conflicting with +// Xlib Time. +#include "fvCFD.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +template +void print(const char* msg, Ostream& os, const PtrList& flds) +{ + if (flds.size()) + { + os << msg; + forAll(flds, i) + { + os<< ' ' << flds[i].name(); + } + os << endl; + } +} + + +void print(Ostream& os, const wordList& flds) +{ + forAll(flds, i) + { + os<< ' ' << flds[i]; + } + os << endl; +} + + +labelList getSelectedPatches +( + const polyBoundaryMesh& patches, + const List& excludePatches //HashSet& excludePatches +) +{ + DynamicList