CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] How to install ccm26ToFoam in OF2.2.x and convert a ccm file (https://www.cfd-online.com/Forums/openfoam-installation/124385-how-install-ccm26tofoam-of2-2-x-convert-ccm-file.html)

donQi October 3, 2013 22:36

How to install ccm26ToFoam in OF2.2.x and convert a ccm file
 
1 Attachment(s)
While compiling the ccm26ToFoam utility I got the following error:

* 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.
Usage: AllwmakeLibccmio
* This script will install the libccmio library

Here the solution I found, hope can help somebody:

1) download the libccmio-2.6.1 library from the following website
https://svn.scorec.rpi.edu/wsvn/TSTT/Tools/iMeshIO/libccmio-2.6.1.tar.gz?op=log&rev=2353

2) uncompress libccmio-2.6.1.tar.gz and copy the libccmio-2.6.1 directory in
/your.OpenFOAMinstallation.path.../OpenFOAM/ThirdParty-2.2.x/

3)
AllwmakeLibccmio
Code:

cd /your.OpenFOAMinstallation.path.../OpenFOAM/ThirdParty-2.2.x/
./AllwmakeLibccmio



4) compile ccm26ToFoam
Code:

cd /your.OpenFOAMinstallation.path.../OpenFOAM/OpenFOAM-2.2.x/applications/utilities/mesh/conversion/Optional
./Allwmake



5) copy your ccm file in the StarCCMTemplate.for.ccm directory (please file attached)

6) enter the directory where you have just copy the ccm file and launch the command

Code:

ccm26ToFoam nameFile.ccm

wyldckat October 5, 2013 07:54

Greetings donQi,

Thanks for sharing! I've added the link to this thread to this wiki page: http://openfoamwiki.net/index.php/Ccm26ToFoam - feel free to edit the wiki page.

As for your post, please use the [CODE] markers for the example commands you've given, as explained in the second link of my signature ;)

Best regards,
Bruno

donQi October 13, 2013 23:05

Greetings Bruno, I add the [CODE] markers.

And let me take this opportunity to thank you for your excellent contributions to this Forum.

Best regards,
Al

sudo November 4, 2013 16:19

Not working for me.
 
It's great that it seems to be much easier now to compile this lib. I tried to do it a few months ago and was not successful. Thanks in advance.


Now, I followed exactly what donQi outlined in the 1st post but I still can not do it. Here are my questions:
1. The untarred folder has no AllwmakeLibccmio script inside, actually it does not exist at all in the folder. So, am I missing something here?

2. It seems to me (and I am not an expert in compiling QT projects) that the downloaded file is a QT4 project. I tried opening the version.pro file in QT Creator in Ubuntu 12.10 64 bit, tried to configure the project but received two errors.

So, could you please either update the info in the first post or let me know how to run the AllwmakeLibccmio?

Thanks.


EDIT: The script in post #51 here:http://www.cfd-online.com/Forums/ope...tml#post429003
seems to have worked. ccm26ToFoam binary file was generated, used it to convert a 2D mesh (back step tutorial) I had exported from CCM+, the polymesh folder have been updated but....ParaFoam does not show the mesh as it encountered errors. Any ideas?

sudo November 4, 2013 17:46

DELETED!

The script written by Bruno does work. I will post about my visualization issues in a new thread.

wflo March 23, 2014 16:54

Convert StarCCM to OPenFoam 2.2.2
 
Following donQi's post I was able to make it down to the 3rd step. I downloaded the libccmio-2.6.1.tar.gz and I uncompressed the file. The AllwmakeLibccmio shell script did not run but the ccm26local shell script did. Both files must run in order for it to work correct? Why does the AllwmakeLibccmio not run when I try to execute it?

wyldckat March 30, 2014 12:43

Quick answer - @wflo: Try the instructions indicated in post #4: star-ccm mesh to O\/F - post#51

siemons.sk March 16, 2017 05:09

download link offline
 
Hello Foamers,

I'm new to OpenFOAM and would like to use some meshes generated by STAR-CCM+. Unfortunately the required libccmio-2.6.1 library is no longer available from the website suggested by donQi, and CD-Adapco informed me that they no longer support the libbrary. Any suggestions where to find the required files?

