CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] How to install ccm26ToFoam in OF2.2.x and convert a ccm file

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2013, 23:36
Default How to install ccm26ToFoam in OF2.2.x and convert a ccm file
  #1
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 13
donQi is on a distinguished road
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
Attached Files
File Type: gz StarCCMTemplate.for.ccmTo26Foam.launch.tar.gz (1.1 KB, 518 views)
dlignell, vga67, Knigge46 and 2 others like this.

Last edited by donQi; October 13, 2013 at 23:44.
donQi is offline   Reply With Quote

Old   October 5, 2013, 08:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   October 14, 2013, 00:05
Default
  #3
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 13
donQi is on a distinguished road
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
wyldckat likes this.
donQi is offline   Reply With Quote

Old   November 4, 2013, 17:19
Default Not working for me.
  #4
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 13
sudo is on a distinguished road
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?

Last edited by sudo; November 4, 2013 at 18:32.
sudo is offline   Reply With Quote

Old   November 4, 2013, 18:46
Default
  #5
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 13
sudo is on a distinguished road
DELETED!

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

Last edited by sudo; November 5, 2013 at 11:25.
sudo is offline   Reply With Quote

Old   March 23, 2014, 17:54
Default Convert StarCCM to OPenFoam 2.2.2
  #6
New Member
 
Join Date: Mar 2014
Posts: 3
Rep Power: 12
wflo is on a distinguished road
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?
wflo is offline   Reply With Quote

Old   March 30, 2014, 13:43
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer - @wflo: Try the instructions indicated in post #4: star-ccm mesh to O\/F - post#51
wyldckat is offline   Reply With Quote

Old   March 16, 2017, 06:09
Default download link offline
  #8
New Member
 
Join Date: Mar 2017
Posts: 3
Rep Power: 9
siemons.sk is on a distinguished road
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
siemons.sk is offline   Reply With Quote

Old   March 16, 2017, 06:15
Default
  #9
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 10
ordinary is on a distinguished road
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
ordinary is offline   Reply With Quote

Old   March 16, 2017, 11:47
Default
  #10
New Member
 
Join Date: Mar 2017
Posts: 3
Rep Power: 9
siemons.sk is on a distinguished road
Thnx! I also just found all the necessary files on wyldckat's repository on Github:

https://github.com/wyldckat/localCCM26ToFOAM

Amazing!
kaanm likes this.
siemons.sk is offline   Reply With Quote

Old   April 17, 2017, 03:50
Default help about ccm26tofoam
  #11
New Member
 
wangyuhang
Join Date: Apr 2017
Posts: 3
Rep Power: 8
262554842@qq.com is on a distinguished road
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?
262554842@qq.com is offline   Reply With Quote

Old   April 24, 2017, 14:32
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by 262554842@qq.com View Post
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?
wyldckat is offline   Reply With Quote

Old   April 25, 2017, 21:59
Default
  #13
New Member
 
wangyuhang
Join Date: Apr 2017
Posts: 3
Rep Power: 8
262554842@qq.com is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
wyldckat likes this.
262554842@qq.com is offline   Reply With Quote

Old   January 18, 2018, 07:24
Default error convert .ccm to foam using ccm26ToFoam
  #14
New Member
 
song sung jin
Join Date: Dec 2014
Posts: 9
Rep Power: 11
Alex song is on a distinguished road
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
Alex song is offline   Reply With Quote

Old   November 27, 2018, 07:16
Default Alex
  #15
New Member
 
Shiromani Chandra
Join Date: Oct 2018
Location: India
Posts: 12
Rep Power: 7
shiromaniac is on a distinguished road
Hey, I am facing same problem! Did you solve it???
shiromaniac is offline   Reply With Quote

Old   December 22, 2018, 12:15
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Alex song View Post
--> 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.
__________________
wyldckat is offline   Reply With Quote

Old   May 19, 2020, 02:38
Default
  #17
Member
 
Vignesh Rajendiran
Join Date: Aug 2016
Location: Chennai, India
Posts: 62
Rep Power: 9
Vignesh2508 is on a distinguished road
Does someone have this libccmio-2.6.1, the older link is not working. I am using Openfoam 1912.
Vignesh2508 is offline   Reply With Quote

Old   June 9, 2020, 18:51
Default
  #18
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 10
ordinary is on a distinguished road
Quote:
Originally Posted by Vignesh2508 View Post
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
ordinary is offline   Reply With Quote

Old   June 10, 2020, 00:25
Default
  #19
Member
 
Vignesh Rajendiran
Join Date: Aug 2016
Location: Chennai, India
Posts: 62
Rep Power: 9
Vignesh2508 is on a distinguished road
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?
Vignesh2508 is offline   Reply With Quote

Old   June 10, 2020, 05:48
Default
  #20
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Vignesh2508 View Post
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.
olesen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Definition of y+ in yPlusRAS (1.7.1) Taka1 OpenFOAM Programming & Development 41 May 23, 2020 13:05
error during compilation of new solver harsha_kulkarni OpenFOAM Programming & Development 2 November 7, 2019 01:47
[Other] How to convert .raw file into .dat file lisics OpenFOAM Meshing & Mesh Conversion 2 January 12, 2018 13:31
Question about SU2 optimization YoniHe SU2 Shape Design 3 January 15, 2016 01:31
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 08:13.