CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] star-ccm mesh to O\/F

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

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2014, 06:41
Default
  #61
New Member
 
Join Date: Mar 2014
Posts: 3
Rep Power: 12
wflo is on a distinguished road
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.
wflo is offline   Reply With Quote

Old   April 1, 2014, 21:13
Default
  #62
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
pechwang is offline   Reply With Quote

Old   April 1, 2014, 21:25
Default
  #63
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
Hi wang,

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

B
shipman is offline   Reply With Quote

Old   April 1, 2014, 21:36
Default
  #64
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
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
Attached Files
File Type: txt error.txt (9.0 KB, 34 views)
pechwang is offline   Reply With Quote

Old   April 2, 2014, 00:29
Default
  #65
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
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
shipman is offline   Reply With Quote

Old   April 2, 2014, 00:39
Default
  #66
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Baris,

I did answer "yes" in the terminal.

Thanks,
Pengchuan
pechwang is offline   Reply With Quote

Old   April 2, 2014, 00:41
Default
  #67
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
So it works fine or still gives same error?
shipman is offline   Reply With Quote

Old   April 2, 2014, 00:50
Default
  #68
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
Hi Baris,
It still gives the same error

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

after that the compile stops.

Thanks,
Pengchuan
pechwang is offline   Reply With Quote

Old   April 2, 2014, 00:58
Default
  #69
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
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.
shipman is offline   Reply With Quote

Old   April 2, 2014, 01:05
Default
  #70
Member
 
Pengchuan Wang
Join Date: Nov 2012
Location: Michigan USA
Posts: 58
Rep Power: 13
pechwang is on a distinguished road
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
pechwang is offline   Reply With Quote

Old   April 2, 2014, 01:20
Default
  #71
Senior Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 130
Rep Power: 13
shipman is on a distinguished road
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
shipman is offline   Reply With Quote

Old   November 25, 2014, 11:05
Default
  #72
New Member
 
Join Date: May 2014
Posts: 4
Rep Power: 12
brandius is on a distinguished road
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.
Attached Files
File Type: txt error_message.txt (7.7 KB, 8 views)
brandius is offline   Reply With Quote

Old   November 26, 2014, 06:36
Default
  #73
New Member
 
Join Date: May 2014
Posts: 4
Rep Power: 12
brandius is on a distinguished road
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.
Attached Images
File Type: png mesh_ccm.png (15.4 KB, 29 views)
File Type: png mesh_paraview.png (9.3 KB, 30 views)
brandius is offline   Reply With Quote

Old   November 30, 2014, 06:37
Default
  #74
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 brandius View Post
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 is offline   Reply With Quote

Old   March 28, 2016, 10:55
Default
  #75
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 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
panda, PanPeter and Elliptic CFD like this.
__________________
wyldckat is offline   Reply With Quote

Old   September 15, 2016, 06:12
Default
  #76
New Member
 
Francesco
Join Date: May 2012
Location: italy
Posts: 8
Rep Power: 14
phemt84 is on a distinguished road
Hi guys,
is there anyone who has installed ccm226tofoam in OF v1606??
Best regards
Francesco
phemt84 is offline   Reply With Quote

Old   September 17, 2016, 08:10
Default
  #77
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 phemt84 View Post
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+
__________________
wyldckat is offline   Reply With Quote

Old   September 19, 2016, 09:25
Default
  #78
New Member
 
Francesco
Join Date: May 2012
Location: italy
Posts: 8
Rep Power: 14
phemt84 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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!!!
phemt84 is offline   Reply With Quote

Reply

Tags
.msh, .vrt, mesh conversion, star-ccm

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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 09:15.