CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] [OpenFOAM-v1706] ccmToFoam error (https://www.cfd-online.com/Forums/openfoam-meshing/194528-openfoam-v1706-ccmtofoam-error.html)

shuai_manlou October 17, 2017 19:25

[OpenFOAM-v1706] ccmToFoam error
 
Hi foamers,
I want to convert a .ccm mesh file by STAR-CCM+ v12.02 to OpenFOAM. In the OpenFOAM-v1706, there are two files in $FOAM_APP/utilities/mesh/conversion/ccm, ccmToFoam and foamToCcm, respectively. But when I want to execute the Allwmake file in ccmToFoam, there is an error "==> skip optional ccm conversion components (no libccm.so)". It seems the libccm.so is missing. But the Google cannot even find it.

By the way, in the new version OpenFOAM-v1706, it seems that ccm26ToFoam and fluent3DMeshToFoam is not used ever since, replaced by ccmToFoam and fluentMeshToFoam, respectively.

Need your help and wish your reply.

mathieu November 1, 2017 10:13

Hi,

I just have revisited the procedure to compile CCM tools for OpenFOAM. In my case, I started with a fully compiled OpenFOAM-v1706, but I guess these steps should also work for a fresh install (not compiled). First, you'll need the libccmio-2.6.1 directory to be located in the ThirdParty-v1706 directory. See the ThirdParty-v1706/BUILD.md file for instructions on how to obtain it and check usage conditions since it is a proprietary package. Then:

cd $WM_THIRD_PARTY_DIR
./makeCCMIO libso
./makeCCMIO lib
foam
./Allwmake


Afterwards, for the legacy converter (if you need it):

app
cd utilities/mesh/conversion/Optional/
./Allwmake


Hope this helps.

shuai_manlou November 4, 2017 20:41

Hi mathieu, Thanks a lot

I have removed the OpenFOAM-v1706 by ESI, and installed the OpenFOAM5 from www.openfoam.org.

Next, I followed the instructions by localCCM26ToFOAM in https://github.com/wyldckat/localCCM26ToFOAM

And it works well

Thanks for your share, next time I will try it again.

Best wishes

einstein_zee February 6, 2018 03:20

Hey there,

I just wanted to inform that I followed the instructions on the link provided by shuai_manlou and I could install this mesh converter for both OF5.0 and OF1712.

kera February 6, 2018 03:49

good to see that i am not alone who is working with ccm to OpenFoam

shuai_manlou February 6, 2018 03:53

Hi einstein_zee,

Thanks for sharing your experience, now you have proved that the instructions work well for both OF5.x and OF1712.

ynos March 13, 2018 04:13

Ccm26ToFoam- error reding cells
 
Hi there
I aprecciate a lot if someone cn help me. Im trying to convert mesh from Starccm to OpF5 but I found the next message: Create time

Reading state 'default' (Default state)
nPoints:0
bounding box:(0 0 0) (0 0 0)



--> FOAM FATAL ERROR:
"Error reading cells"

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

FOAM exiting


So if someone can I help me, thanks in advanced

yejungong September 4, 2018 01:16

same converting problem
 
Quote:

Originally Posted by ynos (Post 684970)
Hi there
I aprecciate a lot if someone cn help me. Im trying to convert mesh from Starccm to OpF5 but I found the next message: Create time

Reading state 'default' (Default state)
nPoints:0
bounding box:(0 0 0) (0 0 0)



--> FOAM FATAL ERROR:
"Error reading cells"

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

FOAM exiting


So if someone can I help me, thanks in advanced


I met the same question. I have tried of23 and of6, both show the same message. Hope that anybody can solve this problem. Thanks in advance

cdtriece September 21, 2018 10:39

I ran into this same error as well. The converter is working correctly but the .ccm file is empty--the problem (for me anyway) was on the StarCCM side. Within Star, when you go to File->Export to create the .ccm file, you need to select your body/regions inside the "Export Data" box in the pop-up window. This tells Star which bodies you want the mesh (and/or solution) exported. Otherwise, you export an empty mesh file.

ynos September 24, 2018 06:47

Quote:

Originally Posted by cdtriece (Post 707044)
I ran into this same error as well. The converter is working correctly but the .ccm file is empty--the problem (for me anyway) was on the StarCCM side. Within Star, when you go to File->Export to create the .ccm file, you need to select your body/regions inside the "Export Data" box in the pop-up window. This tells Star which bodies you want the mesh (and/or solution) exported. Otherwise, you export an empty mesh file.

It works perfect
Thanks a lot
Best Regards
Simón

mikeShives August 18, 2019 15:41

CCMIO compile on v1906
 
Hi all.

Trying to get ccmToFoam conversion working.
I've got -v1906- up and running on a windows machine using ubuntu.

I have the libccmio-2.6.1 folder located in the ThirdParty-v1906 directory.

When I try
$ ./makeCCMIO libso

I get:
...
/opt/OpenFoam/OpenFOAM-v-1906/wmake/wmake: line 459: make: command not found

wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /opt/OpenFOAM/ThirdParty-v1906/libccmio-2.6.1


can anyone help?

Thanks

Vignesh2508 May 19, 2020 01:41

I am not able to find the libccmio-2.6.1 library file. Can some one post it or send link where i can download it.


Thanks

redTo May 26, 2020 12:34

Hi,
did you find out how to do it?

redTo July 16, 2020 08:33

Hi eveybody,

I'm still searching for the libccmio-2.6.1. Does someone know where to find it?
It'll be very helpful!

ABgabriel13 October 31, 2020 05:05

I find this note: (libccmio-2.6.1.spec)
 
https://github.com/Unofficial-Extend...mio-2.6.1.spec

Richal Sun April 13, 2021 08:28

Can ccm26ToFoam work in openfoam installed on ubuntu?
 
Quote:

Originally Posted by shuai_manlou (Post 670443)
Hi mathieu, Thanks a lot

I have removed the OpenFOAM-v1706 by ESI, and installed the OpenFOAM5 from www.openfoam.org.

Next, I followed the instructions by localCCM26ToFOAM in https://github.com/wyldckat/localCCM26ToFOAM

And it works well

Thanks for your share, next time I will try it again.

Best wishes

Hi Liushuai,

I am new to openfoam. I wonder if mesh generated from star ccm+ work in openfoam.
I am using windows subsystem Linux ubuntu on which openfoam is installed.The openfoam version is v1912. Do you know whether localCCM26ToFoam work in openfoam installed on ubuntu(ps:windows subsystem).One more question,what is the difference between utility ccm26ToFoam and star3/4ToFoam?
Looking forward to your reply.Thank you in advance.

Jiayu Sun

Richal Sun April 15, 2021 09:05

starToFoam or ccm26ToFoam?
 
Quote:

Originally Posted by Richal Sun (Post 801397)
Hi Liushuai,

I am new to openfoam. I wonder if mesh generated from star ccm+ work in openfoam.
I am using windows subsystem Linux ubuntu on which openfoam is installed.The openfoam version is v1912. Do you know whether localCCM26ToFoam work in openfoam installed on ubuntu(ps:windows subsystem).One more question,what is the difference between utility ccm26ToFoam and star3/4ToFoam?
Looking forward to your reply.Thank you in advance.

Jiayu Sun

FYI,
star3/4ToFoam is established for star CD, ccm26ToFoam is used for star ccm+.
I have successfully installed ccm26ToFoam in openfoam8,failed in openfoam 1912 where ccm26ToFoam is not stored in utilitiy.
Thanks any way.

Jesswin27 June 19, 2021 06:26

Quote:

Originally Posted by mikeShives (Post 742347)
Hi all.

Trying to get ccmToFoam conversion working.
I've got -v1906- up and running on a windows machine using ubuntu.

I have the libccmio-2.6.1 folder located in the ThirdParty-v1906 directory.

When I try
$ ./makeCCMIO libso

I get:
...
/opt/OpenFoam/OpenFOAM-v-1906/wmake/wmake: line 459: make: command not found

wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /opt/OpenFOAM/ThirdParty-v1906/libccmio-2.6.1


can anyone help?

Thanks

I am also facing the same issue. Did you solved this?

"pkk@DESKTOP-LTOB3VF:/opt/OpenFOAM/OpenFOAM-v2012/ThirdParty$ ./makeCCMIO libso
Appear to have {wmkdepend,wmkdep} binary
Starting build: libccmio-2.6.1 (libso)

cpMakeFiles libccmio .
Compiling enabled on 56 cores
wmake libso (libccmio-2.6.1)
/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 637: make: command not found
/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 640: make: command not found
wmake error: file '/opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/ThirdParty/libccmio-2.6.1/sourceFiles' could not be created in /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/libccmio-2.6.1
Error building: ccmio"

NBad October 19, 2021 05:02

Quote:

Originally Posted by Jesswin27 (Post 806428)
I am also facing the same issue. Did you solved this?

"pkk@DESKTOP-LTOB3VF:/opt/OpenFOAM/OpenFOAM-v2012/ThirdParty$ ./makeCCMIO libso
Appear to have {wmkdepend,wmkdep} binary
Starting build: libccmio-2.6.1 (libso)

cpMakeFiles libccmio .
Compiling enabled on 56 cores
wmake libso (libccmio-2.6.1)
/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 637: make: command not found
/opt/OpenFOAM/OpenFOAM-v2012/wmake/wmake: line 640: make: command not found
wmake error: file '/opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/ThirdParty/libccmio-2.6.1/sourceFiles' could not be created in /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/libccmio-2.6.1
Error building: ccmio"


To solve this error you just need to install make: "sudo apt install make"

user007 January 28, 2022 11:02

Quote:

Originally Posted by mathieu (Post 670008)
Hi,

I just have revisited the procedure to compile CCM tools for OpenFOAM. In my case, I started with a fully compiled OpenFOAM-v1706, but I guess these steps should also work for a fresh install (not compiled). First, you'll need the libccmio-2.6.1 directory to be located in the ThirdParty-v1706 directory. See the ThirdParty-v1706/BUILD.md file for instructions on how to obtain it and check usage conditions since it is a proprietary package. Then:

cd $WM_THIRD_PARTY_DIR
./makeCCMIO libso
./makeCCMIO lib
foam
./Allwmake


Afterwards, for the legacy converter (if you need it):

app
cd utilities/mesh/conversion/Optional/
./Allwmake


Hope this helps.


I'm following your instruction with OF2112 which I've installed from binaries for openSUSE. Everything seams good until the first ./Allwmake, where the script fails after compiling third-party, at the beginning of the open-foam compilation.


Then after moving to
Code:

utilities/mesh/conversion/ccm
and running ./Allwmake is still unable to find libccmio-2.6.1 which seams to be in the required folder
Code:

/usr/lib/openfoam/openfoam2112/platforms/linux64GccDPInt32Opt/lib/libccm/
since the Allwmake script is looking for the library at
Code:

$FOAM_LIBBIN/libccm
.


All times are GMT -4. The time now is 23:34.