Best regards

ordinary March 16, 2017 05:15

Hello,

I'm a beginner too but I have encountered with the same problem. I think this link worked:
http://portal.nersc.gov/svn/visit/tr...o-2.6.1.tar.gz

Sincerely

siemons.sk March 16, 2017 10:47

Thnx! I also just found all the necessary files on wyldckat's repository on Github:

https://github.com/wyldckat/localCCM26ToFOAM

Amazing!

262554842@qq.com April 17, 2017 02:50

help about ccm26tofoam
 
hello, when i used ./AllwmakeLibccmio , it failed to compile and noted that:Make/files does not exist in ***/***/***/libccmio-2.6.1


how to solve this problem?

wyldckat April 24, 2017 13:32

Quote:

Originally Posted by 262554842@qq.com (Post 645138)
hello, when i used ./AllwmakeLibccmio , it failed to compile and noted that:Make/files does not exist in ***/***/***/libccmio-2.6.1


how to solve this problem?

Quick questions:
  1. Which installation instructions did you follow for compiling "libccmio"?
  2. Which OpenFOAM version are your using?

262554842@qq.com April 25, 2017 20:59

Quote:

Originally Posted by wyldckat (Post 646319)
Quick questions:
  1. Which installation instructions did you follow for compiling "libccmio"?
  2. Which OpenFOAM version are your using?

thank u for your reply

OpenFOAM 3.0.1 (virtual machine)

at last i compile it successfully via internet :(:(:(

Alex song January 18, 2018 06:24

error convert .ccm to foam using ccm26ToFoam
 
Hello, when I tried to convert .ccm file to foam mesh using ccm26ToFoam, it gives an error.

what is this error?

how to solve this problem??


Thank you in advance

song

-------------------------------------------------------------------------------------
Create time



--> FOAM FATAL ERROR:
"Error opening state"

From function void CheckError(const CCMIOError&, const Foam::string&)
in file ccm26ToFoam.C at line 167.

FOAM exiting

shiromaniac November 27, 2018 06:16

Alex
 
Hey, I am facing same problem! Did you solve it???

wyldckat December 22, 2018 11:15

Quote:

Originally Posted by Alex song (Post 678556)
--> FOAM FATAL ERROR:
"Error opening state"

From function void CheckError(const CCMIOError&, const Foam::string&)
in file ccm26ToFoam.C at line 167.

FOAM exiting

Quick answer: Not much to work with here... My guess is that the mesh was not actually exported to the ".ccm" file, hence the message. If your ".ccm" file only has some 20000 bytes, than that's why. You must choose to export the meshed boundaries and internal mesh.

Vignesh2508 May 19, 2020 01:38

Does someone have this libccmio-2.6.1, the older link is not working. I am using Openfoam 1912.

ordinary June 9, 2020 17:51

Quote:

Originally Posted by Vignesh2508 (Post 771048)
Does someone have this libccmio-2.6.1, the older link is not working. I am using Openfoam 1912.

Hello,
You can download it here:
http://downloads.sourceforge.net/pro...o-2.6.1.tar.gz

Vignesh2508 June 9, 2020 23:25

Thank you Emre. I was planning to place this in the third party folder as instructed and run wmake.


Do you have any specific instructions to run this one?

olesen June 10, 2020 04:48

Quote:

Originally Posted by Vignesh2508 (Post 773944)
Thank you Emre. I was planning to place this in the third party folder as instructed and run wmake.

Do you have any specific instructions to run this one?

Just use the ThirdParty makeCCMIO and keep the default target type as it is (static library).
If this compilation works and installs correctly, return to the OpenFOAM directory and re-compile with these bits.
Specifically you can rerun the src/conversion/Allwmake script (or src/conversion/ccm//Allwmake) which compiles the OpenFOAM wrapper libraries.
Once these wrapper libraries are available, the applications/utilities/mesh/conversion/ccm/Allwmake should pick up on them and compile the conversion utilities.


All times are GMT -4. The time now is 19:39.