Skip to content

This is an adaptation of foamToTecplot360 from the original OpenFOAM (www.openfoam.org), designed for those using the Debian/RPM installation packages of OpenFOAM. This adaptation in no way supported by the original authors and trademark holders.

License

Notifications You must be signed in to change notification settings

wyldckat/localFoamToTecplot360

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Table of Contents

localFoamToTecplot360

This is an adaptation of foamToTecplot360 from the original OpenFOAM(R), designed for those using the Debian/RPM installation packages of OpenFOAM. This adaptation in no way supported by the original authors and trademark holders, namely:

  • OPENFOAM and OpenCFD are registered trademarks of OpenCFD Ltd (ESI Group).
  • Tecplot is a registered trademark of Tecplot, Inc.
Most of the original sources used in this repository, have been retrieved from: This git repository was brought to you by Bruno Santos (wyldckat@github working at blueCAPE Lda).

License

The code contained in this repository is following the same license as OpenFOAM, namely the GNU General Public License v3.

Installation

Note: The code available in this repository has been tested on Linux, should work on Mac OS X (as seen here) and is not intended to be used on Windows. Nonetheless, further adaptations may be put into place when the time comes.

There are two ways of downloading and installing this code:

Using Git

Run the following instructions as normal user:

  1. Assuming you have git already installed and a working OpenFOAM installation, run:
    mkdir -p $WM_PROJECT_USER_DIR
    cd $WM_PROJECT_USER_DIR
    git clone git://github.com/wyldckat/localFoamToTecplot360.git
    cd localFoamToTecplot360
  2. Now check the list of branches that exist:
    git branch -a
    You should see something like this:
    * master
      remotes/origin/master
      remotes/origin/of17
      remotes/origin/of20
      remotes/origin/of21
      remotes/origin/of22
      remotes/origin/of23
      remotes/origin/of30
      remotes/origin/of4
      remotes/origin/of5
      remotes/origin/ofdev
    
    The ones that start with of indicate for which versions of OpenFOAM this repository is currently working.
  3. So for example, if you are using OpenFOAM 2.1.1, then checkout the respective branch:
    git checkout of21
    On the other hand, if are using OpenFOAM 2.4, then you can simply use the of23 branch.
  4. Now you can launch the build process:
    ./Allwmake
    It will do everything pretty much autonomous, although midway it asks for you to press the Enter keyboard key when the libtecio library is finished unpacking.
  5. It should end with a line similar to this one:
    -llagrangian -lfiniteVolume -lgenericPatchFields -lmeshTools -L/home/user/OpenFOAM/user-2.1.0/platforms/linux64GccDPOpt/lib -ltecio -lOpenFOAM -ldl   -lm -o /home/user/OpenFOAM/user-2.1.0/platforms/linux64GccDPOpt/bin/foamToTecplot360
  6. If all went well, you can now learn how ot use this conversor by running the following command:
    foamToTecplot360 -help

Using Zip or Tar

Run the following instructions as normal user:

  1. Assuming you have a working OpenFOAM installation, run:
    mkdir -p $WM_PROJECT_USER_DIR
    cd $WM_PROJECT_USER_DIR
  2. Now, depending on the version of OpenFOAM you've got, download the respective package you need.
    • For OpenFOAM 1.7.0, 1.7.1 and 1.7.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of17.tar.gz"
      tar -xf of17.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of17
    • For OpenFOAM 2.0.0, 2.0.1 and 2.0.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of20.tar.gz"
      tar -xf of20.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of20
    • For OpenFOAM 2.1.0, 2.1.1 and 2.1.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of21.tar.gz"
      tar -xf of21.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of21
    • For OpenFOAM 2.2.0 to 2.2.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of22.tar.gz"
      tar -xf of22.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of22
    • For OpenFOAM 2.3.0 to 2.4.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of23.tar.gz"
      tar -xf of23.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of23
    • For OpenFOAM 3.0.0 to 3.0.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of30.tar.gz"
      tar -xf of30.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of30
    • For OpenFOAM 4.0 to 4.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of4.tar.gz"
      tar -xf of4.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of4
    • For OpenFOAM 5.0 to 5.x, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of5.tar.gz"
      tar -xf of5.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-of5
    • For OpenFOAM-dev, run either one of the following group of lines:
      # If you want to download in tar format
      wget "https://github.com/wyldckat/localFoamToTecplot360/archive/ofdev.tar.gz"
      tar -xf ofdev.tar.gz
      Then go into the newly unpacked folder:
      cd localFoamToTecplot360-ofdev
  3. Now you can launch the build process:
    ./Allwmake
    It will do everything pretty much autonomous, although midway it asks for you to press the Enter keyboard key when the libtecio library is finished unpacking.
  4. It should end with a line similar to this one:
    -llagrangian -lfiniteVolume -lgenericPatchFields -lmeshTools -L/home/user/OpenFOAM/user-2.1.0/platforms/linux64GccDPOpt/lib -ltecio -lOpenFOAM -ldl   -lm -o /home/user/OpenFOAM/user-2.1.0/platforms/linux64GccDPOpt/bin/foamToTecplot360
  5. If all went well, you can now learn how ot use this conversor by running the following command:
    foamToTecplot360 -help

About

This is an adaptation of foamToTecplot360 from the original OpenFOAM (www.openfoam.org), designed for those using the Debian/RPM installation packages of OpenFOAM. This adaptation in no way supported by the original authors and trademark holders.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published