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.
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:
- https://github.com/OpenFOAM/OpenFOAM-2.0.x
- https://github.com/OpenFOAM/OpenFOAM-2.1.x
- https://github.com/OpenFOAM/OpenFOAM-2.2.x
- https://github.com/OpenFOAM/OpenFOAM-2.3.x
- https://github.com/OpenFOAM/OpenFOAM-3.0.x
The code contained in this repository is following the same license as OpenFOAM, namely the GNU General Public License v3.
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:
Run the following instructions as normal user:
-
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
- 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. - 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. - 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. - It should end with the last lines similar to these:
The output above has been logged inside the file 'build.log'.
- 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
Run the following instructions as normal user:
-
Assuming you have a working OpenFOAM installation, run:
mkdir -p $WM_PROJECT_USER_DIR cd $WM_PROJECT_USER_DIR
- 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
- For OpenFOAM 2.0.0, 2.0.1 and 2.0.x, run either one of the following group of lines:
- 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. - It should end with the last lines similar to these:
The output above has been logged inside the file 'build.log'.
- 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