TimoLin / localCCM26ToFOAM

This is a partial adaptation of ccm26ToFoam 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents

localCCM26ToFOAM

This is an adaptation of ccm26ToFoam 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).
  • STAR-CCM+ is a registered trademark of CD-adapco.
Keep in mind that the source code in this repository is provided under the GPLv3 license, for which more details are provided in the COPYING file. The license of the libccmio library is proprietary: Users wishing to make use of its functionality should contact CD-adapco for possible download and terms of use. Nonetheless, the scripts made available by this git repository will download the compatible libccmio 2.6.1 version from the VisIt public repositories.

Support for this repository is provided here: star-ccm mesh to O\/F

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. 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/localCCM26ToFOAM.git
    cd localCCM26ToFOAM
  2. Now check the list of branches that exist:
    git branch -a
    You should see something like this:
    * master
      remotes/origin/master
      remotes/origin/of20
      remotes/origin/of21
      remotes/origin/of22
      remotes/origin/of23
      remotes/origin/of30
    
    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:
    ./ccm26local
    It will do everything pretty much autonomous, although midway it asks for you to read the details and then press the Enter keyboard key. It will then download the libccmio library source code from VisIt repository.
  5. It should end with the last lines similar to these:
    The output above has been logged inside the file 'build.log'.
    
  6. If all went well, you can now learn how ot use this conversor by running the following command:
    ccm26ToFoam -help
    Or visit the following wiki page: ccm26ToFoam at openfoamwiki.net

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 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/localCCM26ToFOAM/archive/of20.tar.gz"
      tar -xf of20.tar.gz
      Then go into the newly unpacked folder:
      cd localCCM26ToFOAM-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/localCCM26ToFOAM/archive/of21.tar.gz"
      tar -xf of21.tar.gz
      Then go into the newly unpacked folder:
      cd localCCM26ToFOAM-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/localCCM26ToFOAM/archive/of22.tar.gz"
      tar -xf of22.tar.gz
      Then go into the newly unpacked folder:
      cd localCCM26ToFOAM-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/localCCM26ToFOAM/archive/of23.tar.gz"
      tar -xf of23.tar.gz
      Then go into the newly unpacked folder:
      cd localCCM26ToFOAM-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/localCCM26ToFOAM/archive/of30.tar.gz"
      tar -xf of30.tar.gz
      Then go into the newly unpacked folder:
      cd localCCM26ToFOAM-of30
  3. Now you can launch the build process:
    ./ccm26local
    It will do everything pretty much autonomous, although midway it asks for you to read the details and then press the Enter keyboard key. It will then download the libccmio library source code from VisIt repository.
  4. It should end with the last lines similar to these:
    The output above has been logged inside the file 'build.log'.
    
  5. If all went well, you can now learn how ot use this conversor by running the following command:
    ccm26ToFoam -help
    Or visit the following wiki page: ccm26ToFoam at openfoamwiki.net

About

This is a partial adaptation of ccm26ToFoam 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:GNU General Public License v3.0


Languages

Language:C 81.6%Language:Shell 18.4%