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] star-ccm mesh to O\/F (https://www.cfd-online.com/Forums/openfoam-meshing/73356-star-ccm-mesh-o-f.html)

wflo March 31, 2014 06:41

Thanks ziad you were right. I just needed to add the necessary folders for an openfoam project. I then placed the ccm file into the project folder and ran the ccmtofoam command to populate the polymesh folder for the conversion to work. I appreciate the help.

pechwang April 1, 2014 21:13

Quote:

Originally Posted by wyldckat (Post 482725)
Quick answer - Try the one from post #51: http://www.cfd-online.com/Forums/ope...tml#post429003

Hi Bruno,

Thank you for your detailed instruction. I'm new to OpenFOAM and I use OpenFOAM-2-1-1. I followed #51 step by step, after I ran the ccm26local, I got an error, so I didn't get instructions the script gives. The error is kind of complex for me and I don't know how to show it to you. So can you help me with this?

Thanks,
Pengchuan

shipman April 1, 2014 21:25

Hi wang,

Post your error here then may i can help to you...

B

pechwang April 1, 2014 21:36

1 Attachment(s)
Hi Baris,

Thank you for you help.
The error is in the attachment. I couldn't post it here. It says that I have more than 10 images, which makes me confused.

Thank you again.
Pengchuan

shipman April 2, 2014 00:29

Hi wang,

just let me know that when you run the ./ccm26local and saw the following line


Have you contacted CD-Adapco and received the libccmio package? (yes/no): Did you write here yes or only y..you should write directly yes then it will work well.

And also check again whether you are in the correct folder (cd ccm26local220)or not in terminal.

Hope this helps..

B

pechwang April 2, 2014 00:39

Hi Baris,

I did answer "yes" in the terminal.

Thanks,
Pengchuan

shipman April 2, 2014 00:41

So it works fine or still gives same error?

pechwang April 2, 2014 00:50

Hi Baris,
It still gives the same error

make: *** [Make/linuxGccDPOpt/ccm26ToFoam.o] Error 1

after that the compile stops.

Thanks,
Pengchuan

shipman April 2, 2014 00:58

ohh Wang ok i got it...your version 2.1.x but if you follow from post #51 which is for v.2.2.x

so please follow in post 27, with the file in post 29 work for OpenFoam 2.1.1

I think that it will work fine.

Best regards.

B.

pechwang April 2, 2014 01:05

Hi Baris,

Thank you for your quick reply. I followed your advice, I downloaded the file in #29 and follow the instruction in #27. However, I still get some errors.

+ ./AllwmakeLibccmio
downloading libccmio-2.6.1.tar.gz from https://wci.llnl.gov/codes/visit/3rd...o-2.6.1.tar.gz
--2014-04-02 01:01:55-- https://wci.llnl.gov/codes/visit/3rd...o-2.6.1.tar.gz
Resolving wci.llnl.gov (wci.llnl.gov)... 198.128.246.10
Connecting to wci.llnl.gov (wci.llnl.gov)|198.128.246.10|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-04-02 01:01:56 ERROR 404: Not Found.

no download/libccmio-2.6.1.tar.gz to unpack
+ cd libccmio-2.6.1
./AllwmakeLibccmio: 61: cd: can't cd to libccmio-2.6.1
+ exit 1
+ [ -e /home/pechwang/OpenFOAM/pechwang-2.1.1/platforms/linuxGccDPOpt/lib/libccmio.so ]
+ wmake ccm26ToFoam
Making dependency list for source file ccm26ToFoam.C
SOURCE=ccm26ToFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/home/pechwang/OpenFOAM/pechwang-2.1.1/Optional/libccmio-2.6.1 -I/home/pechwang/OpenFOAM/pechwang-2.1.1/Optional/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C:46:19: fatal error: ccmio.h: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/ccm26ToFoam.o] Error 1

So which file do I need to use, from #27 or from #29

Thanks,
Pengchuan

shipman April 2, 2014 01:20

you should use file from #29 and follow the instruction from #27. It should work, bcs i tried and works fine. By the way, if you ask my opinion, you just wanna convert the mesh then easily download last version of OP 2.3.0

and change by running: gedit ~/.bashrc

as source /opt/openfoam230/etc/bashrc

then follow post #51.

after you convert your mesh then you can reset .bashrc file as

opt/openfoam211/etc/bashrc

B

brandius November 25, 2014 11:05

1 Attachment(s)
Hiya,

thanks for writing this script! Unfortunately, it doesn't work for me. Maybe the reason is that I'm trying with OF230? I do not really want to install OF2.2.x (using Ubuntu 14.04 it takes some time to compile the source code), but maybe I will have to give it a try.

last error is:
ccm26ToFoam.C:46:19: fatal error: ccmio.h: No such file or directory

If you have any remark, please find attached the error file.

brandius November 26, 2014 06:36

2 Attachment(s)
Okay, thanks, it works with OpenFOAM-2.2.2!

However, I now have the problem that I am not sure whether the conversion process is doing the right job. When I open the converted mesh in paraView, under Information/Statistics/Number_of_cells a far higher amount of cells is displayed than in the original StarCCM mesh. Paraview suggests that the topology has changed.

However, if I run checkMesh it tells me the right statistics and the right number of cells. Now I don't have an idea how to check whether the problem is on the paraFoam displaying side or on the side of the mesh conversion. Any ideas?

I have attached both grids. You can see, that some of the rectangles of the surface mesh are divided into several triangles.

wyldckat November 30, 2014 06:37

Quote:

Originally Posted by brandius (Post 521185)
I have attached both grids. You can see, that some of the rectangles of the surface mesh are divided into several triangles.

Quick answer: http://openfoamwiki.net/index.php/FA...is_in_ParaView

wyldckat March 28, 2016 10:55

Greetings to all!

I've finished creating a git repository that has the instructions and part of the needed code for building and installing the ccm26ToFoam utility.

The installation instructions are available in the main page of the new repository: localCCM26ToFOAM

Best regards,
Bruno

phemt84 September 15, 2016 06:12

Hi guys,
is there anyone who has installed ccm226tofoam in OF v1606??
Best regards
Francesco

wyldckat September 17, 2016 08:10

Quote:

Originally Posted by phemt84 (Post 617957)
Hi guys,
is there anyone who has installed ccm226tofoam in OF v1606??
Best regards
Francesco

Quick answer: I've added support for it just now on the repository that I'm maintaining: https://github.com/wyldckat/localCCM...tree/of+v1606+

phemt84 September 19, 2016 09:25

Quote:

Originally Posted by wyldckat (Post 618213)
Quick answer: I've added support for it just now on the repository that I'm maintaining: https://github.com/wyldckat/localCCM...tree/of+v1606+

Thanks!!! :D


All times are GMT -4. The time now is 01:21.